contrib/package: rename config for p2pblock to freifunk_p2pblock
[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:=1
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/freifunk-p2pblock
18   SECTION:=net
19   CATEGORY:=Network
20   TITLE:=Freifunk p2pblock Addon
21   DEPENDS:=+iptables-mod-filter +l7-protocols +iptables-mod-conntrack-extra
22 endef
23
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
27 endef
28
29 define Build/Prepare
30         mkdir -p $(PKG_BUILD_DIR)
31 endef
32
33 define Build/Configure
34 endef
35
36 define Build/Compile
37 endef
38
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_DATA) ./files/freifunk-p2pblock.config $(1)/etc/config/freifunk_p2pblock
44 endef
45
46 $(eval $(call BuildPackage,freifunk-p2pblock))