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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +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.6.ebuild,v 1.4 2003/07/08 10:28:01 weeve 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 ~arm"
13
14 DEPEND=">=sys-apps/sed-4
15 >=dev-lang/perl-5"
16 RDEPEND="virtual/glibc"
17
18 src_unpack() {
19 unpack ${A}
20 cd ${S}
21 sed -i "s/-O2/$CFLAGS/" Makefile
22
23 use nls && ( \
24 cd po
25 sed -i "s:/usr/bin/install:/bin/install:" Makefile
26 ) || ( \
27 sed -i "s:cd po.*::" Makefile
28 )
29 }
30
31 src_compile() {
32 make || die
33 make mkpasswd || die
34 }
35
36 src_install() {
37 dodir /usr/bin
38 dodir /usr/share/man/man1
39 use nls && dodir /usr/share/locale
40 make BASEDIR=${D} prefix=/usr mandir=/usr/share/man install || die
41
42 dobin mkpasswd
43 doman mkpasswd.1
44 dodoc README whois.conf debian/changelog debian/copyright
45
46 einfo ""
47 einfo "The example whois.conf is located in /usr/doc/${P}"
48 einfo ""
49 }

  ViewVC Help
Powered by ViewVC 1.1.20