2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 7845 2007-07-01 23:09:45Z florian $
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=shorewall-common
14 PKG_MD5SUM
:=9f8fc4c977c8291736c3f750c52f4dc8
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
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/shorewall-common
26 DEPENDS
:=+shorewall-shell
28 URL
:=http
://www.shorewall.net
/
32 define Package
/shorewall-common
/description
33 Shorewall Firewall is an iptables-based firewall for Linux.
37 rm -rf
$(PKG_INSTALL_DIR
)
38 mkdir
-p
$(PKG_INSTALL_DIR
)
39 PREFIX
=$(PKG_INSTALL_DIR
) $(PKG_BUILD_DIR
)/install.sh
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
54 $(eval
$(call BuildPackage
,shorewall-common
))