Gentoo Archives: gentoo-commits

From: "Benda XU (heroxbd)" <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/openbsd-netcat: metadata.xml ChangeLog openbsd-netcat-1.84.ebuild
Date: Thu, 01 Nov 2012 07:35:21
Message-Id: 20121101073504.715D021600@flycatcher.gentoo.org
1 heroxbd 12/11/01 07:35:04
2
3 Added: metadata.xml ChangeLog openbsd-netcat-1.84.ebuild
4 Log:
5 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.
6
7 (Portage version: 2.1.10.65/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-analyzer/openbsd-netcat/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openbsd-netcat/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openbsd-netcat/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <maintainer>
21 <email>heroxbd@g.o</email>
22 <name>Benda Xu</name>
23 </maintainer>
24 <longdescription lang="en">
25 This package provides the openbsd linux port of netcat.
26 </longdescription>
27 </pkgmetadata>
28
29
30
31 1.1 net-analyzer/openbsd-netcat/ChangeLog
32
33 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openbsd-netcat/ChangeLog?rev=1.1&view=markup
34 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openbsd-netcat/ChangeLog?rev=1.1&content-type=text/plain
35
36 Index: ChangeLog
37 ===================================================================
38 # ChangeLog for net-analyzer/netcat-openbsd
39 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
40 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/openbsd-netcat/ChangeLog,v 1.1 2012/11/01 07:35:04 heroxbd Exp $
41
42 *netcat-openbsd (12 Sep 2008)
43
44 12 Sep 2008; Luca Pasquali <lpasquali@××××××××××.net> netcat-openbsd-1.84-r0.ebuild:
45 just started the ebuild.
46 package is initially put tidled in my two test environments: amd64 and x86.
47
48
49
50 1.1 net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/openbsd-netcat/openbsd-netcat-1.84.ebuild?rev=1.1&content-type=text/plain
54
55 Index: openbsd-netcat-1.84.ebuild
56 ===================================================================
57 # Copyright 1999-2008 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 # $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 $
60
61 EAPI=4
62
63 inherit eutils toolchain-funcs rpm
64
65 DESCRIPTION="the OpenBSD network swiss army knife"
66 HOMEPAGE="http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/"
67 SRC_URI="ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/nc-1.84-22.el6.src.rpm"
68 LICENSE="BSD"
69 SLOT="0"
70
71 KEYWORDS="~amd64 ~x86"
72
73 IUSE="static"
74
75 DEPEND="dev-libs/glib:2"
76 RDEPEND="${DEPEND}"
77
78 S=${WORKDIR}/nc
79
80 src_unpack() {
81 rpm_src_unpack
82 }
83
84 src_prepare() {
85 epatch "../nc-1.84-glib.patch"
86 epatch "../nc-1.78-pollhup.patch"
87 epatch "../nc-1.82-reuseaddr.patch"
88 epatch "../nc-gcc_signess.patch"
89 epatch "../nc-1.84-connect_with_timeout.patch"
90 epatch "../nc-1.84-udp_stop.patch"
91 epatch "../nc-1.84-udp_port_scan.patch"
92 epatch "../nc-1.84-crlf.patch"
93 epatch "../nc-1.84-verb.patch"
94 epatch "../nc-1.84-man.patch"
95 epatch "../nc-1.84-gcc4.3.patch"
96 epatch "../nc-1.84-efficient_reads.patch"
97 epatch "../nc-1.84-verbose-segfault.patch"
98
99 # avoid name conflict against net-analyzer/netcat
100 mv nc.1 nc.openbsd.1
101 }
102
103 src_compile() {
104 use static && export STATIC="-static"
105 COMPILER=$(tc-getCC)
106 ${COMPILER} ${CFLAGS} $(pkg-config --cflags --libs glib-2.0) netcat.c \
107 atomicio.c socks.c -o nc.openbsd || die
108 }
109
110 src_install() {
111 dobin nc.openbsd
112 dodoc README*
113 doman nc.openbsd.1
114 docinto scripts
115 dodoc scripts/*
116 }