source: packages/net/peerguardian/Makefile @ 13629

Last change on this file since 13629 was 13629, checked in by florian, 8 years ago

Fix peeguardian compilation against libipq other programs should also use those libraries instead of the old libipq (#4307)

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