diff options
author | Mike Frysinger <vapier@gentoo.org> | 2018-01-11 17:26:19 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2018-01-11 17:27:14 -0500 |
commit | cb969442e87840fda81d44c2ed78d246f6aaf5ef (patch) | |
tree | f553c2edc73c93ef72ea98fc4f701a0812dc42c0 /net-analyzer/netcat | |
parent | dev-tex/abntex: EAPI bump (diff) | |
download | gentoo-cb969442e87840fda81d44c2ed78d246f6aaf5ef.tar.gz gentoo-cb969442e87840fda81d44c2ed78d246f6aaf5ef.tar.bz2 gentoo-cb969442e87840fda81d44c2ed78d246f6aaf5ef.zip |
net-analyzer/netcat: version bump to 110.20180111
Diffstat (limited to 'net-analyzer/netcat')
-rw-r--r-- | net-analyzer/netcat/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/netcat/netcat-110.20180111.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/net-analyzer/netcat/Manifest b/net-analyzer/netcat/Manifest index d7e93716fe6b..89ba3032b449 100644 --- a/net-analyzer/netcat/Manifest +++ b/net-analyzer/netcat/Manifest @@ -1,3 +1,4 @@ DIST nc-v6-20000918.patch.gz 8740 BLAKE2B 56274ee32a77f335c31b5593ae92afdb1758ee02bec2b06eb8e06c2cdf856af26f568be7caf287f248909f9b519f9dc77c78623337024d8c1afc770307187cac SHA512 56326fc7c40ea676173f150842367ea1782e700de682d790bb0f2c0df86e72a30f4c3ea0d937deb9d92f5eed47d2d4cb53edaca7dd23eb394a498b2f424bb2fe +DIST nc110.20180111.tar.xz 69984 BLAKE2B cb345db31d8857fc1c3973eba45c7a45ec0c5721829a19c46f1ec91a792d9d6309930b3bba5df1180989025f7a04ec8c85cf4832ac6f4199d13f15764f000420 SHA512 4413849c07c6ec5aae07c6e2baa1ba9a99721fa6ac08cf9e7d15379937a207246eb4f4299dd8c049445a72eac9cfe0a3633a87e4e01e21036db1217ea7a1e330 DIST nc110.tgz 75267 BLAKE2B 203b5f54805ddef2c3e9627300dfb6d14f098e88433ca807c8db01f009dec1ccc329925025238dae00b5e82e91c0787ef25536d08310ac127cda1775cfb2afb3 SHA512 c9a7f5045f76d9ffef4e83fcc3e82f69ac4eb05e061686db51e9367949bfe0b90226b290a059dc68dcf3bf2040b95b5c78545199674da57a7c73e2f9145cf812 DIST netcat-110-patches-1.0.tar.bz2 25751 BLAKE2B c0be51a057981ad1df932f7317a1c317c8788efa670778a4f5bbf67c9d983754bd20188a15e7ced3d849a25244926afc54129e0a2df07bc34932d15a3efbf302 SHA512 b9e7e35aa7e26d30f0115d87aff34fd0cadfad99fdb77cc5aa3ba51bec331f632e180484927c4368172ee9cc6c996b8691bd19bad8806912d8820158a98eab46 diff --git a/net-analyzer/netcat/netcat-110.20180111.ebuild b/net-analyzer/netcat/netcat-110.20180111.ebuild new file mode 100644 index 000000000000..760fe86cdf9d --- /dev/null +++ b/net-analyzer/netcat/netcat-110.20180111.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit toolchain-funcs flag-o-matic + +MY_P="nc${PV}" +DESCRIPTION="the network swiss army knife" +HOMEPAGE="http://nc110.sourceforge.net/" +SRC_URI="mirror://sourceforge/nc110/${MY_P}.tar.xz" + +LICENSE="netcat" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc64-solaris ~x64-solaris" +IUSE="ipv6 static" + +S=${WORKDIR}/nc110 + +src_prepare() { + sed -i \ + -e '/#define HAVE_BIND/s:#define:#undef:' \ + -e '/#define FD_SETSIZE 16/s:16:1024: #34250' \ + netcat.c || die + [[ ${CHOST} == *-solaris* ]] && \ + sed -i 's:gethostbyname2 *(\([^)]\+\)):getipnodebyname (\1, AI_DEFAULT, NULL):' netcat.c +} + +src_configure() { + use ipv6 || sed -i '/#define INET6/d' generic.h + append-cppflags -DTELNET -DGAPING_SECURITY_HOLE +} + +src_compile() { + local xlibs + [[ ${CHOST} == *-solaris* ]] && xlibs+=" -lnsl -lsocket" + emake \ + LD="$(tc-getCC) ${LDFLAGS}" \ + DFLAGS="${CPPFLAGS}" \ + XFLAGS="${CFLAGS}" \ + STATIC=$(usex static '-static' '') \ + XLIBS="${xlibs}" \ + nc +} + +src_install() { + dobin nc + dodoc README* netcat.blurb + doman nc.1 + docinto scripts + dodoc scripts/* +} |