fwknop: init script improvements
[feed/packages.git] / net / shorewall6-lite / 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-lite
12 PKG_MAJOR_MINOR_VERSION:=5.2
13 PKG_BUGFIX_MAJOR_VERSION:=3
14 PKG_BUGFIX_MINOR_VERSION:=.5
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:=2
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:=aeac91d2cef004892c31256b1d7107d5ae4c392772a7530c0b4834893180eae3
26
27 PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
28 PKG_LICENSE:=GPL-2.0-or-later
29 PKG_LICENSE_FILES:=COPYING
30
31
32 include $(INCLUDE_DIR)/package.mk
33
34 define Package/shorewall6-lite
35 SECTION:=net
36 CATEGORY:=Network
37 DEPENDS:=+ip +ip6tables +shorewall-core
38 TITLE:=Shorewall6 Lite
39 URL:=http://www.shorewall.net/
40 SUBMENU:=Firewall
41 endef
42
43 define Package/shorewall6-lite/description
44 The Shoreline Firewall, is high-level tool for configuring Netfilter.
45
46 Shorewall6 allows for central administration of multiple IPv6 firewalls
47 through use of Shorewall6 lite. The full Shorewall6 product is installed
48 on a central administrative system where compiled Shorewall6 scripts are
49 generated. These scripts are copied to the firewall systems where they
50 run under the control of Shorewall6-lite.
51
52 Note: This is the IPv6 implementation of Shorewall.
53 endef
54
55 define Package/shorewall6-lite/conffiles
56 /etc/shorewall6-lite/
57 endef
58
59 CONFIGURE_ARGS += \
60 vendor=openwrt
61
62 define Build/Compile
63 DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
64 endef
65
66 define Package/shorewall6-lite/install
67 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
68 $(INSTALL_DIR) $(1)/etc/init.d/
69 $(INSTALL_DIR) $(1)/etc/shorewall6-lite/state/
70 $(INSTALL_DIR) $(1)/usr/sbin/
71 $(INSTALL_DIR) $(1)/usr/share/shorewall6-lite/
72 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall6-lite/ $(1)/etc/
73 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall6-lite/ $(1)/usr/share/
74 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shorewall6-lite $(1)/usr/sbin/
75 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall6-lite/shorecap $(1)/usr/share/shorewall6-lite/
76 $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall6-lite/
77 $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall6-lite
78 $(INSTALL_BIN) ./files/shorewall6-lite.init $(1)/etc/init.d/shorewall6-lite
79 $(INSTALL_BIN) ./files/vardir $(1)/etc/shorewall6-lite/
80 endef
81
82 $(eval $(call BuildPackage,shorewall6-lite))