ChangeLog

# ChangeLog for net-firewall/firehol
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/ChangeLog,v 1.36 2008/05/28 19:18:28 phreak Exp $

28 May 2008; Christian Heim metadata.xml:
Removing Dominik Stadler (centic) from metadata.xml (as per #40994).
Assigning to maintainer-needed.

26 Apr 2008; Alon Bar-Lev files/firehol.initrd:
Add 'after bootmisc' to init script, as openrc cleans /tmp while firefox uses it

13 Feb 2008; Alon Bar-Lev files/firehol.initrd:
Add 'need localmount' to init.d script, bug#198169

03 Nov 2007; Dominik Stadler firehol-1.250.ebuild,
firehol-1.250-r1.ebuild, firehol-1.250-r2.ebuild, firehol-1.256.ebuild,
firehol-1.256-r1.ebuild:
Bug 198217: fix mistake in quoting

*firehol-1.256-r1 (02 Nov 2007)

02 Nov 2007; Dominik Stadler firehol-1.250.ebuild,
firehol-1.250-r1.ebuild, firehol-1.250-r2.ebuild, firehol-1.256.ebuild,
+firehol-1.256-r1.ebuild:
Bug 195378, fix check for zcat, Bug 172000, add check for kernel
configuration, also add missing quotes as reported by repoman

*firehol-1.256 (01 Jun 2007)

01 Jun 2007; +files/firehol-1.256-printf.patch,
+firehol-1.256.ebuild:
Bump to version 1.256, fixes bug 180302, thanks for providing patches

15 May 2007; Thilo Bangert metadata.xml:
add no-herd

06 May 2007; Marius Mauch firehol-1.250.ebuild,
firehol-1.250-r1.ebuild, firehol-1.250-r2.ebuild:
Replacing einfo with elog

*firehol-1.250-r2 (05 May 2007)

05 May 2007; Dominik Stadler +firehol-1.250-r2.ebuild:
Revert bug 171719, breaks group with, see Bug 176862.

28 Apr 2007; Sven Wegener firehol-1.250.ebuild:
Fix *initd, *confd and *envd calls (#173884, #174266)

*firehol-1.250-r1 (26 Apr 2007)

26 Apr 2007; Dominik Stadler
+files/firehol-1.250-groupwith.patch, -firehol-1.226-r1.ebuild,
+firehol-1.250-r1.ebuild:
remove 1.226, 250 is as stable as 226. Add patch for 'group with', fixes Bug
171719, thanks to Marshal Newrock for the patch. Use newconfd, fixes Bug
174266.

26 Jan 2007; Dominik Stadler firehol-1.226-r1.ebuild,
firehol-1.250.ebuild:
Don't include COPYING, mark 1.250 stable on x86

30 Dec 2006; Dominik Stadler
files/firehol-1.226-to-250.patch:
Fix patch again, CVS-replacement played tricks on me.

29 Dec 2006; Dominik Stadler
files/firehol-1.226-to-250.patch:
Fix invalid patch, not sure how this worked before for me.

*firehol-1.250 (27 Dec 2006)

27 Dec 2006; Dominik Stadler
+files/firehol-1.226-to-250.patch, +files/firehol-1.250-printf.patch,
+firehol-1.250.ebuild:
Add version 250 from CVS, fixes bug 151588. Depend on iproute2, fixes Bug
152537. Change printf-statements, fixes Bugs 153858 and 139526

20 Aug 2006; Jason Wever firehol-1.226-r1.ebuild:
Added ~sparc keyword wrt bug #137899.

23 Jul 2006; Dominik Stadler
-files/firehol-1.191-bash-3.0.patch, -firehol-1.120.ebuild,
-firehol-1.159-r1.ebuild, -firehol-1.224.ebuild, -firehol-1.226.ebuild:
Remove old versions including some that have security problems, fixes part
of Bug 140517

21 Apr 2005; Dominik Stadler firehol-1.226-r1.ebuild:
Mark stable on x86

17 Mar 2005; Joseph Jezak firehol-1.226-r1.ebuild:
Marked ~ppc for bug #85474.

13 Feb 2005; Dominik Stadler firehol-1.226-r1.ebuild:
Small fix to comments

*firehol-1.226-r1 (12 Feb 2005)

12 Feb 2005; Dominik Stadler
files/firehol.initrd:
Fix firehol.initrd with try-action. Fixes Bug 81313

*firehol-1.226-r1 (12 Feb 2005)

12 Feb 2005; Dominik Stadler
+files/firehol-1.226-to-228.patch, +firehol-1.226-r1.ebuild:
Add patch to include changes from 1.228 for embedded Gentoo-GNAP.
Also add check to make sure that iproute2 is not installed with
USE="minimal", fixes Bug 81600.


02 Feb 2005; Dominik Stadler -firehol-1.191-r2.ebuild,
-firehol-1.214.ebuild:
Remove old versions.

*firehol-1.226 (02 Feb 2005)

02 Feb 2005; Dominik Stadler +firehol-1.226.ebuild:
Add new Version 1.226

*firehol-1.224 (27 Jan 2005)

27 Jan 2005; Dominik Stadler
+files/firehol-1.224-to-226.patch, +firehol-1.224.ebuild:
Add new version to fix security problems, see Bug 79330

30 Dec 2004; Dominik Stadler firehol-1.159-r1.ebuild,
-firehol-1.159.ebuild, -firehol-1.191-r1.ebuild, firehol-1.191-r2.ebuild,
-firehol-1.191.ebuild, firehol-1.214.ebuild, -firehol-1.91.ebuild:
Remove old versions and mark stable on x86.

12 Nov 2004; Simon Stelling firehol-1.214.ebuild:
added ~amd64

*firehol-1.214 (09 Nov 2004)

09 Nov 2004; Dominik Stadler files/firehol.initrd,
+firehol-1.214.ebuild:
Add new Version 1.214, fix order of options in init-script

*firehol-1.191-r2 (02 Oct 2004)

02 Oct 2004; Dominik Stadler metadata.xml,
files/firehol.initrd, firehol-1.191-r1.ebuild, +firehol-1.191-r2.ebuild:
Add 1.191-r2 with enhanced init-script, fixes Bug 65718, thanks to Eric R.
Stoeckel, Jr. for the script. Update metadata.xml

*firehol-1.191-r1 (01 Aug 2004)

01 Aug 2004; Dominik Stadler
+files/firehol-1.191-bash-3.0.patch, +firehol-1.191-r1.ebuild:
Add patch to fix problems with bash-3.0, see Bug 59098

*firehol-1.191 (18 May 2004)

18 May 2004; Dominik Stadler +files/firehol.initrd,
+firehol-1.191.ebuild:
Add new Version 1.191, should fix Bug 49822 and also Bug 46487 and Bug 33428

03 May 2004; David Holm firehol-1.159-r1.ebuild:
Added to ~ppc.

*firehol-1.159-r1 (02 May 2004)

02 May 2004; Dominik Stadler +metadata.xml,
firehol-1.120.ebuild, +firehol-1.159-r1.ebuild, firehol-1.159.ebuild:
Avoid warnings because of deprectated command syntax when calling 'head'. Add
missing IUSE.

*firehol-1.159 (14 Oct 2003)

14 Oct 2003; Martin Holzer firehol-1.159.ebuild:
Version bumped. closes #31052.

*firehol-1.120 (06 April 2003)

06 April 2003; Sascha Schwabbauer firehol-1.120.ebuild, files/digest-firehol-1.120 :

Version bump, again thanks to Maik Schreiber in bug #18837

*firehol-1.91 (05 April 2003)

05 April 2003; Sascha Schwabbauer ChangeLog, firehol-1.91.ebuild, files/digest-firehol-1.91 :

Initial commit, made by Maik Schreiber in bug #18808

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX firehol-1.226-to-228.patch 2311 RMD160 9adefc751d465dd193134b3243e6d34300216f7c SHA1 5f900b6e2a6f475596aa1bff4eafad37109fb5c9 SHA256 8a682147e82665124b256d9fadf16d989bf310f2480168e888d4b048e60b910c
AUX firehol-1.226-to-250.patch 23787 RMD160 7bce13d4a5b723b3a2cc84d9e9a98b27b5e6b7b7 SHA1 ce91fe0588a9972be0914554726fbdbc8ff5063f SHA256 9f6f7062f46e64b1a49f4e1a3d226af6c493aa433ec20552f1a67cec33671296
AUX firehol-1.250-groupwith.patch 1005 RMD160 ca56cbd4abad50a0203c520ae62b255266aa104e SHA1 061ffcc50dcb605faf882a7cbfb5c59205356e8d SHA256 6d56366f16b53209e9944fffcac65de6300264d6ba35575643af3bcd45522029
AUX firehol-1.250-printf.patch 1496 RMD160 df025b1bf110ba50b2d8060a145aa79af39a8b26 SHA1 a3450b2b3c94c94be4f64aebdbdbf6a0fc5e3b19 SHA256 35ab81db53612f938ca37f592d85e68260573084c34b598a7c4254b3d3fab071
AUX firehol-1.256-printf.patch 1496 RMD160 df025b1bf110ba50b2d8060a145aa79af39a8b26 SHA1 a3450b2b3c94c94be4f64aebdbdbf6a0fc5e3b19 SHA256 35ab81db53612f938ca37f592d85e68260573084c34b598a7c4254b3d3fab071
AUX firehol.conf.d 70 RMD160 a87dc5fb7ba67d3f87d9672de62ba5081925ddcb SHA1 5a31d6751f0ea13550218132ff210e3286694152 SHA256 0e6bae0a5329d6b527cf0ae7183acf04f0f08f5a931bf5e82a789053faed4e3c
AUX firehol.initrd 1245 RMD160 65730686994af4ae61a8ecc3d5b747850ea01aa4 SHA1 a5892f1c762b0c061f6957583dd58bf7b5bc4ab9 SHA256 8e5d71c35ccb9e03ff8b2a984d7082d69a51cd1384a6cc709931f3f7a5531d4c
DIST firehol-1.226.tar.bz2 118113 RMD160 bff910e8a3a67ce91f0634177b5ee361edc90e96 SHA1 c54496bc0cadb6d9728738e826464cf35cf7b96e SHA256 b434e8142eb4093516794c6f2213d03efa3c08161758ff836dbd266f0a9438cf
DIST firehol-1.256.tar.bz2 125333 RMD160 42ef66f441529d0c216545a313f71d37800f8f7b SHA1 1fc4adb067d0d0ad4d79149710b9db003ffbbf31 SHA256 2c6e709073a7cdb9c73863b3f5bdc77d7cf526162cb4ffd1a1e89e56a7b4fb49
EBUILD firehol-1.250-r1.ebuild 2212 RMD160 ce379d84507804cbbed042958e6ca4b42130219d SHA1 3cc079b30ba7dddbfb17f364da1cff1aafd117a6 SHA256 32b472391dc3c0d0bf483bb5417b9a5273bb9fcea942a34e2873e0ba6fffdb88
EBUILD firehol-1.250-r2.ebuild 2236 RMD160 3284c00091d03a3ed74cb2e3e635d6e0accd1285 SHA1 2c33a66f7f3291bca9c451bf8b4de4e3c98e9fa0 SHA256 e5ade2de78487954e62554bbc664ed99e4b19395fd081c3b042058a79202e861
EBUILD firehol-1.250.ebuild 2159 RMD160 af56cb6aedf98f1897cbbdd8fc6f34503436777f SHA1 44eb2a44f1dbc37916c28d4894e15975f03b563b SHA256 fb3796072dad00c454b89c6ea8f95aee02d6bf4b721d25706d9048a132773960
EBUILD firehol-1.256-r1.ebuild 2724 RMD160 5b7f22c2b57ed8cb2a50bef9b15f90561c7a24f6 SHA1 06faba126cfa85f4d8f84a340a644b6f421f4a35 SHA256 b851e1a673426c834f382d1825100cb5cc6417fe97f0bf6df3fecb3f030bee9a
EBUILD firehol-1.256.ebuild 2042 RMD160 764e76a27a902de98047a8f599a32ecbcebd7990 SHA1 af1797e4fafbdc47f3fdfb921bc8baa663f88967 SHA256 c3a5dc6076e38c6eeffbc22da2edf592bf6679625e420961c3beaeb31fffe59a
MISC ChangeLog 6904 RMD160 05d8f4cf3c5a91453f8a82ab2f7cc122ad16ae96 SHA1 7c95ac5e9be8e7989d6960903437231df2c1e411 SHA256 de1bc2dec694ea7ca78b34e36d5ca37bc170a50ec4d5b59d22feca0eef8160d4
MISC metadata.xml 290 RMD160 b9b86283c09349c8827faef7d3ef5f724a248e77 SHA1 ae1c8e62d75c94ff50b8a5391afb6008460963aa SHA256 380e26e9262298b9cb31e863a9ab641f6fbdc8c50bda2cf2e47fd399f9cb5e85
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkg9sAoACgkQyuNVb5qfaOZS5ACgiBLzIhLzHPzJHqgs460NBppe
Fb0Ani6vFIrn9QVA1gZQhhd84fOdHa1v
=CvXw
-----END PGP SIGNATURE-----

files

firehol-1.250-r1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/firehol-1.250-r1.ebuild,v 1.5 2007/11/06 10:22:03 centic Exp $

inherit eutils

DESCRIPTION="iptables firewall generator"
HOMEPAGE="http://firehol.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-1.226.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~ppc ~sparc x86"

DEPEND="sys-apps/iproute2"
RDEPEND="net-firewall/iptables
sys-apps/iproute2
virtual/modutils
|| (
net-misc/wget
net-misc/curl
)"

S="${WORKDIR}/${PN}-1.226"

pkg_setup() {
# Bug 81600 fail if iproute2 is built with minimal
if built_with_use sys-apps/iproute2 minimal; then
eerror "Firehol requires iproute2 to be emerged without"
eerror "the USE-Flag \"minimal\"."
eerror "Re-emerge iproute2 with"
eerror "USE=\"-minimal\" emerge sys-apps/iproute2"
die "sys-apps/iproute2 without USE=\"minimal\" needed"
fi
}

# patch for embedded Gentoo - GNAP
# backport from firehol-CVS.
src_unpack() {
unpack ${A}
cd "${S}" || die
epatch "${FILESDIR}/firehol-1.226-to-228.patch" || die
epatch "${FILESDIR}/firehol-1.226-to-250.patch" || die
epatch "${FILESDIR}/${P}-groupwith.patch" || die
epatch "${FILESDIR}/${P}-printf.patch" || die
}

src_install() {
newsbin firehol.sh firehol

dodir /etc/firehol /etc/firehol/examples /etc/firehol/services
insinto /etc/firehol/examples
doins examples/* || die

newconfd "${FILESDIR}/firehol.conf.d" firehol || die

dodoc ChangeLog README TODO WhatIsNew || die
dohtml doc/*.html doc/*.css || die

docinto scripts
dodoc get-iana.sh adblock.sh || die

doman man/*.1 man/*.5 || die

newinitd "${FILESDIR}/firehol.initrd" firehol || die
}

pkg_postinst() {
elog "The default path to firehol's configuration file is /etc/firehol/firehol.conf"
elog "See /etc/firehol/examples for configuration examples."
#
# Install a default configuration if none is available yet
if [[ ! -e "${ROOT}/etc/firehol/firehol.conf" ]]; then
einfo "Installing a sample configuration as ${ROOT}/etc/firehol/firehol.conf"
cp "${ROOT}/etc/firehol/examples/client-all.conf" "${ROOT}/etc/firehol/firehol.conf"
fi
}

firehol-1.250-r2.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/firehol-1.250-r2.ebuild,v 1.5 2007/11/06 10:22:03 centic Exp $

inherit eutils

DESCRIPTION="iptables firewall generator"
HOMEPAGE="http://firehol.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-1.226.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~ppc ~sparc x86"

DEPEND="sys-apps/iproute2"
RDEPEND="net-firewall/iptables
sys-apps/iproute2
virtual/modutils
|| (
net-misc/wget
net-misc/curl
)"

S="${WORKDIR}/${PN}-1.226"

pkg_setup() {
# Bug 81600 fail if iproute2 is built with minimal
if built_with_use sys-apps/iproute2 minimal; then
eerror "Firehol requires iproute2 to be emerged without"
eerror "the USE-Flag \"minimal\"."
eerror "Re-emerge iproute2 with"
eerror "USE=\"-minimal\" emerge sys-apps/iproute2"
die "sys-apps/iproute2 without USE=\"minimal\" needed"
fi
}

# patch for embedded Gentoo - GNAP
# backport from firehol-CVS.
src_unpack() {
unpack ${A}
cd "${S}" || die
epatch "${FILESDIR}/firehol-1.226-to-228.patch" || die
epatch "${FILESDIR}/firehol-1.226-to-250.patch" || die
# invalid, see Bug 176862 epatch ${FILESDIR}/${P}-groupwith.patch || die
epatch "${FILESDIR}/${P}-printf.patch" || die
}

src_install() {
newsbin firehol.sh firehol

dodir /etc/firehol /etc/firehol/examples /etc/firehol/services
insinto /etc/firehol/examples
doins examples/* || die

newconfd "${FILESDIR}/firehol.conf.d" firehol || die

dodoc ChangeLog README TODO WhatIsNew || die
dohtml doc/*.html doc/*.css || die

docinto scripts
dodoc get-iana.sh adblock.sh || die

doman man/*.1 man/*.5 || die

newinitd "${FILESDIR}/firehol.initrd" firehol || die
}

pkg_postinst() {
elog "The default path to firehol's configuration file is /etc/firehol/firehol.conf"
elog "See /etc/firehol/examples for configuration examples."
#
# Install a default configuration if none is available yet
if [[ ! -e "${ROOT}/etc/firehol/firehol.conf" ]]; then
einfo "Installing a sample configuration as ${ROOT}/etc/firehol/firehol.conf"
cp "${ROOT}/etc/firehol/examples/client-all.conf" "${ROOT}/etc/firehol/firehol.conf"
fi
}

firehol-1.250.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/firehol-1.250.ebuild,v 1.7 2007/11/06 10:22:03 centic Exp $

inherit eutils

DESCRIPTION="iptables firewall generator"
HOMEPAGE="http://firehol.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-1.226.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~ppc ~sparc x86"

DEPEND="sys-apps/iproute2"
RDEPEND="net-firewall/iptables
sys-apps/iproute2
virtual/modutils
|| (
net-misc/wget
net-misc/curl
)"

S="${WORKDIR}/${PN}-1.226"

pkg_setup() {
# Bug 81600 fail if iproute2 is built with minimal
if built_with_use sys-apps/iproute2 minimal; then
eerror "Firehol requires iproute2 to be emerged without"
eerror "the USE-Flag \"minimal\"."
eerror "Re-emerge iproute2 with"
eerror "USE=\"-minimal\" emerge sys-apps/iproute2"
die "sys-apps/iproute2 without USE=\"minimal\" needed"
fi
}

# patch for embedded Gentoo - GNAP
# backport from firehol-CVS.
src_unpack() {
unpack ${A}
cd "${S}" || die
epatch "${FILESDIR}/firehol-1.226-to-228.patch" || die
epatch "${FILESDIR}/firehol-1.226-to-250.patch" || die
epatch "${FILESDIR}/${P}-printf.patch" || die
}

src_install() {
newsbin firehol.sh firehol

dodir /etc/firehol /etc/firehol/examples /etc/firehol/services
insinto /etc/firehol/examples
doins examples/* || die

newconfd "${FILESDIR}/firehol.conf.d" firehol || die

dodoc ChangeLog README TODO WhatIsNew || die
dohtml doc/*.html doc/*.css || die

docinto scripts
dodoc get-iana.sh adblock.sh || die

doman man/*.1 man/*.5 || die

newinitd "${FILESDIR}/firehol.initrd" firehol || die
}

pkg_postinst() {
elog "The default path to firehol's configuration file is /etc/firehol/firehol.conf"
elog "See /etc/firehol/examples for configuration examples."
#
# Install a default configuration if none is available yet
if [[ ! -e "${ROOT}/etc/firehol/firehol.conf" ]]; then
einfo "Installing a sample configuration as ${ROOT}/etc/firehol/firehol.conf"
cp "${ROOT}/etc/firehol/examples/client-all.conf" "${ROOT}/etc/firehol/firehol.conf"
fi
}

firehol-1.256-r1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/firehol-1.256-r1.ebuild,v 1.2 2007/11/06 10:22:03 centic Exp $

inherit eutils linux-info

DESCRIPTION="iptables firewall generator"
HOMEPAGE="http://firehol.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

DEPEND="sys-apps/iproute2"
RDEPEND="net-firewall/iptables
sys-apps/iproute2
virtual/modutils
|| (
net-misc/wget
net-misc/curl
)"

#S="${WORKDIR}/${PN}-1.226"

pkg_setup() {
# Bug 81600 fail if iproute2 is built with minimal
if built_with_use sys-apps/iproute2 minimal; then
eerror "Firehol requires iproute2 to be emerged without"
eerror "the USE-Flag \"minimal\"."
eerror "Re-emerge iproute2 with"
eerror "USE=\"-minimal\" emerge sys-apps/iproute2"
die "sys-apps/iproute2 without USE=\"minimal\" needed"
fi

# perform checks for kernel config from eclass linux-info
# for now we just print warnings as I am not sure if these
# are required always...
CONFIG_CHECK="~NF_CONNTRACK_ENABLED ~NF_CONNTRACK_IPV4 ~NF_CONNTRACK_MARK ~IP_NF_IPTABLES ~IP_NF_FILTER ~IP_NF_TARGET_REJECT ~IP_NF_TARGET_LOG ~IP_NF_TARGET_ULOG ~NF_NAT ~IP_NF_TARGET_MASQUERADE ~IP_NF_TARGET_REDIRECT ~IP_NF_MANGLE"
linux-info_pkg_setup
}

# patch for embedded Gentoo - GNAP
# backport from firehol-CVS.
src_unpack() {
unpack ${A}
cd "${S}" || die
# not needed any more according to http://bugs.gentoo.org/show_bug.cgi?id=172000#c15
#epatch ${FILESDIR}/${P}-printf.patch || die

# Bug 195378, binary is called zcat instead of gzcat, fixed upstream in later releases
sed -i -e 's/gzcat/zcat/g' firehol.sh || die
sed -i -e 's/GZCAT/ZCAT/g' firehol.sh || die
}

src_install() {
newsbin firehol.sh firehol

dodir /etc/firehol /etc/firehol/examples /etc/firehol/services
insinto /etc/firehol/examples
doins examples/* || die

newconfd "${FILESDIR}/firehol.conf.d" firehol || die

dodoc ChangeLog README TODO WhatIsNew || die
dohtml doc/*.html doc/*.css || die

docinto scripts
dodoc get-iana.sh adblock.sh || die

doman man/*.1 man/*.5 || die

newinitd "${FILESDIR}/firehol.initrd" firehol || die
}

pkg_postinst() {
elog "The default path to firehol's configuration file is /etc/firehol/firehol.conf"
elog "See /etc/firehol/examples for configuration examples."
#
# Install a default configuration if none is available yet
if [[ ! -e "${ROOT}/etc/firehol/firehol.conf" ]]; then
einfo "Installing a sample configuration as ${ROOT}/etc/firehol/firehol.conf"
cp "${ROOT}/etc/firehol/examples/client-all.conf" "${ROOT}/etc/firehol/firehol.conf"
fi
}

firehol-1.256.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/firehol-1.256.ebuild,v 1.4 2007/11/06 10:22:03 centic Exp $

inherit eutils

DESCRIPTION="iptables firewall generator"
HOMEPAGE="http://firehol.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

DEPEND="sys-apps/iproute2"
RDEPEND="net-firewall/iptables
sys-apps/iproute2
virtual/modutils
|| (
net-misc/wget
net-misc/curl
)"

#S="${WORKDIR}/${PN}-1.226"

pkg_setup() {
# Bug 81600 fail if iproute2 is built with minimal
if built_with_use sys-apps/iproute2 minimal; then
eerror "Firehol requires iproute2 to be emerged without"
eerror "the USE-Flag \"minimal\"."
eerror "Re-emerge iproute2 with"
eerror "USE=\"-minimal\" emerge sys-apps/iproute2"
die "sys-apps/iproute2 without USE=\"minimal\" needed"
fi
}

# patch for embedded Gentoo - GNAP
# backport from firehol-CVS.
src_unpack() {
unpack ${A}
cd "${S}" || die
epatch "${FILESDIR}/${P}-printf.patch" || die
}

src_install() {
newsbin firehol.sh firehol

dodir /etc/firehol /etc/firehol/examples /etc/firehol/services
insinto /etc/firehol/examples
doins examples/* || die

newconfd "${FILESDIR}/firehol.conf.d" firehol || die

dodoc ChangeLog README TODO WhatIsNew || die
dohtml doc/*.html doc/*.css || die

docinto scripts
dodoc get-iana.sh adblock.sh || die

doman man/*.1 man/*.5 || die

newinitd "${FILESDIR}/firehol.initrd" firehol || die
}

pkg_postinst() {
elog "The default path to firehol's configuration file is /etc/firehol/firehol.conf"
elog "See /etc/firehol/examples for configuration examples."
#
# Install a default configuration if none is available yet
if [[ ! -e "${ROOT}/etc/firehol/firehol.conf" ]]; then
einfo "Installing a sample configuration as ${ROOT}/etc/firehol/firehol.conf"
cp "${ROOT}/etc/firehol/examples/client-all.conf" "${ROOT}/etc/firehol/firehol.conf"
fi
}

metadata.xml




no-herd

maintainer-needed@gentoo.org
Default assignee for orphaned packages