summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2010-08-31 09:33:43 +0000
committerMichael Weber <xmw@gentoo.org>2010-08-31 09:33:43 +0000
commit7af3c2ab3d59f451bdbcf6622d0986709c2878e0 (patch)
treea3b48ec88712c8337c89c17625c12fcca55e5038 /net-misc/knock
parentInitial import (diff)
downloadgentoo-2-7af3c2ab3d59f451bdbcf6622d0986709c2878e0.tar.gz
gentoo-2-7af3c2ab3d59f451bdbcf6622d0986709c2878e0.tar.bz2
gentoo-2-7af3c2ab3d59f451bdbcf6622d0986709c2878e0.zip
Revision bump to fix bug #332897
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/knock')
-rw-r--r--net-misc/knock/ChangeLog11
-rw-r--r--net-misc/knock/knock-0.5-r1.ebuild43
-rw-r--r--net-misc/knock/metadata.xml3
3 files changed, 54 insertions, 3 deletions
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 <xmw@gentoo.org> +knock-0.5-r1.ebuild,
+ metadata.xml:
+ Revision bump to fix bug #332897, thanks to Sebastian
+ <indigo176@blinkenshell.org>. Die more, EAPI-2.
23 Aug 2009; Jeremy Olexa <darkside@gentoo.org> -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 @@
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
- <email>maintainer-needed@gentoo.org</email>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
</maintainer>
</pkgmetadata>