PKG_SOURCE:=pglinux-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/peerguardian
PKG_MD5SUM:=0fb2bc5501b031604fc56eec3bd35fa4
-PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/pglinux-$(PKG_VERSION)
define Package/peerguardian
SECTION:=net
CATEGORY:=Network
- DEPENDS:= +libncurses +libpthread +uclibcxx
+ DEPENDS:= +kmod-ipt-queue +libncurses +libpthread +uclibcxx
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/
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
/etc/PG.conf
/etc/p2p.p2b.p2p
# Copyright (C) 2006 OpenWrt.org
START=50
-BIN=pgtext
-DEFAULT=/etc/default/$BIN
-RUN_D=/var/run
-PID_F=$RUN_D/$BIN_${IF}_${ID}.pid
+BIN=peerguardnf
+CFG_F=/etc/PG.conf
+OPTIONS="-c $CFG_F -d"
start() {
- [ -f $DEFAULT ] && . $DEFAULT
$BIN $OPTIONS
}
-stop() {
- [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
-}