blob: b6f9397c5ccc51896da97427ec8b1033eaf1f119 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
include $(TOPDIR)/rules.mk
PKG_NAME:=antiblock
PKG_VERSION:=3.0.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/karen07/antiblock
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_MIRROR_HASH:=8c01fb20f17b1624dd34af2ed538e49d069af173f0108132cc744e77c659a811
PKG_LICENSE:=AGPL-3.0-or-later
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Karen Khachatryan <karen0734@gmail.com>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/antiblock
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libcurl +libpcap
TITLE:=AntiBlock
URL:=https://github.com/karen07/antiblock
endef
define Package/antiblock/description
AntiBlock monitors DNS responses for configured domains and
dynamically installs IPv4 host routes through selected network
interfaces. Supports both L3 interfaces and L2 interfaces
with default gateways.
endef
define Package/antiblock/conffiles
/etc/config/antiblock
endef
define Package/antiblock/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/antiblock $(1)/usr/bin/antiblock
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/antiblock $(1)/etc/init.d/antiblock
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/antiblock $(1)/etc/config/antiblock
endef
$(eval $(call BuildPackage,antiblock))
|