2006-10-31 17:24:34 +00:00
|
|
|
#
|
2010-07-11 00:37:05 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-08-07 09:10:43 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=peerguardian
|
|
|
|
PKG_VERSION:=1.5beta
|
2010-10-09 09:29:18 +00:00
|
|
|
PKG_RELEASE:=3
|
2006-08-07 09:10:43 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=pglinux-$(PKG_VERSION).tar.gz
|
2006-10-31 17:24:34 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/peerguardian
|
|
|
|
PKG_MD5SUM:=0fb2bc5501b031604fc56eec3bd35fa4
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/pglinux-$(PKG_VERSION)
|
2010-10-09 16:43:04 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2006-10-31 17:24:34 +00:00
|
|
|
|
2007-01-22 17:33:10 +00:00
|
|
|
PKG_BUILD_DEPENDS:=iptables
|
2006-08-07 09:10:43 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/peerguardian
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 07:59:58 +00:00
|
|
|
SUBMENU:=P2P
|
2010-12-13 02:49:44 +00:00
|
|
|
DEPENDS:= +libncurses +libpthread +libnetfilter-queue
|
2006-08-07 09:10:43 +00:00
|
|
|
TITLE:=PeerGuardian for Linux
|
|
|
|
URL:=http://phoenixlabs.org/
|
|
|
|
endef
|
|
|
|
|
2007-09-29 18:37:34 +00:00
|
|
|
define Package/peerguardian/description
|
|
|
|
PeerGuardian helps protect your privacy by blocking many ranges of aggressive
|
|
|
|
IPs while you use P2P.
|
|
|
|
endef
|
|
|
|
|
2006-08-07 09:10:43 +00:00
|
|
|
define Package/peerguardian/conffiles
|
|
|
|
/etc/PG.conf
|
|
|
|
/etc/p2p.p2b.p2p
|
|
|
|
endef
|
|
|
|
|
2010-10-09 09:08:18 +00:00
|
|
|
EXTRA_CFLAGS:=-fno-rtti -I$(STAGING_DIR)/usr/include/libnetfilter_queue/
|
|
|
|
|
2007-09-03 16:08:44 +00:00
|
|
|
CONFIGURE_VARS+= \
|
2010-10-09 09:08:18 +00:00
|
|
|
LIBS="-lm"
|
2006-10-31 17:24:34 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
2010-10-09 09:11:03 +00:00
|
|
|
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
2010-10-09 09:08:18 +00:00
|
|
|
CXXLD="$(TARGET_CXX)"
|
2006-10-31 17:24:34 +00:00
|
|
|
endef
|
|
|
|
|
2006-08-07 09:10:43 +00:00
|
|
|
define Package/peerguardian/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/PG.conf $(1)/etc/
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/p2p.p2b.p2p $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/peerguardnf $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pgtext $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2007-09-29 18:53:41 +00:00
|
|
|
$(INSTALL_BIN) ./files/peerguardian.init $(1)/etc/init.d/peerguardian
|
2006-08-07 09:10:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,peerguardian))
|