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