peerguardian fixes: add dependency on queue netfilter module, run the actual daemon in the initcript (not the control program) and set exec perms on it
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9072 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9ab0fd2773
commit
79405a6823
@ -15,7 +15,6 @@ PKG_RELEASE:=1
|
|||||||
PKG_SOURCE:=pglinux-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=pglinux-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/peerguardian
|
PKG_SOURCE_URL:=@SF/peerguardian
|
||||||
PKG_MD5SUM:=0fb2bc5501b031604fc56eec3bd35fa4
|
PKG_MD5SUM:=0fb2bc5501b031604fc56eec3bd35fa4
|
||||||
PKG_CAT:=zcat
|
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/pglinux-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/pglinux-$(PKG_VERSION)
|
||||||
|
|
||||||
@ -26,14 +25,16 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/peerguardian
|
define Package/peerguardian
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:= +libncurses +libpthread +uclibcxx
|
DEPENDS:= +kmod-ipt-queue +libncurses +libpthread +uclibcxx
|
||||||
TITLE:=PeerGuardian for Linux
|
TITLE:=PeerGuardian for Linux
|
||||||
DESCRIPTION:=\
|
|
||||||
PeerGuardian helps protect your privacy by blocking many ranges \\\
|
|
||||||
of aggressive IPs while you use P2P.
|
|
||||||
URL:=http://phoenixlabs.org/
|
URL:=http://phoenixlabs.org/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/peerguardian/description
|
||||||
|
PeerGuardian helps protect your privacy by blocking many ranges of aggressive
|
||||||
|
IPs while you use P2P.
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/peerguardian/conffiles
|
define Package/peerguardian/conffiles
|
||||||
/etc/PG.conf
|
/etc/PG.conf
|
||||||
/etc/p2p.p2b.p2p
|
/etc/p2p.p2b.p2p
|
||||||
|
11
net/peerguardian/files/peerguardian.init
Normal file → Executable file
11
net/peerguardian/files/peerguardian.init
Normal file → Executable file
@ -2,16 +2,11 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
START=50
|
START=50
|
||||||
|
|
||||||
BIN=pgtext
|
BIN=peerguardnf
|
||||||
DEFAULT=/etc/default/$BIN
|
CFG_F=/etc/PG.conf
|
||||||
RUN_D=/var/run
|
OPTIONS="-c $CFG_F -d"
|
||||||
PID_F=$RUN_D/$BIN_${IF}_${ID}.pid
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -f $DEFAULT ] && . $DEFAULT
|
|
||||||
$BIN $OPTIONS
|
$BIN $OPTIONS
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
|
||||||
[ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user