Massive propset of svn:keywords for packages newly addded, next time, we should not...
[openwrt/svn-archive/archive.git] / net / shorewall / Makefile
1 #
2 # Copyright (C) 2006 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.3
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=4ac779d02d4befc72a0ce1534fbb328d
15
16 PKG_SOURCE_URL:=http://www1.shorewall.net/pub/$(PKG_NAME)/3.4/$(PKG_NAME)-$(PKG_VERSION)/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/shorewall
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+iptables
29 TITLE:=Shorewall firewall
30 DESCRIPTION:=\
31 Shorewall Firewall is an iptables-based firewall for Linux.
32 URL:=http://www.shorewall.net/
33 endef
34
35
36 define Build/Compile
37 rm -rf $(PKG_INSTALL_DIR)
38 mkdir -p $(PKG_INSTALL_DIR)
39 PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
40 endef
41
42 define Package/shorewall/install
43 $(INSTALL_DIR) $(1)/sbin
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_DIR) $(1)/usr/share
46 $(INSTALL_BIN) ./files/shorewall.init $(1)/etc/init.d/shorewall
47 $(CP) $(PKG_INSTALL_DIR)/sbin/shorewall $(1)/sbin
48 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
49 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall $(1)/etc
50 endef
51
52 $(eval $(call BuildPackage,shorewall))