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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Mar 21 17:08:41 2011 UTC (3 years, 5 months ago) by xarthisius
Branch: MAIN
Changes since 1.6: +2 -2 lines
ppc/ppc64 stable wrt #352532

(Portage version: 2.2.0_alpha27/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.15.1.ebuild,v 1.6 2011/02/27 14:48:23 klausman Exp $
4
5 inherit versionator linux-info
6
7 # Select version (stable, RC, Beta, upstream patched):
8 MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)"
9 MY_P_BETA="" # stable or experimental (eg. "-RC1" or "-Beta4")
10 MY_PV_BASE=$(get_version_component_range 1-3) # which shorewall-common to use
11
12 MY_PN="${PN/6/}"
13 MY_P="${MY_PN}-${MY_PV_BASE}${MY_P_BETA}"
14
15 DESCRIPTION="Shoreline Firewall with IPv6 support."
16 HOMEPAGE="http://www.shorewall.net/"
17 SRC_URI="http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${P}${MY_P_BETA}.tar.bz2"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="alpha amd64 hppa ppc ppc64 ~sparc x86"
22
23 IUSE="doc"
24
25 DEPEND=">=net-firewall/iptables-1.4.0
26 sys-apps/iproute2
27 >=net-firewall/shorewall-${MY_PV_BASE}
28 dev-perl/Socket6"
29 RDEPEND="${DEPEND}"
30
31 pkg_setup() {
32 if kernel_is lt 2 6 25 ; then
33 die "${PN} requires at least kernel 2.6.25."
34 fi
35 }
36
37 src_compile() {
38 einfo "Nothing to compile."
39 }
40
41 src_install() {
42 keepdir /var/lib/${PN}
43
44 cd "${WORKDIR}/${P}${MY_P_BETA}"
45 PREFIX="${D}" ./install.sh || die "install.sh failed"
46
47 newinitd "${FILESDIR}"/${PN}.initd ${PN} || die "doinitd failed"
48
49 dodoc releasenotes.txt
50 if use doc; then
51 cp -pR Samples6 "${D}/usr/share/doc/${PF}"
52 fi
53 }
54
55 pkg_postinst() {
56 einfo
57 einfo "Documentation is available at http://www.shorewall.net"
58 einfo "There are man pages for ${PN}(8)."
59 use doc && einfo "Sample configuration files are in /usr/share/doc/${PF}."
60 einfo
61 elog "If you wish to include DNS names in your IPv6 configuration files,"
62 elog "you must have Perl 5.10 and must emerge dev-perl/Socket6."
63 einfo
64 einfo "Please read the included release notes for more information."
65 einfo
66 einfo "Known problems:"
67 einfo "http://www.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/known_problems.txt"
68 einfo
69 }

  ViewVC Help
Powered by ViewVC 1.1.20