2dbe1fa7cac065019bd7536a6e873225c49e6403
[project/luci.git] / contrib / package / freifunk-p2pblock / Makefile
1 #
2 # Copyright (C) 2009 Andreas Seidler <tetzlav@subsignal.org>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=freifunk-p2pblock
11 PKG_RELEASE:=2
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/freifunk-p2pblock
18 SECTION:=luci
19 CATEGORY:=LuCI
20 SUBMENU:=9. Freifunk
21 TITLE:=Freifunk p2pblock Addon
22 DEPENDS:=+iptables-mod-filter +iptables-mod-ipp2p +l7-protocols +iptables-mod-conntrack-extra
23 endef
24
25 define Package/freifunk-p2pblock/description
26 Simple Addon for Freifunk which use iptables layer7-, ipp2p- and recent-modules
27 to block p2p/filesharing traffic
28 endef
29
30 define Build/Prepare
31 mkdir -p $(PKG_BUILD_DIR)
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 endef
39
40 define Package/freifunk-p2pblock/install
41 $(INSTALL_DIR) $(1)/etc/init.d
42 $(INSTALL_BIN) ./files/freifunk-p2pblock.init $(1)/etc/init.d/freifunk-p2pblock
43 $(INSTALL_DIR) $(1)/etc/config
44 $(INSTALL_DATA) ./files/freifunk-p2pblock.config $(1)/etc/config/freifunk_p2pblock
45 endef
46
47 $(eval $(call BuildPackage,freifunk-p2pblock))