Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382205 - Version bump: net-firewall/arno-iptables-firewall-2.0.0b
Summary: Version bump: net-firewall/arno-iptables-firewall-2.0.0b
Status: RESOLVED DUPLICATE of bug 309473
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 21:00 UTC by Alexander Petrenas
Modified: 2012-04-12 00:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The new ebuild file (arno-iptables-firewall-2.0.0b.ebuild,2.71 KB, text/plain)
2011-09-07 21:01 UTC, Alexander Petrenas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Petrenas 2011-09-07 21:00:37 UTC
This is an updated ebuild file for the Arno's iptables firewall script. No changes, except version number. The current ebuild have been uploaded in 2009.


Reproducible: Always

Steps to Reproduce:
1.Just copy the exisiting arno-iptables-firewall-1.9.2d.ebuild with a new name arno-iptables-firewall-2.0.0b.ebuild
2.Run ebuild arno-iptables-firewall-2.0.0b.ebuild digest in your local overlay directory
3.Emerge the new version of this script!
Actual Results:  
All works like a charm.

Expected Results:  
To see it in the main portage tree.

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/arno-iptables-firewall/arno-iptables-firewall-2.0.0b.ebuild,v 1.1 2011/08/09 00:28:39  Exp $


EAPI=1

DESCRIPTION="Arno's iptables firewall script"
HOMEPAGE="http://rocky.molphys.leidenuniv.nl/"
SRC_URI="http://rocky.eld.leidenuniv.nl/${PN}/${PN}_${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+plugins"

DEPEND=">=net-firewall/iptables-1.2.5"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${PN}_${PV}

src_install() {
	insinto /etc/arno-iptables-firewall

	# update the default location of the environment script
	sed -e 's:/usr/local/share/:/usr/share/:' \
		etc/arno-iptables-firewall/firewall.conf > \
		"${T}"/firewall.conf || die
	doins "${T}"/firewall.conf || die
	doins etc/arno-iptables-firewall/custom-rules || die

	sed -e 's:local/::' \
		contrib/Gentoo/firewall.conf > \
		"${T}"/arno-iptables-firewall.confd || die
	newconfd "${T}"/arno-iptables-firewall.confd arno-iptables-firewall \
		|| die
	newinitd contrib/Gentoo/rc.firewall arno-iptables-firewall || die

	dobin bin/arno-fwfilter || die
	dosbin bin/arno-iptables-firewall || die

	insinto /usr/share/arno-iptables-firewall/
	doins share/arno-iptables-firewall/environment || die

	if use plugins
	then
		insinto /etc/arno-iptables-firewall/plugins
		doins etc/arno-iptables-firewall/plugins/* || die

		insinto /usr/share/arno-iptables-firewall/plugins
		doins share/arno-iptables-firewall/plugins/*.plugin || die

		exeinto /usr/share/arno-iptables-firewall/plugins
		doexe share/arno-iptables-firewall/plugins/dyndns-host-open-helper \
			|| die
		doexe share/arno-iptables-firewall/plugins/traffic-accounting-helper \
			|| die
		doexe \
			share/arno-iptables-firewall/plugins/traffic-accounting-log-rotate \
			|| die
		doexe \
			share/arno-iptables-firewall/plugins/traffic-accounting-show || die

		docinto plugins
		dodoc share/arno-iptables-firewall/plugins/*.CHANGELOG || die
	fi

	dodoc CHANGELOG README || die "dodoc failed"

	doman share/man/man1/arno-fwfilter.1 \
		share/man/man8/arno-iptables-firewall.8 || die "doman failed"
}

pkg_postinst () {
	elog "You will need to configure /etc/${PN}/firewall.conf before using this"
	elog "package.  To start the script, run:"
	elog "  /etc/init.d/${PN} start"
	echo
	elog "If you want to start this script at boot, run:"
	elog "  rc-update add ${PN} default"
	echo
	ewarn "When you start the firewall, the default is to,"
	ewarn "DROP ALL existing connections! So be carefull when installing"
	ewarn "on a remote host! There is a option to disable this behavior"
	ewarn "for testing."
	echo
	ewarn "When you stop this script, all firewall rules are flushed!"
	echo
}
Comment 1 Alexander Petrenas 2011-09-07 21:01:37 UTC
Created attachment 285815 [details]
The new ebuild file
Comment 2 Ewald Tienkamp 2011-12-29 21:23:15 UTC
Duplicate of bug 309473.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-12 00:38:28 UTC

*** This bug has been marked as a duplicate of bug 309473 ***