summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/knock/ChangeLog8
-rw-r--r--net-misc/knock/files/knock-0.5-gcc-4.3.patch10
-rw-r--r--net-misc/knock/knock-0.5.ebuild16
3 files changed, 27 insertions, 7 deletions
diff --git a/net-misc/knock/ChangeLog b/net-misc/knock/ChangeLog
index d7248daf41ba..af7bd8825d57 100644
--- a/net-misc/knock/ChangeLog
+++ b/net-misc/knock/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/knock
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.33 2007/12/27 12:23:07 armin76 Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.34 2008/07/26 20:26:13 wormo Exp $
+
+ 26 Jul 2008; <sjl@gentoo.org> +files/knock-0.5-gcc-4.3.patch,
+ knock-0.5.ebuild:
+ gcc 4.3 compile fix from Christian Ruppert (bug #232966)
27 Dec 2007; Raúl Porcel <armin76@gentoo.org> -knock-0.3.ebuild,
-knock-0.3.1.ebuild, -knock-0.4.ebuild, knock-0.5.ebuild:
diff --git a/net-misc/knock/files/knock-0.5-gcc-4.3.patch b/net-misc/knock/files/knock-0.5-gcc-4.3.patch
new file mode 100644
index 000000000000..533b96226f16
--- /dev/null
+++ b/net-misc/knock/files/knock-0.5-gcc-4.3.patch
@@ -0,0 +1,10 @@
+--- knock-0.5.old/src/knockd.c 2005-06-27 07:11:34.000000000 +0200
++++ knock-0.5/src/knockd.c 2008-07-25 22:38:08.000000000 +0200
+@@ -19,6 +19,7 @@
+ * USA.
+ */
+
++#include <limits.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
diff --git a/net-misc/knock/knock-0.5.ebuild b/net-misc/knock/knock-0.5.ebuild
index 1afe6867b0b2..281c2aca40fd 100644
--- a/net-misc/knock/knock-0.5.ebuild
+++ b/net-misc/knock/knock-0.5.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.5.ebuild,v 1.10 2007/12/27 12:23:07 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.5.ebuild,v 1.11 2008/07/26 20:26:13 wormo Exp $
inherit eutils
@@ -20,14 +20,20 @@ DEPEND="net-libs/libpcap"
RDEPEND="net-firewall/iptables
${DEPEND}"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc-4.3.patch
+}
+
src_install() {
- make DESTDIR=${D} install || die "make install failed"
+ make DESTDIR="${D}" install || die "make install failed"
dodoc README
dodoc ChangeLog
dodoc TODO
dosed "s:/usr/sbin/iptables:/sbin/iptables:g" /etc/knockd.conf
- newinitd ${FILESDIR}/knockd.initd knock
- newconfd ${FILESDIR}/knockd.confd knock
+ newinitd "${FILESDIR}"/knockd.initd knock
+ newconfd "${FILESDIR}"/knockd.confd knock
}