/[gentoo-x86]/net-misc/whois/whois-4.6.2.ebuild
Gentoo

Contents of /net-misc/whois/whois-4.6.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Aug 11 06:38:51 2003 UTC (17 years, 2 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Ok so looking at the whois code, there seems to be quite a few ways to overflow it. I've written a little patch which should address this. I'm also removing all the older exploitable versions of whois from the portage tree, and adding my patch. Closes bug 24860

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/whois/whois-4.6.2.ebuild,v 1.6 2003/04/06 10:32:43 gmsoft Exp $
4
5 IUSE="nls"
6 MY_P=${P/-/_}
7 DESCRIPTION="improved Whois Client"
8 SRC_URI="http://www.linux.it/~md/software/${MY_P}.tar.gz"
9 HOMEPAGE="http://www.linux.it/~md/software/"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 ~ppc sparc mips hppa"
13
14 DEPEND=">=dev-lang/perl-5"
15 RDEPEND="virtual/glibc"
16
17 src_unpack() {
18
19 unpack ${A}
20 cd ${S}
21 cp Makefile Makefile.orig
22 sed \
23 -e "s/-O2/$CFLAGS/" \
24 Makefile.orig > Makefile
25
26 use nls && ( \
27 cd po
28 cp Makefile Makefile.orig
29 sed -e "s:/usr/bin/install:/bin/install:" \
30 Makefile.orig > Makefile
31 ) || ( \
32 cp Makefile Makefile.orig
33 sed "s:cd po.*::" \
34 Makefile.orig > Makefile
35 )
36
37 }
38
39 src_compile() {
40
41 make || die
42 make mkpasswd || die
43
44 }
45
46 src_install() {
47 dodir /usr/bin
48 dodir /usr/share/man/man1
49 use nls && dodir /usr/share/locale
50 make BASEDIR=${D} prefix=/usr mandir=/usr/share/man install || die
51
52 dobin mkpasswd
53 doman mkpasswd.1
54 dodoc README whois.conf debian/changelog debian/copyright
55
56 einfo ""
57 einfo "The example whois.conf is located in /usr/doc/${P}"
58 einfo ""
59
60 }

  ViewVC Help
Powered by ViewVC 1.1.20