blob: db87c193717a572e968e30a0750807bf0e790a54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/netcat-110-r3.ebuild,v 1.2 2003/04/08 08:53:49 gmsoft Exp $
MY_P=nc${PV}
S=${WORKDIR}/nc-${PV}
DESCRIPTION="A network piping program"
SRC_URI="http://www.l0pht.com/~weld/netcat/${MY_P}.tgz
ipv6?( ftp://sith.mimuw.edu.pl/pub/users/baggins/IPv6/nc-v6-20000918.patch.gz )"
HOMEPAGE="http://www.l0pht.com/~weld/netcat"
IUSE="ipv6 static"
SLOT="0"
LICENSE="as-is"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa"
DEPEND="virtual/glibc"
src_unpack() {
mkdir ${S}
cd ${S}
unpack ${MY_P}.tgz
if [ -n "`use ipv6`" ]; then
unpack nc-v6-20000918.patch.gz
patch -p1 < nc-v6-20000918.patch
fi
}
src_compile() {
cp netcat.c netcat.c.orig
sed -e "s:#define HAVE_BIND:#undef HAVE_BIND:" \
netcat.c.orig > netcat.c
export XFLAGS="-DLINUX"
[ -n "`use ipv6`" ] && XFLAGS="${XFLAGS} -DINET6"
[ -n "`use static`" ] && export STATIC="-static"
CC="gcc ${CFLAGS}" make -e nc || die
}
src_install () {
dobin nc
dodoc README
docinto scripts
dodoc scripts/*
}
|