source: packages/net/peerguardian/Makefile @ 26093

Last change on this file since 26093 was 26093, checked in by cshore, 5 years ago

[net] P2P: Moved peerguardian safeguards for P2P to P2P submenu.

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=peerguardian
11PKG_VERSION:=1.5beta
12PKG_RELEASE:=3
13
14PKG_SOURCE:=pglinux-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/peerguardian
16PKG_MD5SUM:=0fb2bc5501b031604fc56eec3bd35fa4
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/pglinux-$(PKG_VERSION)
19PKG_BUILD_PARALLEL:=1
20
21PKG_BUILD_DEPENDS:=iptables
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/peerguardian
26  SECTION:=net
27  CATEGORY:=Network
28  SUBMENU:=P2P
29  DEPENDS:= +libncurses +libpthread +libnetfilter-queue
30  TITLE:=PeerGuardian for Linux
31  URL:=http://phoenixlabs.org/
32endef
33
34define Package/peerguardian/description
35 PeerGuardian helps protect your privacy by blocking many ranges  of aggressive
36 IPs while you use P2P.
37endef
38
39define Package/peerguardian/conffiles
40/etc/PG.conf
41/etc/p2p.p2b.p2p
42endef
43
44EXTRA_CFLAGS:=-fno-rtti -I$(STAGING_DIR)/usr/include/libnetfilter_queue/
45
46CONFIGURE_VARS+= \
47        LIBS="-lm"
48
49define Build/Compile
50        $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
51                CXXLD="$(TARGET_CXX)"
52endef
53
54define Package/peerguardian/install
55        $(INSTALL_DIR) $(1)/etc
56        $(INSTALL_DATA) $(PKG_BUILD_DIR)/PG.conf $(1)/etc/
57        $(INSTALL_DATA) $(PKG_BUILD_DIR)/p2p.p2b.p2p $(1)/etc/
58        $(INSTALL_DIR) $(1)/usr/sbin
59        $(INSTALL_BIN) $(PKG_BUILD_DIR)/peerguardnf $(1)/usr/sbin/
60        $(INSTALL_BIN) $(PKG_BUILD_DIR)/pgtext $(1)/usr/sbin/
61        $(INSTALL_DIR) $(1)/etc/init.d
62        $(INSTALL_BIN) ./files/peerguardian.init $(1)/etc/init.d/peerguardian
63endef
64
65$(eval $(call BuildPackage,peerguardian))
Note: See TracBrowser for help on using the repository browser.