diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/netcat/netcat-110-r9.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/netcat/netcat-110-r9.ebuild')
-rw-r--r-- | net-analyzer/netcat/netcat-110-r9.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-analyzer/netcat/netcat-110-r9.ebuild b/net-analyzer/netcat/netcat-110-r9.ebuild new file mode 100644 index 000000000000..be5f42d1157c --- /dev/null +++ b/net-analyzer/netcat/netcat-110-r9.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs flag-o-matic + +PATCH_VER="1.0" +MY_P=nc${PV} +DESCRIPTION="the network swiss army knife" +HOMEPAGE="http://nc110.sourceforge.net/" +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" + +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="crypt ipv6 static" + +LIB_DEPEND="crypt? ( dev-libs/libmix[static-libs(+)] )" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} )" + +S=${WORKDIR} + +src_prepare() { + epatch "${DISTDIR}"/nc-v6-20000918.patch.gz 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 +} + +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" + emake -e CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" nc +} + +src_install() { + dobin nc + dodoc README* netcat.blurb debian-* + doman nc.1 + docinto scripts + dodoc scripts/* +} |