Add shorewall-lite package
[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 DESCRIPTION:=Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
29 URL:=http://www.shorewall.net/
30 SUBMENU:=firewall
31 endef
32
33 #define Package/shorewall-lite/description
34 # Shoreline Firewall Lite is an iptables-based firewall for Linux systems.
35 #endef
36
37 define Package/shorewall-lite/conffiles
38 /etc/shorewall-lite/shorewall-lite.conf
39 /etc/shorewall-lite/vardir
40 endef
41
42 define Build/Compile
43 rm -rf $(PKG_INSTALL_DIR)
44 mkdir -p $(PKG_INSTALL_DIR)
45 PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
46 endef
47
48 define Package/shorewall-lite/install
49 $(INSTALL_DIR) $(1)/sbin
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_DIR) $(1)/etc/shorewall-lite
52 $(INSTALL_DIR) $(1)/usr/share
53 $(INSTALL_BIN) ./files/shorewall-lite.init $(1)/etc/init.d/shorewall-lite
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/shorewall-lite $(1)/sbin
55 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall-lite $(1)/usr/share
56 $(INSTALL_BIN) ./files/hostname $(1)/usr/share/shorewall-lite
57 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall-lite $(1)/etc
58 $(CP) ./files/vardir $(1)/etc/shorewall-lite
59 endef
60
61 $(eval $(call BuildPackage,shorewall-lite))