From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netcat/
Date: Wed, 17 Mar 2021 01:44:45 +0000 (UTC) [thread overview]
Message-ID: <1615945053.94fc26169ed3a8c4a67d250e144c639bf27e6bda.sam@gentoo> (raw)
commit: 94fc26169ed3a8c4a67d250e144c639bf27e6bda
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 17 01:37:33 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 17 01:37:33 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94fc2616
net-analyzer/netcat: update EAPI 5 -> 7
Signed-off-by: Sam James <sam <AT> gentoo.org>
net-analyzer/netcat/netcat-110-r9.ebuild | 52 +++++++++++++++++++++++---------
1 file changed, 37 insertions(+), 15 deletions(-)
diff --git a/net-analyzer/netcat/netcat-110-r9.ebuild b/net-analyzer/netcat/netcat-110-r9.ebuild
index 09793c6b70e..2653de68f20 100644
--- a/net-analyzer/netcat/netcat-110-r9.ebuild
+++ b/net-analyzer/netcat/netcat-110-r9.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit eutils toolchain-funcs flag-o-matic
+inherit toolchain-funcs flag-o-matic
PATCH_VER="1.0"
MY_P=nc${PV}
@@ -11,7 +11,9 @@ DESCRIPTION="The network swiss army knife"
HOMEPAGE="https://nc110.sourceforge.io"
SRC_URI="mirror://sourceforge/nc110/${MY_P}.tgz
ftp://sith.mimuw.edu.pl/pub/users/baggins/IPv6/nc-v6-20000918.patch.gz
- mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
+ mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2
+"
+S="${WORKDIR}"
LICENSE="netcat"
SLOT="0"
@@ -20,26 +22,46 @@ IUSE="crypt ipv6 static"
LIB_DEPEND="crypt? ( dev-libs/libmix[static-libs(+)] )"
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
-DEPEND="${RDEPEND}
- static? ( ${LIB_DEPEND} )"
-
-S=${WORKDIR}
+DEPEND="
+ ${RDEPEND}
+ static? ( ${LIB_DEPEND} )
+"
src_prepare() {
- epatch "${DISTDIR}"/nc-v6-20000918.patch.gz patch
+ default
+
+ eapply "${WORKDIR}"/nc-v6-20000918.patch
+
sed -i 's:#define HAVE_BIND:#undef HAVE_BIND:' netcat.c
- sed -i 's:#define FD_SETSIZE 16:#define FD_SETSIZE 1024:' netcat.c #34250
- [[ ${CHOST} == *-solaris* ]] && \
- sed -i 's:gethostbyname2(\([^)]\+\)):getipnodebyname(\1, AI_DEFAULT, NULL):' netcat.c
+ # bug 34250
+ sed -i 's:#define FD_SETSIZE 16:#define FD_SETSIZE 1024:' netcat.c
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ sed -i 's:gethostbyname2(\([^)]\+\)):getipnodebyname(\1, AI_DEFAULT, NULL):' netcat.c || die
+ fi
}
src_compile() {
export XLIBS=""
export XFLAGS="-DLINUX -DTELNET -DGAPING_SECURITY_HOLE"
- use ipv6 && XFLAGS="${XFLAGS} -DINET6"
- use static && export STATIC="-static"
- use crypt && XFLAGS="${XFLAGS} -DAESCRYPT" && XLIBS="${XLIBS} -lmix"
- [[ ${CHOST} == *-solaris* ]] && XLIBS="${XLIBS} -lnsl -lsocket"
+
+ if use ipv6 ; then
+ XFLAGS+=" -DINET6"
+ fi
+
+ if use static ; then
+ export STATIC="-static"
+ fi
+
+ if use crypt ; then
+ XFLAGS+=" -DAESCRYPT"
+ XLIBS+=" -lmix"
+ fi
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ XLIBS+=" -lnsl -lsocket"
+ fi
+
emake -e CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" nc
}
next reply other threads:[~2021-03-17 1:44 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-17 1:44 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-26 22:06 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netcat/ Andreas K. Hüttel
2023-09-29 18:36 WANG Xuerui
2022-11-25 9:47 Arthur Zamarin
2022-11-25 5:33 Sam James
2022-11-25 5:33 Sam James
2022-11-25 5:21 Sam James
2022-11-25 5:15 Sam James
2022-11-25 5:07 Sam James
2022-11-25 5:04 Sam James
2021-08-11 19:11 Sam James
2021-08-11 0:23 Sam James
2021-08-11 0:12 Sam James
2021-08-11 0:04 Sam James
2021-07-16 1:31 Yixun Lan
2021-04-03 15:57 Sam James
2021-03-23 4:53 Sam James
2021-03-17 1:44 Sam James
2021-03-16 18:50 Sam James
2021-03-16 18:50 Sam James
2021-03-16 18:50 Sam James
2021-01-06 14:35 Fabian Groffen
2020-11-04 0:44 Sam James
2020-05-04 17:36 Thomas Deutschmann
2018-01-11 22:29 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1615945053.94fc26169ed3a8c4a67d250e144c639bf27e6bda.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox