47e6db2f61a144819d9771cc9f925b7e80b39617
[openwrt/svn-archive/archive.git] / net / shorewall-common / 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: Makefile 7845 2007-07-01 23:09:45Z florian $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=shorewall-common
12 PKG_VERSION:=4.0.10.1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=9f8fc4c977c8291736c3f750c52f4dc8
15
16 # PKG_SOURCE_URL:=http://www1.shorewall.net/pub/shorewall/4.0/shorewall-$(PKG_VERSION)/
17 # The source directory only goes to three levels of version number:
18 PKG_SOURCE_URL:=http://www1.shorewall.net/pub/shorewall/4.0/shorewall-4.0.10
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/shorewall-common
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+shorewall-shell
27 TITLE:=Shorewall
28 URL:=http://www.shorewall.net/
29 SUBMENU:=firewall
30 endef
31
32 define Package/shorewall-common/description
33 Shorewall Firewall is an iptables-based firewall for Linux.
34 endef
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-common/install
43 $(INSTALL_DIR) $(1)/sbin
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_DIR) $(1)/usr/share
46 $(INSTALL_DIR) $(1)/bin
47 $(INSTALL_BIN) ./files/shorewall.init $(1)/etc/init.d/shorewall
48 $(INSTALL_BIN) ./files/hostname $(1)/bin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/shorewall $(1)/sbin
50 $(CP) $(PKG_INSTALL_DIR)/usr/share/shorewall $(1)/usr/share
51 $(CP) $(PKG_INSTALL_DIR)/etc/shorewall $(1)/etc
52 endef
53
54 $(eval $(call BuildPackage,shorewall-common))