Merge pull request #12516 from rozhuk-im/fbsd_build
[feed/packages.git] / net / shorewall / Makefile
1 #
2 # Copyright (C) 2008-2012 OpenWrt.org
3 # Copyright (C) 2017 Willem van den Akker <wvdakker@wilsoft.nl>
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:=shorewall
12 PKG_MAJOR_MINOR_VERSION:=5.2
13 PKG_BUGFIX_MAJOR_VERSION:=5
14 PKG_BUGFIX_MINOR_VERSION:=.1
15 PKG_VERSION:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)$(PKG_BUGFIX_MINOR_VERSION)
16 PKG_DIRECTORY:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)
17 PKG_RELEASE:=1
18
19 PKG_SOURCE_URL:=http://shorewall.org/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
20 http://slovakia.shorewall.net/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
21 http://www.shorewall.no/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
22 http://france.shorewall.net/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/
23 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
24 PKG_HASH:=786c7016d124c131f80aff72105e1cffca3aad825078692ba878287271193f98
25
26 PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
27 PKG_LICENSE:=GPL-2.0-or-later
28 PKG_LICENSE_FILES:=COPYING
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/shorewall
33 SECTION:=devel
34 CATEGORY:=Network
35 DEPENDS:=+ip +iptables +kmod-ipt-hashlimit +kmod-ipt-raw +iptables-mod-hashlimit +shorewall-core \
36 +perl +perlbase-autoloader +perlbase-autouse +perlbase-dynaloader +perlbase-digest \
37 +perlbase-findbin +perlbase-getopt +perlbase-hash
38 TITLE:=Shorewall Central Administration System
39 URL:=http://www.shorewall.net/
40 SUBMENU:=Firewall
41 endef
42
43 define Package/shorewall/description
44 The Shoreline Firewall, is high-level tool for configuring Netfilter.
45
46 Shorewall allows for central administration of multiple IPv4 firewalls.
47 This is the full Shorewall product which will compile Shorewall scripts.
48 It is not recommended to run it on a low memory system.
49
50 Note: This is the IPv4 implementation of Shorewall.
51 This full Shorewal packages also installs Perl which can make the image big (about +2M).
52 endef
53
54 CONFIGURE_ARGS += \
55 vendor=openwrt
56
57 define Build/Compile
58 DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
59 endef
60
61 define Package/shorewall/conffiles
62 /etc/shorewall/
63 endef
64
65 define Package/shorewall/install
66 $(INSTALL_DIR) $(1)/etc/init.d/
67 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
68 $(INSTALL_DIR) $(1)/etc/shorewall/
69 $(INSTALL_DIR) $(1)/usr/lib/shorewall/
70 $(INSTALL_DIR) $(1)/usr/sbin/
71 $(INSTALL_DIR) $(1)/usr/share/shorewall/
72 $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall
73 $(INSTALL_BIN) ./files/hostname $(1)/etc/shorewall/
74 $(INSTALL_BIN) ./files/shorewall.init $(1)/etc/init.d/shorewall
75 $(INSTALL_BIN) ./files/vardir $(1)/etc/shorewall/
76 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall/. $(1)/etc/shorewall/
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/shorewall/. $(1)/usr/lib/shorewall/
78 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall/. $(1)/usr/share/shorewall/
79 endef
80
81 $(eval $(call BuildPackage,shorewall))