mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-29 13:13:10 +02:00
fine tune package, add example conf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1916 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7c82d19c08
commit
85d73dd66c
@ -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)
|
||||
|
2
openwrt/package/srelay/files/srelay.conf
Normal file
2
openwrt/package/srelay/files/srelay.conf
Normal file
@ -0,0 +1,2 @@
|
||||
# allow local subnet to access socks proxy
|
||||
192.168.1.0/24 any -
|
Loading…
Reference in New Issue
Block a user