ip2net iplist groupper

This commit is contained in:
bolvan
2019-04-06 16:08:14 +03:00
parent ab430165a7
commit 92edb373e1
15 changed files with 434 additions and 14 deletions

View File

@@ -17,22 +17,25 @@ How to compile native programs for use in openwrt
2) ./scripts/feeds update -a
./scripts/feeds install -a
3) <add zapret packages to build root>
<copy package descriptions>
3) #add zapret packages to build root
#copy package descriptions
copy compile/openwrt/* to ~/openwrt
<copy source code of tpws>
#copy source code of tpws
copy tpws to ~/openwrt/package/zapret/tpws
<copy source code of nfq>
#copy source code of nfq
copy nfq to ~/openwrt/package/zapret/nfq
#copy source code of ip2net
copy ip2net to ~/openwrt/package/zapret/ip2net
4) make menuconfig
<select your target architecture>
<select packages Network/Zapret/* as "M">
#select your target architecture
#select packages Network/Zapret/* as "M"
5) make toolchain/compile
6) make package/tpws/compile
make package/nfqws/compile
make package/ip2net/compile
7) find bin -name tpws*.ipk
<take your tpws*.ipk and nfqws*.ipk from there>
#take your tpws*.ipk , nfqws*.ipk , ip2net*.ipk from there

View File

@@ -0,0 +1,32 @@
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ip2net
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
define Package/ip2net
SECTION:=net
CATEGORY:=Network
TITLE:=ip2net
SUBMENU:=Zapret
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./ip2net/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
endef
define Package/ip2net/install
$(INSTALL_DIR) $(1)/opt/zapret/ip2net
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ip2net $(1)/opt/zapret/ip2net
endef
$(eval $(call BuildPackage,ip2net))

View File

@@ -0,0 +1 @@
Copy "ip2net" folder here !