[package] update st2205tool to 1.4.3 (#5731)
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=shorewall-common
11 PKG_VERSION:=4.2.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=http://www.shorewall.net/pub/shorewall/4.2/shorewall-$(PKG_VERSION)/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_MD5SUM:=47f51b083bdea3904ffaf3a3c9317526
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/shorewall-common
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+shorewall-shell
24 TITLE:=Shorewall
25 URL:=http://www.shorewall.net/
26 SUBMENU:=firewall
27 PKGARCH:=all
28 endef
29
30 define Package/shorewall-common/description
31 Shorewall Firewall is an iptables-based firewall for Linux.
32 endef
33
34 define Build/Compile
35 rm -rf $(PKG_INSTALL_DIR)
36 mkdir -p $(PKG_INSTALL_DIR)
37 PREFIX=$(PKG_INSTALL_DIR) $(PKG_BUILD_DIR)/install.sh
38 endef
39
40 define Package/shorewall-common/install
41 $(INSTALL_DIR) $(1)/sbin
42 $(INSTALL_DIR) $(1)/etc/init.d
43 $(INSTALL_DIR) $(1)/usr/share
44 $(INSTALL_DIR) $(1)/bin
45 $(INSTALL_BIN) ./files/shorewall.init $(1)/etc/init.d/shorewall
46 $(INSTALL_BIN) ./files/hostname $(1)/bin
47 $(INSTALL_BIN) $(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-common))