shorewall-lite: DESCRIPTION -> Package/<name>/description
[openwrt/svn-archive/archive.git] / net / shorewall-lite / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=shorewall-lite
4 PKG_VERSION:=4.0.8
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=9eb449aed51d2f040c67baa23477b89c
7
8 PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/4.0/shorewall-$(PKG_VERSION)/ \
9 http://www1.shorewall.net/pub/shorewall/4.0/shorewall-$(PKG_VERSION)/ \
10 http://slovakia.shorewall.net/pub/shorewall/4.0/shorewall-$(PKG_VERSION)/ \
11 http://shorewall.de/pub/shorewall/4.0/shorewall-$(PKG_VERSION)/ \
12 http://www.shorewall.com.au/4.0/shorewall-$(PKG_VERSION)/ \
13 http://shorewall.infohiiway.com/pub/shorewall/4.0/shorewall-$(PKG_VERSION)/ \
14 http://www.shorewall.com.ar/pub/shorewall/shorewall/4.0/shorewall-$(PKG_VERSION)/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_CAT=bzcat
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/shorewall-lite
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+ip +iptables +iptables-utils
27 TITLE:=Shorewall Lite
28 URL:=http://www.shorewall.net/
29 SUBMENU:=firewall
30 endef
31
32 define Package/shorewall-lite/description
33 Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
34 endef
35
36 define Package/shorewall-lite/conffiles
37 /etc/shorewall-lite/shorewall-lite.conf
38 /etc/shorewall-lite/vardir
39 endef
40
41 define Build/Compile
42 rm -rf $(PKG_INSTALL_DIR)
43 mkdir -p $(PKG_INSTALL_DIR)
44 PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
45 endef
46
47 define Package/shorewall-lite/install
48 $(INSTALL_DIR) $(1)/sbin
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_DIR) $(1)/etc/shorewall-lite
51 $(INSTALL_DIR) $(1)/usr/share
52 $(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/shorewall-lite $(1)/sbin
54 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite $(1)/usr/share
55 $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite
56 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite $(1)/etc
57 $(CP) ./files/vardir $(1)/etc/shorewall-lite
58 endef
59
60 $(eval $(call BuildPackage,shorewall-lite))