OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2013-2016 OpenWrt.org |
||
3 | # Copyright (C) 2016 LEDE project |
||
4 | # |
||
5 | # This is free software, licensed under the GNU General Public License v2. |
||
6 | # See /LICENSE for more information. |
||
7 | # |
||
8 | |||
9 | include $(TOPDIR)/rules.mk |
||
10 | |||
11 | PKG_NAME:=firewall |
||
3 | office | 12 | PKG_RELEASE:=1 |
1 | office | 13 | |
14 | PKG_SOURCE_PROTO:=git |
||
15 | PKG_SOURCE_URL=$(PROJECT_GIT)/project/firewall3.git |
||
3 | office | 16 | PKG_SOURCE_DATE:=2018-07-26 |
17 | PKG_SOURCE_VERSION:=aa8846bb101054392b81f09bade120c021695892 |
||
18 | PKG_MIRROR_HASH:=cc2ff632744bdefbc64ad11dc18944b44af006c986367a28d6483ade6012effa |
||
1 | office | 19 | PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io> |
20 | PKG_LICENSE:=ISC |
||
21 | |||
22 | PKG_CONFIG_DEPENDS := CONFIG_IPV6 |
||
23 | |||
24 | include $(INCLUDE_DIR)/package.mk |
||
25 | include $(INCLUDE_DIR)/cmake.mk |
||
26 | |||
27 | define Package/firewall |
||
28 | SECTION:=net |
||
29 | CATEGORY:=Base system |
||
30 | TITLE:=OpenWrt C Firewall |
||
31 | DEPENDS:=+libubox +libubus +libuci +libip4tc +IPV6:libip6tc +libxtables +kmod-ipt-core +kmod-ipt-conntrack +IPV6:kmod-nf-conntrack6 +kmod-ipt-nat |
||
32 | endef |
||
33 | |||
34 | define Package/firewall/description |
||
35 | This package provides a config-compatible C implementation of the UCI firewall. |
||
36 | endef |
||
37 | |||
38 | define Package/firewall/conffiles |
||
39 | /etc/config/firewall |
||
40 | /etc/firewall.user |
||
41 | endef |
||
42 | |||
43 | TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto |
||
44 | TARGET_LDFLAGS += -Wl,--gc-sections -flto |
||
45 | CMAKE_OPTIONS += $(if $(CONFIG_IPV6),,-DDISABLE_IPV6=1) |
||
46 | |||
47 | define Package/firewall/install |
||
48 | $(INSTALL_DIR) $(1)/sbin |
||
49 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/firewall3 $(1)/sbin/fw3 |
||
50 | $(INSTALL_DIR) $(1)/etc/init.d |
||
51 | $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall |
||
52 | $(INSTALL_DIR) $(1)/etc/hotplug.d/iface |
||
3 | office | 53 | $(INSTALL_DATA) ./files/firewall.hotplug $(1)/etc/hotplug.d/iface/20-firewall |
1 | office | 54 | $(INSTALL_DIR) $(1)/etc/config/ |
3 | office | 55 | $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall |
1 | office | 56 | $(INSTALL_DIR) $(1)/etc/ |
3 | office | 57 | $(INSTALL_DATA) ./files/firewall.user $(1)/etc/firewall.user |
1 | office | 58 | $(INSTALL_DIR) $(1)/usr/share/fw3 |
3 | office | 59 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/helpers.conf $(1)/usr/share/fw3 |
1 | office | 60 | endef |
61 | |||
62 | $(eval $(call BuildPackage,firewall)) |