From 7af3c2ab3d59f451bdbcf6622d0986709c2878e0 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Tue, 31 Aug 2010 09:33:43 +0000 Subject: Revision bump to fix bug #332897 (Portage version: 2.1.8.3/cvs/Linux x86_64) --- net-misc/knock/ChangeLog | 11 ++++++++-- net-misc/knock/knock-0.5-r1.ebuild | 43 ++++++++++++++++++++++++++++++++++++++ net-misc/knock/metadata.xml | 3 ++- 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 net-misc/knock/knock-0.5-r1.ebuild (limited to 'net-misc/knock') diff --git a/net-misc/knock/ChangeLog b/net-misc/knock/ChangeLog index 9011ead9c280..884a26f1a161 100644 --- a/net-misc/knock/ChangeLog +++ b/net-misc/knock/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/knock -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.37 2009/08/23 01:43:17 darkside Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.38 2010/08/31 09:33:43 xmw Exp $ + +*knock-0.5-r1 (31 Aug 2010) + + 31 Aug 2010; Michael Weber +knock-0.5-r1.ebuild, + metadata.xml: + Revision bump to fix bug #332897, thanks to Sebastian + . Die more, EAPI-2. 23 Aug 2009; Jeremy Olexa -files/knockd.conf.patch, -files/nonblock.patch: diff --git a/net-misc/knock/knock-0.5-r1.ebuild b/net-misc/knock/knock-0.5-r1.ebuild new file mode 100644 index 000000000000..ef9c1b72fc18 --- /dev/null +++ b/net-misc/knock/knock-0.5-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild,v 1.1 2010/08/31 09:33:43 xmw Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="A simple port-knocking daemon" +HOMEPAGE="http://www.zeroflux.org/projects/knock" +SRC_URI="http://www.zeroflux.org/proj/knock/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="net-libs/libpcap" +RDEPEND="net-firewall/iptables + ${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc-4.3.patch + + sed -i -e "s:/usr/sbin/iptables:/sbin/iptables:g" knockd.conf || die +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc ChangeLog README TODO || die + + newinitd "${FILESDIR}"/knockd.initd knock || die + newconfd "${FILESDIR}"/knockd.confd knock || die +} + +pkg_postinst() { + if ! has_version net-firewall/iptables ; then + einfo + elog "You're really encouraged to install net-firewall/iptables to" + elog "actually modify your firewall and use the example configuration." + einfo + fi +} diff --git a/net-misc/knock/metadata.xml b/net-misc/knock/metadata.xml index 7dfbf76fcdf9..81b23f04061d 100644 --- a/net-misc/knock/metadata.xml +++ b/net-misc/knock/metadata.xml @@ -3,6 +3,7 @@ no-herd - maintainer-needed@gentoo.org + xmw@gentoo.org + Michael Weber -- cgit v1.2.3-65-gdbad