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

Contents of /net-firewall/shorewall-lite/shorewall-lite-4.4.27.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Fri Jan 18 12:18:48 2013 UTC (14 months, 4 weeks ago) by constanze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version Bump and cleanup of old versions

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 9B5B7B16157EE1E1)

1 constanze 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 constanze 1.3 # $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/shorewall-lite-4.4.27.ebuild,v 1.2 2012/06/26 04:37:40 zmedico Exp $
4 constanze 1.1
5     EAPI="4"
6    
7 zmedico 1.2 inherit eutils versionator
8 constanze 1.1
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_PN="${PN/-lite/}"
14     MY_P="${MY_PN}-${MY_PV_BASE}"
15     MY_P_DOCS="${MY_PN}-docs-html-${PV}"
16    
17     DESCRIPTION="An iptables-based firewall whose config is handled by a normal Shorewall."
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/${MY_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     IUSE="doc"
26    
27     RDEPEND="net-firewall/iptables
28     sys-apps/iproute2"
29    
30     src_prepare() {
31     epatch "${FILESDIR}/shorewall-lite-4.4.20.3_installer-path.patch"
32     epatch_user
33     }
34    
35     src_compile() {
36     # The default make command does not work as expected
37     :
38     }
39    
40     src_install() {
41     keepdir /var/lib/shorewall-lite
42    
43     cd "${WORKDIR}/${P}"
44     PREFIX="${D}" ./install.sh || die "install.sh failed"
45     newinitd "${FILESDIR}/shorewall-lite" shorewall-lite
46    
47     dodoc changelog.txt releasenotes.txt
48     if use doc; then
49     cd "${WORKDIR}/${MY_P_DOCS}"
50     dohtml -r *
51     fi
52     }

  ViewVC Help
Powered by ViewVC 1.1.20