Merge pull request #4949 from commodo/python-lxml-update
[feed/packages.git] / net / shorewall-core / 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-core
12 PKG_VERSION:=5.1.4.1
13 PKG_DIRECTORY:=5.1
14 PKG_RELEASE:=1
15 PKG_MAINVERSION:=5.1.4
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:=3d1446f7e437104c8f8c7257ccdbddfc0dc7df3ea68b80274c11dd94cc1c8629
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-core
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=+ip +iptables
31 TITLE:=Shorewall Core
32 URL:=http://www.shorewall.net/
33 SUBMENU:=Firewall
34 endef
35
36 define Package/shorewall-core/description
37 The Shoreline Firewall, is high-level tool for configuring Netfilter.
38 This package provides the core Shorewall libraries installed in /usr/share/shorewall/,
39 which are required for the rest of the Shorewall packages to work.
40 endef
41
42 define Package/shorewall-core/conffiles
43 /usr/share/shorewall/shorewallrc
44 endef
45
46 CONFIGURE_ARGS += \
47 vendor=openwrt
48
49 define Build/Compile
50 DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
51 endef
52
53 define Package/shorewall-core/install
54 $(INSTALL_DIR) $(1)/usr/share
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall/wait4ifup $(1)/usr/share/shorewall
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/shorewall $(1)/usr/sbin
59 endef
60
61 $(eval $(call BuildPackage,shorewall-core))