2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=2013-02-21
12 PKG_RELEASE:=$(PKG_SOURCE_VERSION)
15 PKG_SOURCE_URL:=git://nbd.name/firewall3.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=fe3ecee341da8542aa25b962dcb8bcc628fcdd1e
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
25 define Package/firewall3
29 DEPENDS:=+libubox +libubus +libuci
32 define Package/firewall3/description
33 This package provides a config-compatible C implementation of the UCI firewall.
36 define Package/firewall3/install
37 $(INSTALL_DIR) $(1)/sbin
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/firewall3 $(1)/sbin/fw3
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
41 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
42 $(INSTALL_DATA) ./files/firewall.hotplug $(1)/etc/hotplug.d/iface/20-firewall
45 $(eval $(call BuildPackage,firewall3))