Merge pull request #4848 from commodo/python-updates3
[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_VERSION:=5.1.4.1
13 PKG_DIRECTORY:=5.1
14 PKG_MAINVERSION:=5.1.4
15 PKG_RELEASE:=1
16
17 PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/$(PKG_DIRECTORY)/shorewall-$(PKG_MAINVERSION)/
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
19 PKG_HASH:=e90d419ed8a6da615c3a0d6fdcb9481f8e71f89c2bdcff09ab027198ca2ce293
20
21 PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
22 PKG_LICENSE:=GPL-2.0+
23 PKG_LICENSE_FILES:=COPYING
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/shorewall-lite
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=+ip +iptables +shorewall-core
31 TITLE:=Shorewall Lite
32 URL:=http://www.shorewall.net/
33 SUBMENU:=Firewall
34 endef
35
36 define Package/shorewall-lite/description
37 The Shoreline Firewall, is high-level tool for configuring Netfilter.
38
39 Shorewall allows for central administration of multiple IPv4 firewalls
40 through use of Shorewall lite. The full Shorewall product is installed
41 on a central administrative system where compiled Shorewall scripts are
42 generated. These scripts are copied to the firewall systems where they
43 run under the control of Shorewall-lite.
44
45 Note: This is the IPv4 implementation of Shorewall.
46 endef
47
48 define Package/shorewall-lite/conffiles
49 /etc/shorewall-lite/shorewall-lite.conf
50 /etc/shorewall-lite/vardir
51 endef
52
53 CONFIGURE_ARGS += \
54 vendor=openwrt
55
56 define Build/Compile
57 DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
58 endef
59
60 define Package/shorewall-lite/install
61 $(INSTALL_DIR) $(1)/usr/sbin
62 $(INSTALL_DIR) $(1)/etc/init.d
63 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
64 $(INSTALL_DIR) $(1)/etc/shorewall-lite/state
65 $(INSTALL_DIR) $(1)/usr/share
66 $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall-lite
67 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite $(1)/usr/share
68 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shorewall-lite $(1)/usr/sbin
69 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall-lite/shorecap $(1)/usr/share/shorewall-lite
70 $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite
71 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite $(1)/etc
72 $(CP) $(PKG_INSTALL_DIR)/etc/init.d $(1)/etc
73 $(CP) ./files/vardir $(1)/etc/shorewall-lite
74 endef
75
76 $(eval $(call BuildPackage,shorewall-lite))