| 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.5.6.2.ebuild,v 1.1 2012/08/15 17:50:32 constanze 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-core-${PV}"
|
| 30 |
RDEPEND="${DEPEND}"
|
| 31 |
|
| 32 |
src_configure() {
|
| 33 |
:;
|
| 34 |
}
|
| 35 |
|
| 36 |
src_compile() {
|
| 37 |
:;
|
| 38 |
}
|
| 39 |
|
| 40 |
src_install() {
|
| 41 |
keepdir /var/lib/shorewall
|
| 42 |
|
| 43 |
cd "${WORKDIR}/${P}"
|
| 44 |
DESTDIR="${D}" ./install.sh "${FILESDIR}"/shorewallrc_new || die "install.sh failed"
|
| 45 |
newinitd "${FILESDIR}"/shorewall.initd shorewall
|
| 46 |
|
| 47 |
dodoc changelog.txt releasenotes.txt
|
| 48 |
if use doc; then
|
| 49 |
dodoc -r Samples
|
| 50 |
cd "${WORKDIR}/${MY_P_DOCS}"
|
| 51 |
dohtml -r *
|
| 52 |
fi
|
| 53 |
dodir /var/lock/subsys
|
| 54 |
}
|
| 55 |
|
| 56 |
pkg_postinst() {
|
| 57 |
elog "It is advised to copy the /usr/share/shorewall/configfiles dir to your"
|
| 58 |
elog "own 'export directories'. However, whenever you upgrade Shorewall you"
|
| 59 |
elog "should check for changes in configfiles and manually update your exports."
|
| 60 |
elog "Alternatively, if you only have one Shorewall-Lite system in your network"
|
| 61 |
elog "then you can use the configfiles dir but set CONFIG_PROTECT appropriately"
|
| 62 |
elog "in /etc/make.conf (man make.conf)."
|
| 63 |
}
|