diff options
author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-09-14 10:09:37 +0000 |
---|---|---|
committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-09-14 10:09:37 +0000 |
commit | b4a71641ca592d0c08ec2f4748ad427c5ff221e0 (patch) | |
tree | 647772265f46c287c5b8763d0b98284371870bfc /openwrt | |
parent | edec6a1c3ce26f8c7e2bbe5237b876ef0c7820c8 (diff) | |
download | mtk-20170518-b4a71641ca592d0c08ec2f4748ad427c5ff221e0.zip mtk-20170518-b4a71641ca592d0c08ec2f4748ad427c5ff221e0.tar.gz mtk-20170518-b4a71641ca592d0c08ec2f4748ad427c5ff221e0.tar.bz2 |
fine tune package, add example conf
SVN-Revision: 1916
Diffstat (limited to 'openwrt')
-rw-r--r-- | openwrt/package/srelay/Makefile | 8 | ||||
-rw-r--r-- | openwrt/package/srelay/files/srelay.conf | 2 | ||||
-rwxr-xr-x | openwrt/package/srelay/files/srelay.init (renamed from openwrt/package/srelay/files/S60srelay) | 0 |
3 files changed, 7 insertions, 3 deletions
diff --git a/openwrt/package/srelay/Makefile b/openwrt/package/srelay/Makefile index 6fde113..485ea26 100644 --- a/openwrt/package/srelay/Makefile +++ b/openwrt/package/srelay/Makefile @@ -13,6 +13,7 @@ PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_INIT_LEVEL:=60 include $(TOPDIR)/package/rules.mk @@ -58,8 +59,9 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SRELAY): install -m0755 -d $(IDIR_SRELAY)/usr/bin install -m0755 -d $(IDIR_SRELAY)/etc/init.d - cp $(PKG_INSTALL_DIR)/srelay $(IDIR_SRELAY)/usr/bin/ - cp files/S60srelay $(IDIR_SRELAY)/etc/init.d - chmod 755 $(IDIR_SRELAY)/etc/init.d/S60srelay + cp -fpR $(PKG_INSTALL_DIR)/srelay $(IDIR_SRELAY)/usr/bin/ + cp -fpR files/srelay.init $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay + cp -fpR files/srelay.conf $(IDIR_SRELAY)/etc + chmod 755 $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay $(RSTRIP) $(IDIR_SRELAY) $(IPKG_BUILD) $(IDIR_SRELAY) $(PACKAGE_DIR) diff --git a/openwrt/package/srelay/files/srelay.conf b/openwrt/package/srelay/files/srelay.conf new file mode 100644 index 0000000..e5d53ec --- /dev/null +++ b/openwrt/package/srelay/files/srelay.conf @@ -0,0 +1,2 @@ +# allow local subnet to access socks proxy +192.168.1.0/24 any - diff --git a/openwrt/package/srelay/files/S60srelay b/openwrt/package/srelay/files/srelay.init index 9e5a5f5..9e5a5f5 100755 --- a/openwrt/package/srelay/files/S60srelay +++ b/openwrt/package/srelay/files/srelay.init |