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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jun 8 17:12:33 2012 UTC (2 years, 6 months ago) by constanze
Branch: MAIN
Version bump with new config file

(Portage version: 2.1.10.49/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.5.0.1.ebuild,v 1.1 2012/02/24 18:53:41 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_configure() {
40 :;
41 }
42
43 src_compile() {
44 :;
45 }
46
47 src_install() {
48 keepdir /var/lib/${PN}
49
50 cd "${WORKDIR}/${P}"
51 DESTDIR="${D}" ./install.sh "${FILESDIR}"/shorewallrc || die "install.sh failed"
52 newinitd "${FILESDIR}"/${PN}.initd ${PN}
53
54 dodoc changelog.txt releasenotes.txt
55 if use doc; then
56 dodoc -r Samples6
57 cd "${WORKDIR}/${MY_P_DOCS}"
58 dohtml -r *
59 fi
60 keepdir /var/lock/subsys
61 }

  ViewVC Help
Powered by ViewVC 1.1.20