diff options
Diffstat (limited to 'net-analyzer/netcat')
-rw-r--r-- | net-analyzer/netcat/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/netcat/metadata.xml | 15 | ||||
-rw-r--r-- | net-analyzer/netcat/netcat-110-r9.ebuild | 52 |
3 files changed, 74 insertions, 0 deletions
diff --git a/net-analyzer/netcat/Manifest b/net-analyzer/netcat/Manifest new file mode 100644 index 000000000000..de6fbb14acba --- /dev/null +++ b/net-analyzer/netcat/Manifest @@ -0,0 +1,7 @@ +DIST nc-v6-20000918.patch.gz 8740 SHA256 7f0d5d05f4ed98f61f7efb167ef29cb25aa71e0df42c1f0cc8472e1ed660cb9a SHA512 56326fc7c40ea676173f150842367ea1782e700de682d790bb0f2c0df86e72a30f4c3ea0d937deb9d92f5eed47d2d4cb53edaca7dd23eb394a498b2f424bb2fe WHIRLPOOL 15fcbb4797900eab97e49b29a2a7a3e29ae449079a52c8bccf2b515c35fe22247105bbdb935c216925d184523e91b9d4d0c49d25c88a911b22bebdfba51135c7 +DIST nc110.tgz 75267 SHA256 5b3fda14e972d908896a605293f4634a72e2968278117410e12d8b3faf9a3976 SHA512 c9a7f5045f76d9ffef4e83fcc3e82f69ac4eb05e061686db51e9367949bfe0b90226b290a059dc68dcf3bf2040b95b5c78545199674da57a7c73e2f9145cf812 WHIRLPOOL 55c941d5996f3069fb5e76c6abedc9cd361dd44d404ddadf63422d3c5611c3b7e9459c58186a5b69aead7306f0842904005c08d0fb815bfbb452fc0f2c9b2b65 +DIST netcat-110-patches-1.0.tar.bz2 25751 SHA256 809517592616b4ca81c7b49541faa6a252ceb93384886d99b83163e9feeca96c SHA512 b9e7e35aa7e26d30f0115d87aff34fd0cadfad99fdb77cc5aa3ba51bec331f632e180484927c4368172ee9cc6c996b8691bd19bad8806912d8820158a98eab46 WHIRLPOOL 3e86f5bb92a905a1347c8af38db76e9c68d72757488dc153e4d1715cf825c4f1ecb74c67138238de4b31fbfe240511b81e495af3d7059fdf9c93c8ae731f476c +EBUILD netcat-110-r9.ebuild 1647 SHA256 5cdf7c185b936f80c4ef6f12273b213abd579ff64e63a8412504ce85d852aee0 SHA512 c6f41fc3890d7c7da89fab4597c99260de1160e5982732ddd57c090e04aef788e51dcac724ce78d1cc660c7d0a3459844ccf92dcd6c80c117a40dd842dab42d5 WHIRLPOOL d7d4a34bce1697f0318d2b3a07d67f047a45ed6f82956931babe88248694dd79d7cd3b84d2e41435247c4edddb0602d14c7276294d51f2fd35bedb6215b75867 +MISC ChangeLog 2430 SHA256 6ab562482403cc3b3502dd01877033232521dcb5746964d305476f7d9360714a SHA512 a3000b8982476ec9c090567f64377353eb9178b66b091a44469e724e8a840dd199e3db5f9d3f56b2ee05f73febc175a0995ca7686eaee61ecbbd1d67f4ae8400 WHIRLPOOL d8a18db8c0ac3d978fc77f27aa8b55fa378de886a04a7ca8677e64ef200088921932516eb1c37ec12d4cfe8289b0797b32d79f56ff5ff036d825c3aef95fc32e +MISC ChangeLog-2015 6891 SHA256 979cb744ae4b67b1923fcf7ed9b94f6458477bb94732da0ed41c92dcff131052 SHA512 997d821602bd7a8c02716107109f8114a644f300696c6cf5edb248080e537ca49f855b328da7fecdf8c4139c0a1b1fc13298bddac21b867ca6edc827fca7d00f WHIRLPOOL 093c17f5768bb9c46d9cc3ccdcfae1172c067aabf0d6fb832532cc79c7aa0b629cf87b2173687179bbe043a29964a56a840ddaded81f6fb4e60aab68ce9ada35 +MISC metadata.xml 498 SHA256 f602cb2535056088ad5b9325b271db72d40355445f2c6dc6afb5636f3ed1a6aa SHA512 062866648a6be5781040741cc778034e9c09a7dfe0a97d250dd7d0e197c0981a257a4e0e1e663c49d56218fa7095ad6c21887206b62941210445dc9344144e44 WHIRLPOOL c8dfbf7a063028b2a86a69872fb8b89bc7baf935af68fe7df0ff8aabc6d3afc8a7f65879ece1eed24973f66646eb6f1aba8df7b3ce42e6a6b0aa7efad4c7af9f diff --git a/net-analyzer/netcat/metadata.xml b/net-analyzer/netcat/metadata.xml new file mode 100644 index 000000000000..1b0803d3aadf --- /dev/null +++ b/net-analyzer/netcat/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>vapier@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <longdescription>the network swiss army knife</longdescription> + <upstream> + <remote-id type="sourceforge">nc110</remote-id> + </upstream> +</pkgmetadata> 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/* +} |