|
|
- #
- # Copyright (C) 2008-2012 OpenWrt.org
- # Copyright (C) 2017 Willem van den Akker <wvdakker@wilsoft.nl>
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
-
- include $(TOPDIR)/rules.mk
-
- PKG_NAME:=shorewall-core
- PKG_VERSION:=5.1.4.1
- PKG_DIRECTORY:=5.1
- PKG_RELEASE:=1
- PKG_MAINVERSION:=5.1.4
-
- PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/$(PKG_DIRECTORY)/shorewall-$(PKG_MAINVERSION)/
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
- PKG_HASH:=118378698e0fa1216b52ace92fe9eae0f7d32c39becbc50837a895d7367674b2c973b1633c8919045d9d16dd2a5fdbedb9d62ff1513547ee4770a2e9116d8b1e
-
- PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
- PKG_LICENSE:=GPL-2.0+
- PKG_LICENSE_FILES:=COPYING
-
- include $(INCLUDE_DIR)/package.mk
-
- define Package/shorewall-core
- SECTION:=net
- CATEGORY:=Network
- DEPENDS:=+ip +iptables
- TITLE:=Shorewall Core
- URL:=http://www.shorewall.net/
- SUBMENU:=Firewall
- endef
-
- define Package/shorewall-core/description
- The Shoreline Firewall, is high-level tool for configuring Netfilter.
- This package provides the core Shorewall libraries installed in /usr/share/shorewall/,
- which are required for the rest of the Shorewall packages to work.
- endef
-
- define Package/shorewall-core/conffiles
- /usr/share/shorewall/shorewallrc
- endef
-
- CONFIGURE_ARGS += \
- vendor=openwrt
-
- define Build/Compile
- DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
- endef
-
- define Package/shorewall-core/install
- $(INSTALL_DIR) $(1)/usr/share
- $(INSTALL_DIR) $(1)/usr/sbin
- $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/shorewall/wait4ifup $(1)/usr/share/shorewall
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/shorewall $(1)/usr/sbin
- endef
-
- $(eval $(call BuildPackage,shorewall-core))
|