diff options
author | Benda XU <heroxbd@gentoo.org> | 2012-11-01 07:35:04 +0000 |
---|---|---|
committer | Benda XU <heroxbd@gentoo.org> | 2012-11-01 07:35:04 +0000 |
commit | 6f03492ece0f40e42938e475194ca1b4d3d81e0a (patch) | |
tree | c56e1a3a2be3dc9c4670de2b697439d59c515bd9 /net-analyzer/openbsd-netcat | |
parent | Unmask boost 1.50/1.51 to comply with glibc-2.16, as well as GnuTLS 3; keep l... (diff) | |
download | historical-6f03492ece0f40e42938e475194ca1b4d3d81e0a.tar.gz historical-6f03492ece0f40e42938e475194ca1b4d3d81e0a.tar.bz2 historical-6f03492ece0f40e42938e475194ca1b4d3d81e0a.zip |
include in tree. closing bug 333253 and replies to bug 237277. credits to Luca Pasquali for initial writing of the ebuild and all who contributed patches.
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/openbsd-netcat')
-rw-r--r-- | net-analyzer/openbsd-netcat/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/openbsd-netcat/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/openbsd-netcat/metadata.xml | 11 | ||||
-rw-r--r-- | net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild | 60 |
4 files changed, 84 insertions, 0 deletions
diff --git a/net-analyzer/openbsd-netcat/ChangeLog b/net-analyzer/openbsd-netcat/ChangeLog new file mode 100644 index 000000000000..1e36de943d47 --- /dev/null +++ b/net-analyzer/openbsd-netcat/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-analyzer/netcat-openbsd +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openbsd-netcat/ChangeLog,v 1.1 2012/11/01 07:35:04 heroxbd Exp $ + +*netcat-openbsd (12 Sep 2008) + + 12 Sep 2008; Luca Pasquali <lpasquali@staff.dada.net> netcat-openbsd-1.84-r0.ebuild: + just started the ebuild. + package is initially put tidled in my two test environments: amd64 and x86. diff --git a/net-analyzer/openbsd-netcat/Manifest b/net-analyzer/openbsd-netcat/Manifest new file mode 100644 index 000000000000..b4c0192daac4 --- /dev/null +++ b/net-analyzer/openbsd-netcat/Manifest @@ -0,0 +1,4 @@ +DIST nc-1.84-22.el6.src.rpm 62570 RMD160 d718078f7979c4974074cfde94c48cbb503afcea SHA1 fd75fce1363c23ccebdf594337147758fe4df565 SHA256 8aa023a96a11f47fbaccda332f7e2c73697c271d2bd25b2485470d288d0db844 +EBUILD openbsd-netcat-1.84.ebuild 1594 RMD160 b3990c393971e262951a55e06a54915c8b57e687 SHA1 7b2173ddd19c175837014f4143c4ad484b5de0bc SHA256 8059fa4c1e224026d5261a61b8ab92a2261a0dea551464945944dcdedaa4627b +MISC ChangeLog 451 RMD160 4d1a00b43f524f0fbe94cf08629dbebac9f4f720 SHA1 bbdd2cd099b73452f7402c0f09508dba4addc552 SHA256 36b643122db3fae88c9fdc41ee740b39a9fcc2968066b4a2c894f8e5389014d1 +MISC metadata.xml 337 RMD160 3402d34052bdc33ac581b49601d20b6b85721e0e SHA1 361e3895e39e266419c10eae98f97723cc55c1c6 SHA256 a4648cc865b5dbc2eff6014f6f06241618f766bebd36379e93073ca06a15e3be diff --git a/net-analyzer/openbsd-netcat/metadata.xml b/net-analyzer/openbsd-netcat/metadata.xml new file mode 100644 index 000000000000..2eb55f5f9145 --- /dev/null +++ b/net-analyzer/openbsd-netcat/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>heroxbd@gentoo.org</email> + <name>Benda Xu</name> +</maintainer> +<longdescription lang="en"> + This package provides the openbsd linux port of netcat. +</longdescription> +</pkgmetadata> diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild b/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild new file mode 100644 index 000000000000..b2fd767cf491 --- /dev/null +++ b/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild,v 1.1 2012/11/01 07:35:04 heroxbd Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs rpm + +DESCRIPTION="the OpenBSD network swiss army knife" +HOMEPAGE="http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/" +SRC_URI="ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/nc-1.84-22.el6.src.rpm" +LICENSE="BSD" +SLOT="0" + +KEYWORDS="~amd64 ~x86" + +IUSE="static" + +DEPEND="dev-libs/glib:2" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/nc + +src_unpack() { + rpm_src_unpack +} + +src_prepare() { + epatch "../nc-1.84-glib.patch" + epatch "../nc-1.78-pollhup.patch" + epatch "../nc-1.82-reuseaddr.patch" + epatch "../nc-gcc_signess.patch" + epatch "../nc-1.84-connect_with_timeout.patch" + epatch "../nc-1.84-udp_stop.patch" + epatch "../nc-1.84-udp_port_scan.patch" + epatch "../nc-1.84-crlf.patch" + epatch "../nc-1.84-verb.patch" + epatch "../nc-1.84-man.patch" + epatch "../nc-1.84-gcc4.3.patch" + epatch "../nc-1.84-efficient_reads.patch" + epatch "../nc-1.84-verbose-segfault.patch" + + # avoid name conflict against net-analyzer/netcat + mv nc.1 nc.openbsd.1 +} + +src_compile() { + use static && export STATIC="-static" + COMPILER=$(tc-getCC) + ${COMPILER} ${CFLAGS} $(pkg-config --cflags --libs glib-2.0) netcat.c \ + atomicio.c socks.c -o nc.openbsd || die +} + +src_install() { + dobin nc.openbsd + dodoc README* + doman nc.openbsd.1 + docinto scripts + dodoc scripts/* +} |