diff --git a/docs/compile/build_howto_openwrt.txt b/docs/compile/build_howto_openwrt.txt index d81ee24..9ff5f1a 100644 --- a/docs/compile/build_howto_openwrt.txt +++ b/docs/compile/build_howto_openwrt.txt @@ -1,21 +1,21 @@ -How to compile native programs for use in openwrt -------------------------------------------------- - -1) Download latest SDK for your platform from https://downloads.openwrt.org - - curl -o - https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz | tar -Jxvf - - cd openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64 - -2) ./scripts/feeds update -a - ./scripts/feeds install -a - -3) cp -R /opt/zapret/docs/compile/openwrt/. . - cp -R /opt/zapret/tpws package/zapret/tpws - cp -R /opt/zapret/nfq package/zapret/nfqws - cp -R /opt/zapret/mdig package/zapret/mdig - cp -R /opt/zapret/ip2net package/zapret/ip2net - -4) make package/{tpws,nfqws,mdig,ip2net}/compile - -5) find bin -name tpws*.ipk - #take your tpws*.ipk , nfqws*.ipk , ip2net*.ipk, mdig*.ipk from there +How to compile native programs for use in openwrt +------------------------------------------------- + +1) Download latest SDK for your platform from https://downloads.openwrt.org + + curl -o - https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz | tar -Jxvf - + cd openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64 + +2) ./scripts/feeds update -a + ./scripts/feeds install -a + +3) cp -R /opt/zapret/docs/compile/openwrt/. . + cp -R /opt/zapret/tpws package/zapret/tpws + cp -R /opt/zapret/nfq package/zapret/nfqws + cp -R /opt/zapret/mdig package/zapret/mdig + cp -R /opt/zapret/ip2net package/zapret/ip2net + +4) make package/{tpws,nfqws,mdig,ip2net}/compile + +5) find bin -name tpws*.ipk + #take your tpws*.ipk , nfqws*.ipk , ip2net*.ipk, mdig*.ipk from there diff --git a/docs/compile/openwrt/package/zapret/ip2net/Makefile b/docs/compile/openwrt/package/zapret/ip2net/Makefile index 4564675..bec7c00 100644 --- a/docs/compile/openwrt/package/zapret/ip2net/Makefile +++ b/docs/compile/openwrt/package/zapret/ip2net/Makefile @@ -24,8 +24,8 @@ define Build/Compile endef define Package/ip2net/install - $(INSTALL_DIR) $(1)/opt/zapret/ip2net - $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip2net $(1)/opt/zapret/ip2net + $(INSTALL_DIR) $(1)/opt/zapret/binaries/my + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip2net $(1)/opt/zapret/binaries/my endef $(eval $(call BuildPackage,ip2net)) diff --git a/docs/compile/openwrt/package/zapret/ip2net/readme.txt b/docs/compile/openwrt/package/zapret/ip2net/readme.txt index abf7acd..a5674f5 100644 --- a/docs/compile/openwrt/package/zapret/ip2net/readme.txt +++ b/docs/compile/openwrt/package/zapret/ip2net/readme.txt @@ -1 +1 @@ -Copy "ip2net" folder here ! +Copy "ip2net" folder here ! diff --git a/docs/compile/openwrt/package/zapret/mdig/Makefile b/docs/compile/openwrt/package/zapret/mdig/Makefile index 55d55d2..e587539 100644 --- a/docs/compile/openwrt/package/zapret/mdig/Makefile +++ b/docs/compile/openwrt/package/zapret/mdig/Makefile @@ -24,8 +24,8 @@ define Build/Compile endef define Package/mdig/install - $(INSTALL_DIR) $(1)/opt/zapret/mdig - $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdig $(1)/opt/zapret/mdig + $(INSTALL_DIR) $(1)/opt/zapret/binaries/my + $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdig $(1)/opt/zapret/binaries/my endef $(eval $(call BuildPackage,mdig)) diff --git a/docs/compile/openwrt/package/zapret/mdig/readme.txt b/docs/compile/openwrt/package/zapret/mdig/readme.txt index 14e5c14..b1865b2 100644 --- a/docs/compile/openwrt/package/zapret/mdig/readme.txt +++ b/docs/compile/openwrt/package/zapret/mdig/readme.txt @@ -1 +1 @@ -Copy "mdig" folder here ! +Copy "mdig" folder here ! diff --git a/docs/compile/openwrt/package/zapret/nfqws/Makefile b/docs/compile/openwrt/package/zapret/nfqws/Makefile index 48b562f..781a2a9 100644 --- a/docs/compile/openwrt/package/zapret/nfqws/Makefile +++ b/docs/compile/openwrt/package/zapret/nfqws/Makefile @@ -25,8 +25,8 @@ define Build/Compile endef define Package/nfqws/install - $(INSTALL_DIR) $(1)/opt/zapret/nfq - $(INSTALL_BIN) $(PKG_BUILD_DIR)/nfqws $(1)/opt/zapret/nfq + $(INSTALL_DIR) $(1)/opt/zapret/binaries/my + $(INSTALL_BIN) $(PKG_BUILD_DIR)/nfqws $(1)/opt/zapret/binaries/my endef $(eval $(call BuildPackage,nfqws)) diff --git a/docs/compile/openwrt/package/zapret/nfqws/readme.txt b/docs/compile/openwrt/package/zapret/nfqws/readme.txt index daf8b84..4c5b89f 100644 --- a/docs/compile/openwrt/package/zapret/nfqws/readme.txt +++ b/docs/compile/openwrt/package/zapret/nfqws/readme.txt @@ -1 +1 @@ -Copy "nfq" folder here ! +Copy "nfq" folder here ! diff --git a/docs/compile/openwrt/package/zapret/tpws/Makefile b/docs/compile/openwrt/package/zapret/tpws/Makefile index 3f8dfc7..831c255 100644 --- a/docs/compile/openwrt/package/zapret/tpws/Makefile +++ b/docs/compile/openwrt/package/zapret/tpws/Makefile @@ -25,8 +25,8 @@ define Build/Compile endef define Package/tpws/install - $(INSTALL_DIR) $(1)/opt/zapret/tpws - $(INSTALL_BIN) $(PKG_BUILD_DIR)/tpws $(1)/opt/zapret/tpws + $(INSTALL_DIR) $(1)/opt/zapret/binaries/my + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tpws $(1)/opt/zapret/binaries/my endef $(eval $(call BuildPackage,tpws)) diff --git a/docs/compile/openwrt/package/zapret/tpws/readme.txt b/docs/compile/openwrt/package/zapret/tpws/readme.txt index 18fa3ed..60297f8 100644 --- a/docs/compile/openwrt/package/zapret/tpws/readme.txt +++ b/docs/compile/openwrt/package/zapret/tpws/readme.txt @@ -1 +1 @@ -Copy "tpws" folder here ! +Copy "tpws" folder here !