summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-22 22:59:55 +0000
committerSam James <sam@gentoo.org>2021-03-23 04:48:54 +0000
commitcb22b63cf5a019853d31802d5cc5408ac3aa5185 (patch)
tree4a4104fd8a2ea4c5e93405449569ba31d268c23d /net-analyzer/netcat
parentnet-analyzer/fail2ban: cosmetic changes, no PYTHON_MULTI_USEDEP (diff)
downloadgentoo-cb22b63cf5a019853d31802d5cc5408ac3aa5185.tar.gz
gentoo-cb22b63cf5a019853d31802d5cc5408ac3aa5185.tar.bz2
gentoo-cb22b63cf5a019853d31802d5cc5408ac3aa5185.zip
net-analyzer/netcat: tiny style changes
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/netcat')
-rw-r--r--net-analyzer/netcat/netcat-110.20180111-r1.ebuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/net-analyzer/netcat/netcat-110.20180111-r1.ebuild b/net-analyzer/netcat/netcat-110.20180111-r1.ebuild
index 5127d1c620fd..bbbdcf9ba346 100644
--- a/net-analyzer/netcat/netcat-110.20180111-r1.ebuild
+++ b/net-analyzer/netcat/netcat-110.20180111-r1.ebuild
@@ -9,35 +9,39 @@ MY_P="nc${PV}"
DESCRIPTION="The network swiss army knife"
HOMEPAGE="https://nc110.sourceforge.io"
SRC_URI="mirror://sourceforge/nc110/${MY_P}.tar.xz"
+S="${WORKDIR}/nc110"
LICENSE="netcat"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc64-solaris ~x64-solaris"
IUSE="ipv6 static"
-S="${WORKDIR}/nc110"
-
src_prepare() {
default
+
sed -i \
-e '/#define HAVE_BIND/s:#define:#undef:' \
-e '/#define FD_SETSIZE 16/s:16:1024: #34250' \
netcat.c || die
- if [[ ${CHOST} == *-solaris* ]]; then
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
sed -i 's:gethostbyname2 *(\([^)]\+\)):getipnodebyname (\1, AI_DEFAULT, NULL):' netcat.c || die
fi
}
src_configure() {
- if ! use ipv6; then
+ if ! use ipv6 ; then
sed -i '/#define INET6/d' generic.h || die
fi
+
append-cppflags -DTELNET -DGAPING_SECURITY_HOLE
}
src_compile() {
local xlibs
+
[[ ${CHOST} == *-solaris* ]] && xlibs+=" -lnsl -lsocket"
+
emake \
LD="$(tc-getCC) ${LDFLAGS}" \
DFLAGS="${CPPFLAGS}" \
@@ -49,8 +53,10 @@ src_compile() {
src_install() {
dobin nc
+
dodoc README* netcat.blurb
doman nc.1
+
docinto scripts
dodoc scripts/*
}