summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/freifunk-p2pblock/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-07 11:48:37 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-07 11:48:37 +0000
commit5ae86ebc3f8ee13ef7c267e2de16fbe6664f8cf0 (patch)
tree84cf9ecee070c2b19a14e65a1c47245aa064a70f /contrib/package/freifunk-p2pblock/Makefile
parentdc850f5f96b8d09d3be3687e2b4cb2f75f1d7d8d (diff)
contrib/package: add freifunk-p2pblock firewall addon
Diffstat (limited to 'contrib/package/freifunk-p2pblock/Makefile')
-rw-r--r--contrib/package/freifunk-p2pblock/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/contrib/package/freifunk-p2pblock/Makefile b/contrib/package/freifunk-p2pblock/Makefile
new file mode 100644
index 000000000..918d6a95e
--- /dev/null
+++ b/contrib/package/freifunk-p2pblock/Makefile
@@ -0,0 +1,46 @@
+#
+# Copyright (C) 2009 Andreas Seidler <tetzlav@subsignal.org>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=freifunk-p2pblock
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/freifunk-p2pblock
+ SECTION:=net
+ CATEGORY:=Network
+ TITLE:=Freifunk p2pblock Addon
+ DEPENDS:=+iptables-mod-filter +l7-protocols +iptables-mod-conntrack-extra
+endef
+
+define Package/freifunk-p2pblock/description
+ Simple Addon for Freifunk which use iptables layer7-, ipp2p- and recent-modules
+ to block p2p/filesharing traffic
+endef
+
+define Build/Prepare
+ mkdir -p $(PKG_BUILD_DIR)
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+endef
+
+define Package/freifunk-p2pblock/install
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/freifunk-p2pblock.init $(1)/etc/init.d/freifunk-p2pblock
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_BIN) ./files/freifunk-p2pblock.config $(1)/etc/config/freifunk-p2pblock
+endef
+
+$(eval $(call BuildPackage,freifunk-p2pblock))