source: packages/net/shorewall-lite/Makefile

Last change on this file was 40157, checked in by juhosg, 2 years ago

packages/shorewall-lite: fix whitespaces

Signed-off-by: Dirk Neukirchen <dirkneukirchen@…>
Signed-off-by: Gabor Juhos <juhosg@…>

File size: 2.7 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=shorewall-lite
11PKG_VERSION:=4.5.7
12PKG_DIRECTORY:=4.5.7
13PKG_RELEASE:=1
14
15PKG_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)/
22PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
23PKG_MD5SUM:=d2650b0842b5b3f950423a4f5ada0c3e
24
25include $(INCLUDE_DIR)/package.mk
26
27define Package/shorewall-lite
28  SECTION:=net
29  CATEGORY:=Network
30  DEPENDS:=+ip +iptables +shorewall-core +perlbase-digest
31  TITLE:=Shorewall Lite
32  URL:=http://www.shorewall.net/
33  SUBMENU:=Firewall
34endef
35
36define 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.
44endef
45
46define Package/shorewall-lite/conffiles
47/etc/shorewall-lite/shorewall-lite.conf
48/etc/shorewall-lite/vardir
49endef
50
51CONFIGURE_ARGS += \
52        vendor=linux
53
54define Build/Compile
55        DESTDIR=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
56endef
57
58define Package/shorewall-lite/install
59        $(INSTALL_DIR) $(1)/sbin
60        $(INSTALL_DIR) $(1)/etc/init.d
61        $(INSTALL_DIR) $(1)/etc/lsm/script.d
62        $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
63        $(INSTALL_DIR) $(1)/etc/shorewall-lite/state
64        $(INSTALL_DIR) $(1)/usr/share
65        $(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite
66        $(INSTALL_BIN) ./files/hotplug_iface $(1)/etc/hotplug.d/iface/05-shorewall-lite
67        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/shorewall-lite $(1)/sbin
68        $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite $(1)/usr/share
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        $(INSTALL_BIN) ./files/lsm_script $(1)/etc/lsm/script.d/45_shorewall-lite
72        $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite $(1)/etc
73        $(CP) ./files/vardir $(1)/etc/shorewall-lite
74endef
75
76$(eval $(call BuildPackage,shorewall-lite))
Note: See TracBrowser for help on using the repository browser.