/[gentoo-x86]/net-firewall/shorewall6/shorewall6-4.4.27.ebuild
Gentoo

Contents of /net-firewall/shorewall6/shorewall6-4.4.27.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jan 3 08:50:02 2012 UTC (2 years, 6 months ago) by constanze
Branch: MAIN
Version Bump

(Portage version: 2.1.10.41/cvs/Linux x86_64)

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/shorewall6/shorewall6-4.4.24.1.ebuild,v 1.1 2011/10/23 09:23:43 constanze Exp $
4
5 EAPI="4"
6
7 inherit versionator linux-info
8
9 # Select version (stable, RC, Beta, upstream patched):
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) # which shorewall-common to use
12
13 MY_PN="${PN/6/}"
14 MY_P="${MY_PN}-${MY_PV_BASE}"
15 MY_P_DOCS="${MY_PN}-docs-html-${PV}"
16
17 DESCRIPTION="Shoreline Firewall with IPv6 support."
18 HOMEPAGE="http://www.shorewall.net/"
19 SRC_URI="http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${P}.tar.bz2
20 doc? ( http://www1.shorewall.net/pub/${PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )"
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
25
26 IUSE="doc"
27
28 RDEPEND=">=net-firewall/iptables-1.4.0
29 sys-apps/iproute2
30 >=net-firewall/shorewall-${MY_PV_BASE}
31 dev-perl/Socket6"
32
33 pkg_pretend() {
34 if kernel_is lt 2 6 25 ; then
35 die "${PN} requires at least kernel 2.6.25."
36 fi
37 }
38
39 src_compile() {
40 # The default make command does not work as expected
41 :
42 }
43
44 src_install() {
45 keepdir /var/lib/${PN}
46
47 cd "${WORKDIR}/${P}"
48 PREFIX="${D}" ./install.sh || die "install.sh failed"
49 newinitd "${FILESDIR}"/${PN}.initd ${PN}
50
51 dodoc changelog.txt releasenotes.txt
52 if use doc; then
53 dodoc -r Samples6
54 cd "${WORKDIR}/${MY_P_DOCS}"
55 dohtml -r *
56 fi
57 keepdir /var/lock/subsys
58 }

  ViewVC Help
Powered by ViewVC 1.1.20