firewall3: update to git head
[openwrt.git] / package / network / config / firewall3 / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.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:=firewall3
11 PKG_VERSION:=2013-05-02
12 PKG_RELEASE:=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=git://nbd.name/firewall3.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=8875f2d067b84a40731983fd495f3e0e4daa493b
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
20
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/firewall3
26   SECTION:=net
27   CATEGORY:=Network
28   TITLE:=UCI C Firewall
29   DEPENDS:=+libubox +libubus +libuci
30 endef
31
32 define Package/firewall3/description
33  This package provides a config-compatible C implementation of the UCI firewall.
34 endef
35
36 define Package/firewall3/conffiles
37 /etc/config/firewall
38 /etc/firewall.user
39 endef
40
41 define Package/firewall3/install
42         $(INSTALL_DIR) $(1)/sbin
43         $(INSTALL_BIN) $(PKG_BUILD_DIR)/firewall3 $(1)/sbin/fw3
44         $(INSTALL_DIR) $(1)/etc/init.d
45         $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
46         $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
47         $(INSTALL_DATA) ./files/firewall.hotplug $(1)/etc/hotplug.d/iface/20-firewall
48         $(INSTALL_DIR) $(1)/etc/config/
49         $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
50         $(INSTALL_DIR) $(1)/etc/
51         $(INSTALL_DATA) ./files/firewall.user $(1)/etc/firewall.user
52         $(INSTALL_DIR) $(1)/usr/share/firewall/
53         $(INSTALL_BIN) ./files/ipv6-ula-border.sh $(1)/usr/share/firewall/ipv6-ula-border.sh
54 endef
55
56 $(eval $(call BuildPackage,firewall3))