Makefile 1.2 KB

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