diff options
author | Waldemar Brodkorb <wbx@openwrt.org> | 2005-09-14 10:09:37 +0000 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openwrt.org> | 2005-09-14 10:09:37 +0000 |
commit | 4f5e9fc68460d910f0d14ce5c73e54d251b6b9f6 (patch) | |
tree | 5515024449993464b4708747bcbf82260626f9e5 /package/srelay | |
parent | d83ed07da56451357a373bd7d42264adcf71c27a (diff) | |
download | upstream-4f5e9fc68460d910f0d14ce5c73e54d251b6b9f6.tar.gz upstream-4f5e9fc68460d910f0d14ce5c73e54d251b6b9f6.tar.bz2 upstream-4f5e9fc68460d910f0d14ce5c73e54d251b6b9f6.zip |
fine tune package, add example conf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1916 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/srelay')
-rw-r--r-- | package/srelay/Makefile | 8 | ||||
-rw-r--r-- | package/srelay/files/srelay.conf | 2 | ||||
-rwxr-xr-x | package/srelay/files/srelay.init (renamed from package/srelay/files/S60srelay) | 0 |
3 files changed, 7 insertions, 3 deletions
diff --git a/package/srelay/Makefile b/package/srelay/Makefile index 6fde113873..485ea26abe 100644 --- a/package/srelay/Makefile +++ b/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/package/srelay/files/srelay.conf b/package/srelay/files/srelay.conf new file mode 100644 index 0000000000..e5d53ec966 --- /dev/null +++ b/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/package/srelay/files/S60srelay b/package/srelay/files/srelay.init index 9e5a5f5654..9e5a5f5654 100755 --- a/package/srelay/files/S60srelay +++ b/package/srelay/files/srelay.init |