From 6e15263418672e4aff28678c65d9ec302c6633f5 Mon Sep 17 00:00:00 2001 From: wbx Date: Wed, 14 Sep 2005 10:09:37 +0000 Subject: fine tune package, add example conf git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1916 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/srelay/Makefile | 8 +++++--- package/srelay/files/S60srelay | 5 ----- package/srelay/files/srelay.conf | 2 ++ package/srelay/files/srelay.init | 5 +++++ 4 files changed, 12 insertions(+), 8 deletions(-) delete mode 100755 package/srelay/files/S60srelay create mode 100644 package/srelay/files/srelay.conf create mode 100755 package/srelay/files/srelay.init (limited to 'package/srelay') diff --git a/package/srelay/Makefile b/package/srelay/Makefile index 6fde11387..485ea26ab 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/S60srelay b/package/srelay/files/S60srelay deleted file mode 100755 index 9e5a5f565..000000000 --- a/package/srelay/files/S60srelay +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -if [ -f /etc/srelay.conf ];then - srelay -c /etc/srelay.conf -r -s -fi diff --git a/package/srelay/files/srelay.conf b/package/srelay/files/srelay.conf new file mode 100644 index 000000000..e5d53ec96 --- /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/srelay.init b/package/srelay/files/srelay.init new file mode 100755 index 000000000..9e5a5f565 --- /dev/null +++ b/package/srelay/files/srelay.init @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ -f /etc/srelay.conf ];then + srelay -c /etc/srelay.conf -r -s +fi -- cgit v1.2.3