diff options
author | Benda XU <heroxbd@gentoo.org> | 2014-02-01 08:47:17 +0000 |
---|---|---|
committer | Benda XU <heroxbd@gentoo.org> | 2014-02-01 08:47:17 +0000 |
commit | 9e19a30936498d2ca6e3d40338b11b2226e6be42 (patch) | |
tree | 9531a884cc458374be6ec0a0abbcab42bdd40488 /net-analyzer/openbsd-netcat | |
parent | Explicitly add myself to metadata. (diff) | |
download | gentoo-2-9e19a30936498d2ca6e3d40338b11b2226e6be42.tar.gz gentoo-2-9e19a30936498d2ca6e3d40338b11b2226e6be42.tar.bz2 gentoo-2-9e19a30936498d2ca6e3d40338b11b2226e6be42.zip |
respect LDFLAGS, bug 441680, credits Diego; warn against FO_REUSEPORT mismatch, bug 493074, credits Josh.
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'net-analyzer/openbsd-netcat')
-rw-r--r-- | net-analyzer/openbsd-netcat/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild | 17 |
2 files changed, 20 insertions, 7 deletions
diff --git a/net-analyzer/openbsd-netcat/ChangeLog b/net-analyzer/openbsd-netcat/ChangeLog index 58a59adf17ff..84f9f7c6117a 100644 --- a/net-analyzer/openbsd-netcat/ChangeLog +++ b/net-analyzer/openbsd-netcat/ChangeLog @@ -1,6 +1,10 @@ -# ChangeLog for net-analyzer/netcat-openbsd -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openbsd-netcat/ChangeLog,v 1.3 2012/11/01 07:40:52 heroxbd Exp $ +# ChangeLog for net-analyzer/openbsd-netcat +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openbsd-netcat/ChangeLog,v 1.4 2014/02/01 08:47:17 heroxbd Exp $ + + 01 Feb 2014; Benda Xu <heroxbd@gentoo.org> openbsd-netcat-1.84.ebuild: + respect LDFLAGS, bug 441680, credits Diego; warn against FO_REUSEPORT + mismatch, bug 493074, credits Josh. 01 Nov 2012; Benda Xu <heroxbd@gentoo.org> openbsd-netcat-1.84.ebuild: fix indentations diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild b/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild index 6fc86bcb113a..01abe89fc9a0 100644 --- a/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild +++ b/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild,v 1.2 2012/11/01 07:40:52 heroxbd Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild,v 1.3 2014/02/01 08:47:17 heroxbd Exp $ EAPI=4 @@ -47,8 +47,9 @@ src_prepare() { src_compile() { use static && export STATIC="-static" COMPILER=$(tc-getCC) - ${COMPILER} ${CFLAGS} $(pkg-config --cflags --libs glib-2.0) netcat.c \ - atomicio.c socks.c -o nc.openbsd || die + ${COMPILER} ${CFLAGS} netcat.c atomicio.c socks.c \ + $(pkg-config --cflags --libs glib-2.0) \ + ${LDFLAGS} -o nc.openbsd || die } src_install() { @@ -58,3 +59,11 @@ src_install() { docinto scripts dodoc scripts/* } + +pkg_postinst() { + if [[ ${KERNEL} = "linux" ]]; then + ewarn "FO_REUSEPORT is introduced in linux 3.9. If your running kernel is older" + ewarn "and kernel header is newer, nc will not listen correctly. Matching the header" + ewarn "to the running kernel will do. See bug #490246 for details." + fi +} |