/[gentoo-x86]/net-firewall/shorewall/shorewall-4.4.23.2.ebuild
Gentoo

Contents of /net-firewall/shorewall/shorewall-4.4.23.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun May 20 08:42:07 2012 UTC (2 years, 2 months ago) by halcy0n
Branch: MAIN
Changes since 1.6: +2 -2 lines
Stable for ppc/ppc64; bug #388195

(Portage version: 2.1.10.49/cvs/Linux ppc64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/shorewall-4.4.23.2.ebuild,v 1.6 2012/03/17 17:58:25 armin76 Exp $
4
5 EAPI="4"
6
7 inherit eutils versionator
8
9 # Select version (stable, RC, Beta):
10 MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)"
11 MY_PV_BASE=$(get_version_component_range 1-3)
12
13 MY_P="${PN}-${MY_PV_BASE}"
14 MY_P_DOCS="${P/${PN}/${PN}-docs-html}"
15
16 DESCRIPTION="Shoreline Firewall is an iptables-based firewall for Linux."
17 HOMEPAGE="http://www.shorewall.net/"
18 SRC_URI="http://www1.shorewall.net/pub/${PN}/${MY_PV_TREE}/${MY_P}/${P}.tar.bz2
19 doc? ( http://www1.shorewall.net/pub/${PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
24 IUSE="doc"
25
26 DEPEND=">=net-firewall/iptables-1.2.4
27 sys-apps/iproute2[-minimal]
28 dev-lang/perl
29 !net-firewall/shorewall-common
30 !net-firewall/shorewall-shell
31 !net-firewall/shorewall-perl"
32 RDEPEND="${DEPEND}"
33
34 src_compile() {
35 :;
36 }
37
38 src_install() {
39 keepdir /var/lib/shorewall
40
41 cd "${WORKDIR}/${P}"
42 PREFIX="${D}" ./install.sh || die "install.sh failed"
43 newinitd "${FILESDIR}"/shorewall.initd shorewall
44
45 dodoc changelog.txt releasenotes.txt
46 if use doc; then
47 dodoc -r Samples
48 cd "${WORKDIR}/${MY_P_DOCS}"
49 dohtml -r *
50 fi
51 dodir /var/lock/subsys
52 }
53
54 pkg_postinst() {
55 elog "It is advised to copy the /usr/share/shorewall/configfiles dir to your"
56 elog "own 'export directories'. However, whenever you upgrade Shorewall you"
57 elog "should check for changes in configfiles and manually update your exports."
58 elog "Alternatively, if you only have one Shorewall-Lite system in your network"
59 elog "then you can use the configfiles dir but set CONFIG_PROTECT appropriately"
60 elog "in /etc/make.conf (man make.conf)."
61 }

  ViewVC Help
Powered by ViewVC 1.1.20