diff options
author | Markus Nigbur <pyrania@gentoo.org> | 2004-08-27 11:18:55 +0000 |
---|---|---|
committer | Markus Nigbur <pyrania@gentoo.org> | 2004-08-27 11:18:55 +0000 |
commit | 45988410b9f140076c4613cad336db84cfee438e (patch) | |
tree | effaee2567af537c7475f453a6cef23be119c03e | |
parent | Fixing bug #57421, thanks to Stefan Sperling. Cleaning up older distcc-config... (diff) | |
download | historical-45988410b9f140076c4613cad336db84cfee438e.tar.gz historical-45988410b9f140076c4613cad336db84cfee438e.tar.bz2 historical-45988410b9f140076c4613cad336db84cfee438e.zip |
Added patch to make use of non-blocking TCP connections. Thanks to Per Cederberg <per@percederberg.net> in bug #59315.
-rw-r--r-- | net-misc/knock/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/knock/Manifest | 9 | ||||
-rw-r--r-- | net-misc/knock/files/knock-0.3-nonblock.patch | 22 | ||||
-rw-r--r-- | net-misc/knock/knock-0.3.ebuild | 14 |
4 files changed, 46 insertions, 6 deletions
diff --git a/net-misc/knock/ChangeLog b/net-misc/knock/ChangeLog index d4883d300bb0..8c9dd83a4300 100644 --- a/net-misc/knock/ChangeLog +++ b/net-misc/knock/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/knock # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.10 2004/07/18 17:30:21 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.11 2004/08/27 11:18:55 pyrania Exp $ + + 27 Aug 2004; <pyrania@gentoo.org> +files/knock-0.3-nonblock.patch, + knock-0.3.ebuild: + Added patch to make use of non-blocking TCP connections. Thanks to Per + Cederberg <per@percederberg.net> in bug #59315. 18 Jul 2004; Daniel Ahlberg <aliz@gentoo.org> knock-0.3.ebuild: Added amd64 keyword, closing #57090. diff --git a/net-misc/knock/Manifest b/net-misc/knock/Manifest index 7075a1e0aaea..d7150325e0b6 100644 --- a/net-misc/knock/Manifest +++ b/net-misc/knock/Manifest @@ -1,8 +1,9 @@ -MD5 51196c0eabf737a2d86389c1eb1e8664 knock-0.1.ebuild 634 -MD5 2f94f871d2c1d1b14943dad0c050fba7 knock-0.3.ebuild 678 -MD5 00a6c698f179b02916b5059ce9a937b6 ChangeLog 851 +MD5 f27b60ab89680a272708004880d00217 ChangeLog 1067 +MD5 91796620e054c23b1ac6f9afc8d2547f knock-0.3.ebuild 852 MD5 85096de16c2a05f92c5a5fb0e800a2bc metadata.xml 252 +MD5 51196c0eabf737a2d86389c1eb1e8664 knock-0.1.ebuild 634 +MD5 56d82b74345f127c4af5b92580b2b465 files/knock-0.3-nonblock.patch 617 MD5 503e3134931fbbd7729e4c6eb69bc38b files/digest-knock-0.1 60 MD5 6f594c8b1eb17d15a0ab9a73331598e3 files/digest-knock-0.3 60 -MD5 141b7202730b744d2e3f884d1c8e8eec files/knockd.confd 264 MD5 ae09af5fe36f302c2b18a66ec789e6d4 files/knockd.initd 492 +MD5 141b7202730b744d2e3f884d1c8e8eec files/knockd.confd 264 diff --git a/net-misc/knock/files/knock-0.3-nonblock.patch b/net-misc/knock/files/knock-0.3-nonblock.patch new file mode 100644 index 000000000000..5a698026982b --- /dev/null +++ b/net-misc/knock/files/knock-0.3-nonblock.patch @@ -0,0 +1,22 @@ +diff -ur knock-0.3/src/knock.c knock-0.3-fix/src/knock.c +--- knock-0.3/src/knock.c 2004-05-07 00:56:03.000000000 +0200 ++++ knock-0.3-fix/src/knock.c 2004-08-04 00:53:25.663567392 +0200 +@@ -30,6 +30,7 @@ + #include <string.h> + #include <resolv.h> + #include <getopt.h> ++#include <fcntl.h> + + static char version[] = "0.3"; + +@@ -79,7 +80,10 @@ + if(o_udp) { + sd = socket(PF_INET, SOCK_DGRAM, 0); + } else { ++ int flags; + sd = socket(PF_INET, SOCK_STREAM, 0); ++ flags = fcntl(sd, F_GETFL, 0); ++ fcntl(sd, F_SETFL, flags | O_NONBLOCK); + } + memset(&addr, 0, sizeof(addr)); + addr.sin_family = AF_INET; diff --git a/net-misc/knock/knock-0.3.ebuild b/net-misc/knock/knock-0.3.ebuild index bf57b7c7a252..f1805790b745 100644 --- a/net-misc/knock/knock-0.3.ebuild +++ b/net-misc/knock/knock-0.3.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.3.ebuild,v 1.5 2004/07/18 17:30:21 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.3.ebuild,v 1.6 2004/08/27 11:18:55 pyrania Exp $ + +inherit eutils DESCRIPTION="A simple port-knocking daemon" HOMEPAGE="http://www.zeroflux.org/knock/" @@ -13,6 +15,16 @@ SLOT="0" LICENSE="GPL-2" IUSE="" +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-nonblock.patch +} + +src_compile() { + econf || die "could not configure" + emake || die "emake failed" +} + src_install() { make DESTDIR=${D} install || die "make install failed" dodoc README |