Upgrade bind to 9.4.1 (#1977)
[openwrt/svn-archive/archive.git] / net / shorewall / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=shorewall
12 PKG_VERSION:=3.4.6
13 PKG_RELEASE:=2
14
15 PKG_SOURCE_URL:=http://www1.shorewall.net/pub/$(PKG_NAME)/3.4/$(PKG_NAME)-$(PKG_VERSION)/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_MD5SUM:=ec6a8bd3d6d0468b6302a7725851c39b
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/shorewall
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+iptables
25 TITLE:=Shorewall firewall
26 URL:=http://www.shorewall.net/
27 endef
28
29 define define Package/shorewall/description
30 Shorewall Firewall is an iptables-based firewall for Linux.
31 endef
32
33 define Build/Compile
34 rm -rf $(PKG_INSTALL_DIR)
35 mkdir -p $(PKG_INSTALL_DIR)
36 PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
37 endef
38
39 define Package/shorewall/install
40 $(INSTALL_DIR) $(1)/sbin
41 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/$(PKG_NAME) $(1)/sbin
42 $(INSTALL_DIR) $(1)/etc/init.d
43 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
44 $(INSTALL_DIR) $(1)/usr/share
45 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
46 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall $(1)/etc
47 endef
48
49 $(eval $(call BuildPackage,shorewall))