blob: e21ccf6ac6713ca80d99e61e8026b4df7c37c0b4 (
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
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-4.5.28-r1.ebuild,v 1.2 2002/07/09 04:38:49 seemant Exp $
A=whois_${PV}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="improved Whois Client"
SRC_URI="ftp://ftp.debian.org/debian/pool/main/w/whois/${A}"
HOMEPAGE="http://www.linux.it/~md/software/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
DEPEND=">=sys-devel/perl-5"
RDEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
cd ${S}
cp Makefile Makefile.orig
sed \
-e "s/-O2/$CFLAGS/" \
-e "s:/man/man1/:/share/man/man1/:" \
Makefile.orig > Makefile
use nls && ( \
cd po
cp Makefile Makefile.orig
sed -e "s:/usr/bin/install:/bin/install:" \
Makefile.orig > Makefile
) || ( \
cp Makefile Makefile.orig
sed "s:cd po.*::" \
Makefile.orig > Makefile
)
}
src_compile() {
make || die
make mkpasswd || die
}
src_install() {
dodir /usr/bin
dodir /usr/share/man/man1
use nls && dodir /usr/share/locale
make BASEDIR=${D} prefix=/usr mandir=/usr/share/man install || die
dobin mkpasswd
doman mkpasswd.1
dodoc README TODO debian/changelog debian/copyright
}
|