blob: a794d96953f7f06944bcdff1a3d281213334f411 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netcat/netcat-110-r2.ebuild,v 1.2 2002/12/09 04:33:08 manson 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"
HOMEPAGE="http://www.l0pht.com/~weld/netcat"
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 ppc sparc "
DEPEND="virtual/glibc"
src_unpack() {
mkdir ${S}
cd ${S}
tar zxf ${DISTDIR}/${A}
}
src_compile() {
cp Makefile Makefile.orig
sed -e "s:^CFLAGS =.*$:CFLAGS = ${CFLAGS}:" \
-e "s:^CC =.*$:CC = gcc \$(CFLAGS):" \
Makefile.orig > Makefile
cp netcat.c netcat.c.orig
sed -e "s:#define HAVE_BIND:#undef HAVE_BIND:" \
netcat.c.orig > netcat.c
make linux || die
}
src_install () {
dobin nc
dodoc README
docinto scripts
dodoc scripts/*
}
|