4d878e0bbe
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6180 3c298f89-4303-0410-b956-a3cf2f4a3e73
70 lines
1.7 KiB
Makefile
70 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=peerguardian
|
|
PKG_VERSION:=1.5beta
|
|
PKG_RELEASE:=1
|
|
|
|
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)
|
|
|
|
PKG_BUILD_DEPENDS:=iptables
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/peerguardian
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:= +libpthread +libncurses
|
|
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/conffiles
|
|
/etc/PG.conf
|
|
/etc/p2p.p2b.p2p
|
|
endef
|
|
|
|
# commas are interpreted by the $(call ...) macro, so define an intermediate variable holding our settings
|
|
PKG_CONFIGURE_LIBS:=-Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic,-lm,-lc
|
|
|
|
define Build/Configure
|
|
$(call Build/Configure/Default, \
|
|
, \
|
|
CXXFLAGS="$$$$CXXFLAGS $$$$CPPFLAGS -fno-builtin -fno-rtti" \
|
|
LIBS="$(PKG_CONFIGURE_LIBS)" \
|
|
)
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CXXLD="$(TARGET_CC)"
|
|
endef
|
|
|
|
define Package/peerguardian/install
|
|
$(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
|
|
$(INSTALL_DATA) ./files/peerguardian.init $(1)/etc/init.d/peerguardian
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,peerguardian))
|