2006-10-31 17:24:34 +00:00
|
|
|
#
|
2012-12-11 17:51:01 +00:00
|
|
|
# Copyright (C) 2006-2012 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
|
2012-12-11 17:51:01 +00:00
|
|
|
PKG_VERSION:=2.2.2
|
|
|
|
PKG_RELEASE:=1
|
2006-08-07 09:10:43 +00:00
|
|
|
|
2012-12-11 17:51:01 +00:00
|
|
|
PKG_SOURCE:=pgl-$(PKG_VERSION).tar.gz
|
2006-10-31 17:24:34 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/peerguardian
|
2012-12-11 17:51:01 +00:00
|
|
|
PKG_MD5SUM:=
|
2006-10-31 17:24:34 +00:00
|
|
|
|
2012-12-11 17:51:01 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/pgl-$(PKG_VERSION)
|
2010-10-09 16:43:04 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2012-12-11 17:51:01 +00:00
|
|
|
PKG_INSTALL:=1
|
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
|
2012-12-11 17:51:01 +00:00
|
|
|
DEPENDS:=+libnetfilter-queue +zlib
|
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
|
2012-12-11 17:51:01 +00:00
|
|
|
PeerGuardian helps protect your privacy by blocking many ranges of aggressive
|
2007-09-29 18:37:34 +00:00
|
|
|
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
|
|
|
|
|
2012-12-11 17:51:01 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-lowmem \
|
|
|
|
--without-qt4 \
|
|
|
|
--disable-dbus \
|
|
|
|
--disable-networkmanager \
|
|
|
|
--disable-cron
|
2006-10-31 17:24:34 +00:00
|
|
|
|
2006-08-07 09:10:43 +00:00
|
|
|
define Package/peerguardian/install
|
2012-12-11 17:51:01 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/pgl $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pglcmd $(1)/usr/bin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2012-12-11 17:51:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pgld $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pgl $(1)/usr/lib/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(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))
|