2 # Copyright (C) 2009 Jo-Philipp Wich <xm@subsignal.org>
4 # This is free software, licensed under the Apache 2.0 license.
7 include $(TOPDIR
)/rules.mk
9 PKG_NAME
:=freifunk-firewall
12 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
14 include $(INCLUDE_DIR
)/package.mk
16 define Package
/freifunk-firewall
20 TITLE
:=Freifunk Firewall Addon
24 define Package
/freifunk-firewall
/description
25 Various firewall extensions for Freifunk. Includes NAT fixes and advanced settings.
29 mkdir
-p
$(PKG_BUILD_DIR
)
32 define Build
/Configure
38 define Package
/freifunk-firewall
/postinst
40 [ -n
"$${IPKG_INSTROOT}" ] ||
{
41 if
! grep
-q
/etc
/firewall.freifunk
/etc
/config
/firewall
; then
42 uci add firewall
include >/dev
/null
43 uci set firewall.@
include[-1].path
=/etc
/firewall.freifunk
49 define Package
/freifunk-firewall
/install
53 $(eval
$(call BuildPackage
,freifunk-firewall
))