packages: znc: moved to github
[packages.git] / net / shorewall-core / Makefile
1 #
2 # Copyright (C) 2008-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=shorewall-core
11 PKG_VERSION:=4.5.7
12 PKG_DIRECTORY:=4.5.7
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/4.5/shorewall-$(PKG_DIRECTORY)/ \
16         http://www1.shorewall.net/pub/shorewall/4.5/shorewall-$(PKG_DIRECTORY)/ \
17         http://slovakia.shorewall.net/pub/shorewall/4.5/shorewall-$(PKG_DIRECTORY)/ \
18         http://shorewall.de/pub/shorewall/4.5/shorewall-$(PKG_DIRECTORY)/ \
19         http://www.shorewall.com.au/4.5/shorewall-$(PKG_DIRECTORY)/ \
20         http://shorewall.infohiiway.com/pub/shorewall/4.5/shorewall-$(PKG_DIRECTORY)/ \
21         http://www.shorewall.com.ar/pub/shorewall/shorewall/4.5/shorewall-$(PKG_DIRECTORY)/
22 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
23 PKG_MD5SUM:=ed3880b96a22e16cafc68d2e0f976b3a
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/shorewall-core
28   SECTION:=net
29   CATEGORY:=Network
30   DEPENDS:=+ip +iptables +perl +perlbase-digest
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=linux
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         $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
56         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall/wait4ifup $(1)/usr/share/shorewall
57 endef
58
59 $(eval $(call BuildPackage,shorewall-core))