42afe12aa94ae9641e5d6814ddb75d487828d3bb
[feed/packages.git] / net / shorewall-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:=shorewall-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:=233ea801ce100e905e0231dd5585e3ee47fabf637ddb7d6dbe1913d63cd13e54
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 include $(INCLUDE_DIR)/package.mk
32
33 define Package/shorewall-lite
34 SECTION:=net
35 CATEGORY:=Network
36 DEPENDS:=+ip +iptables +shorewall-core
37 TITLE:=Shorewall Lite
38 URL:=http://www.shorewall.net/
39 SUBMENU:=Firewall
40 endef
41
42 define Package/shorewall-lite/description
43 The Shoreline Firewall, is high-level tool for configuring Netfilter.
44
45 Shorewall allows for central administration of multiple IPv4 firewalls
46 through use of Shorewall lite. The full Shorewall product is installed
47 on a central administrative system where compiled Shorewall scripts are
48 generated. These scripts are copied to the firewall systems where they
49 run under the control of Shorewall-lite.
50
51 Note: This is the IPv4 implementation of Shorewall.
52 endef
53
54 define Package/shorewall-lite/conffiles
55 /etc/shorewall-lite/
56 endef
57
58 CONFIGURE_ARGS += \
59 vendor=openwrt
60
61 define Build/Compile
62 DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
63 endef
64
65 define Package/shorewall-lite/install
66 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface/
67 $(INSTALL_DIR) $(1)/etc/init.d/
68 $(INSTALL_DIR) $(1)/etc/shorewall-lite/state/
69 $(INSTALL_DIR) $(1)/usr/sbin/
70 $(INSTALL_DIR) $(1)/usr/share/shorewall-lite/
71 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite/ $(1)/etc/
72 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite/ $(1)/usr/share/
73 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shorewall-lite $(1)/usr/sbin/
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall-lite/shorecap $(1)/usr/share/shorewall-lite/
75 $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite/
76 $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall-lite
77 $(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite
78 $(INSTALL_BIN) ./files/vardir $(1)/etc/shorewall-lite/
79 endef
80
81 $(eval $(call BuildPackage,shorewall-lite))