2 # Copyright (C) 2009 Andreas Seidler <tetzlav@subsignal.org>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=freifunk-p2pblock
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15 include $(INCLUDE_DIR)/package.mk
17 define Package/freifunk-p2pblock
20 TITLE:=Freifunk p2pblock Addon
21 DEPENDS:=+iptables-mod-filter +l7-protocols +iptables-mod-conntrack-extra
24 define Package/freifunk-p2pblock/description
25 Simple Addon for Freifunk which use iptables layer7-, ipp2p- and recent-modules
26 to block p2p/filesharing traffic
30 mkdir -p $(PKG_BUILD_DIR)
33 define Build/Configure
39 define Package/freifunk-p2pblock/install
40 $(INSTALL_DIR) $(1)/etc/init.d
41 $(INSTALL_BIN) ./files/freifunk-p2pblock.init $(1)/etc/init.d/freifunk-p2pblock
42 $(INSTALL_DIR) $(1)/etc/config
43 $(INSTALL_BIN) ./files/freifunk-p2pblock.config $(1)/etc/config/freifunk-p2pblock
46 $(eval $(call BuildPackage,freifunk-p2pblock))