summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-16 18:08:05 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-16 18:08:05 +0000
commitadb3bfcf6b8fd8d8b512a26f18d01359f4ea28c9 (patch)
tree450bb7455b3723d7ea3a9c293357008d5235f076 /net-misc
parentdeprecating bluez-sdp bluez-pan (diff)
downloadhistorical-adb3bfcf6b8fd8d8b512a26f18d01359f4ea28c9.tar.gz
historical-adb3bfcf6b8fd8d8b512a26f18d01359f4ea28c9.tar.bz2
historical-adb3bfcf6b8fd8d8b512a26f18d01359f4ea28c9.zip
dont install mkpasswd #6428
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/whois/ChangeLog5
-rw-r--r--net-misc/whois/Manifest20
-rw-r--r--net-misc/whois/files/digest-whois-4.6.6-r31
-rw-r--r--net-misc/whois/files/digest-whois-4.6.9-r11
-rw-r--r--net-misc/whois/files/whois-4.6.6-gentoo-security-2.patch181
-rw-r--r--net-misc/whois/files/whois-4.6.9-gentoo-security.patch161
-rw-r--r--net-misc/whois/whois-4.6.13-r1.ebuild18
-rw-r--r--net-misc/whois/whois-4.6.6-r3.ebuild53
-rw-r--r--net-misc/whois/whois-4.6.9-r1.ebuild53
9 files changed, 22 insertions, 471 deletions
diff --git a/net-misc/whois/ChangeLog b/net-misc/whois/ChangeLog
index 2add57101ddd..2236e27d9f45 100644
--- a/net-misc/whois/ChangeLog
+++ b/net-misc/whois/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/whois
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v 1.40 2004/07/17 16:39:19 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/ChangeLog,v 1.41 2004/10/16 18:08:05 vapier Exp $
+
+ 16 Oct 2004; Mike Frysinger <vapier@gentoo.org> whois-4.6.13-r1.ebuild:
+ Dont install mkpasswd anymore, shadow does #6428 by Paul Thompson.
17 Jul 2004; Tom Gall <tgall@gentoo.org> whois-4.6.13-r1.ebuild:
stable on ppc64, bug #55520
diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest
index 988082da0f70..012a064a26a0 100644
--- a/net-misc/whois/Manifest
+++ b/net-misc/whois/Manifest
@@ -1,10 +1,14 @@
-MD5 fd5c776c543cce55c9b91271dc1c5dda ChangeLog 6527
-MD5 0a15a4ef7a8d60bd128e6f9f0436c3e2 whois-4.6.6-r3.ebuild 1178
-MD5 4465451c0c720b179b9a59e7b71d6524 whois-4.6.13-r1.ebuild 1208
-MD5 4a3e863f19df9e9b1e051e318c776ea6 whois-4.6.9-r1.ebuild 1202
-MD5 9d6a7c447cdafb5e2b97f86d5c6e9789 files/digest-whois-4.6.6-r3 62
-MD5 002b59068a31c05cfe61df2c31d655e7 files/digest-whois-4.6.9-r1 62
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 25d288684dc7e5b1b9155ae09478cca8 ChangeLog 6672
+MD5 4130b55a81d2aa0c33620bbe65c274b1 whois-4.6.13-r1.ebuild 1068
MD5 fbeb270cb2d2f8fbd313166116740f8b files/whois-4.6.13-gentoo-security.patch 4065
-MD5 5b0f12c560d041d865109694432ffd93 files/whois-4.6.6-gentoo-security-2.patch 5366
-MD5 5963b760548bb1f580ee3ac53ac1eb19 files/whois-4.6.9-gentoo-security.patch 4712
MD5 405e144ea2a2c14c0b066e42461ee8f4 files/digest-whois-4.6.13-r1 63
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFBcWOSHTu7gpaalycRAhiKAKC27cVGBvODFfPiJ60zLz1XIJDF6gCfSvWc
+ssVdYSvMiN/UlXXGRXPmjdQ=
+=9jwD
+-----END PGP SIGNATURE-----
diff --git a/net-misc/whois/files/digest-whois-4.6.6-r3 b/net-misc/whois/files/digest-whois-4.6.6-r3
deleted file mode 100644
index 36ed1f444de6..000000000000
--- a/net-misc/whois/files/digest-whois-4.6.6-r3
+++ /dev/null
@@ -1 +0,0 @@
-MD5 eceebd6e1aaa82b376eee30f59032662 whois_4.6.6.tar.gz 46077
diff --git a/net-misc/whois/files/digest-whois-4.6.9-r1 b/net-misc/whois/files/digest-whois-4.6.9-r1
deleted file mode 100644
index 4be1bd86cf89..000000000000
--- a/net-misc/whois/files/digest-whois-4.6.9-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 dee71d7aac10146f3f9d2f1d8d0d9323 whois_4.6.9.tar.gz 48016
diff --git a/net-misc/whois/files/whois-4.6.6-gentoo-security-2.patch b/net-misc/whois/files/whois-4.6.6-gentoo-security-2.patch
deleted file mode 100644
index 766f5699e85f..000000000000
--- a/net-misc/whois/files/whois-4.6.6-gentoo-security-2.patch
+++ /dev/null
@@ -1,181 +0,0 @@
-diff -Nru whois-4.6.6.orig/whois.c whois-4.6.6/whois.c
---- whois-4.6.6.orig/whois.c 2003-06-15 12:36:52.000000000 -0400
-+++ whois-4.6.6/whois.c 2003-08-11 15:56:57.000000000 -0400
-@@ -73,12 +73,12 @@
- /* RIPE flags */
- if (strchr(ripeflags, ch)) {
- for (p = fstring; *p; p++);
-- sprintf(p--, "-%c ", ch);
-+ snprintf(p--, sizeof(fstring), "-%c ", ch);
- continue;
- }
- if (strchr(ripeflagsp, ch)) {
- for (p = fstring; *p; p++);
-- sprintf(p--, "-%c %s ", ch, optarg);
-+ snprintf(p--, sizeof(fstring), "-%c %s ", ch, optarg);
- if (ch == 't' || ch == 'v' || ch == 'q')
- nopar = 1;
- continue;
-@@ -86,7 +86,7 @@
- /* program flags */
- switch (ch) {
- case 'h':
-- server = q = malloc(strlen(optarg) + 1);
-+ server = q = xmalloc(strlen(optarg) + 1);
- for (p = optarg; *p && *p != ':'; *q++ = tolower(*p++));
- if (*p == ':')
- port = p + 1;
-@@ -122,7 +122,7 @@
- usage();
-
- /* On some systems realloc only works on non-NULL buffers */
-- qstring = malloc(64);
-+ qstring = xmalloc(64);
- *qstring = '\0';
-
- /* parse other parameters, if any */
-@@ -131,11 +131,11 @@
-
- while (1) {
- qslen += strlen(*argv) + 1 + 1;
-- qstring = realloc(qstring, qslen);
-- strcat(qstring, *argv++);
-+ qstring = xrealloc(qstring, qslen);
-+ strncat(qstring, *argv++, qslen-1);
- if (argc == 1)
- break;
-- strcat(qstring, " ");
-+ strncat(qstring, " ", qslen);
- argc--;
- }
- }
-@@ -401,10 +401,13 @@
- {
- char *buf;
- int i, isripe = 0;
-+ int buflen = 0;
-
- /* +10 for CORE; +2 for \r\n; +1 for NULL */
-- buf = malloc(strlen(flags) + strlen(query) + strlen(client_tag) + 4
-- + 10 + 2 + 1);
-+ buflen = (strlen(flags) + strlen(query) + strlen(client_tag) + 4 + 10 + 2 + 1);
-+
-+ buf = xmalloc(buflen);
-+
- *buf = '\0';
- for (i = 0; ripe_servers[i]; i++)
- if (strcmp(server, ripe_servers[i]) == 0) {
-@@ -426,23 +429,23 @@
- if (*flags) {
- if (!isripe && strcmp(server, "whois.corenic.net") != 0)
- puts(_("Warning: RIPE flags used with a traditional server."));
-- strcat(buf, flags);
-+ strncat(buf, flags, buflen);
- }
- /* FIXME: /e is not applied to .JP ASN */
- if (!isripe && (strcmp(server, "whois.nic.mil") == 0 ||
- strcmp(server, "whois.nic.ad.jp") == 0) &&
- strncasecmp(query, "AS", 2) == 0 && isasciidigit(query[2]))
-- sprintf(buf, "AS %s", query + 2); /* fix query for DDN */
-+ snprintf(buf, buflen, "AS %s", query + 2); /* fix query for DDN */
- else if (!isripe && strcmp(server, "whois.corenic.net") == 0)
-- sprintf(buf, "--machine %s", query); /* machine readable output */
-+ snprintf(buf, buflen, "--machine %s", query); /* machine readable output */
- else if (!isripe && strcmp(server, "whois.nic.ad.jp") == 0) {
- char *lang = getenv("LANG"); /* not a perfect check, but... */
- if (!lang || (strncmp(lang, "ja", 2) != 0))
-- sprintf(buf, "%s/e", query); /* ask for english text */
-+ snprintf(buf, buflen, "%s/e", query); /* ask for english text */
- else
-- strcat(buf, query);
-+ strncat(buf, query, buflen);
- } else
-- strcat(buf, query);
-+ strncat(buf, query, buflen);
- return buf;
- }
-
-@@ -485,7 +488,7 @@
-
- if (verb)
- printf(_("Detected referral to %s on %s.\n"), nq, nh);
-- strcat(nq, "\r\n");
-+ strncat(nq, "\r\n", sizeof(nq));
- fd = openconn(nh, np);
- do_query(fd, nq);
- continue;
-@@ -511,7 +514,7 @@
- FILE *fi;
- int state = 0;
-
-- temp = malloc(strlen(query) + 1 + 2 + 1);
-+ temp = xmalloc(strlen(query) + 1 + 2 + 1);
- *temp = '=';
- strcpy(temp + 1, query);
- strcat(temp, "\r\n");
-@@ -531,7 +534,7 @@
-
- for (p = buf; *p != ':'; p++); /* skip until colon */
- for (p++; *p == ' '; p++); /* skip colon and spaces */
-- ret = malloc(strlen(p) + 1);
-+ ret = xmalloc(strlen(p) + 1);
- for (q = ret; *p != '\n' && *p != '\r' && *p != ' '; *q++ = *p++)
- ; /*copy data*/
- *q = '\0';
-@@ -553,7 +556,7 @@
- FILE *fi;
- int state = 0;
-
-- temp = malloc(strlen(query) + 5 + 2 + 1);
-+ temp = xmalloc(strlen(query) + 5 + 2 + 1);
- strcpy(temp, "FULL ");
- strcat(temp, query);
- strcat(temp, "\r\n");
-@@ -574,7 +577,7 @@
- for (p = buf; *p != ':'; p++); /* skip until colon */
- for (p++; *p != ':'; p++); /* skip until 2nd colon */
- for (p++; *p == ' '; p++); /* skip colon and spaces */
-- ret = malloc(strlen(p) + 1);
-+ ret = xmalloc(strlen(p) + 1);
- for (q = ret; *p != '\n' && *p != '\r'; *q++ = *p++); /*copy data*/
- *q = '\0';
- state = 2;
-@@ -729,6 +732,26 @@
- }
-
-
-+/* Memory allocation routines */
-+void *xmalloc(size_t size)
-+{
-+ void *ptr;
-+
-+ if ((ptr = malloc(size)) == NULL)
-+ err_sys("malloc");
-+
-+ return ptr;
-+}
-+
-+void *xrealloc(void *ptr, size_t size)
-+{
-+ if ((ptr = realloc(ptr, size)) == NULL)
-+ err_sys("realloc");
-+
-+ return ptr;
-+}
-+
-+
- /* Error routines */
- void err_sys(const char *fmt, ...)
- {
-diff -Nru whois-4.6.6.orig/whois.h whois-4.6.6/whois.h
---- whois-4.6.6.orig/whois.h 2003-03-16 09:08:10.000000000 -0500
-+++ whois-4.6.6/whois.h 2003-08-11 15:53:43.000000000 -0400
-@@ -23,6 +23,8 @@
- int domfind(const char *, const char *[]);
- char *normalize_domain(const char *);
-
-+void *xmalloc(size_t);
-+void *xrealloc(void *, size_t);
- void err_quit(const char *,...);
- void err_sys(const char *,...);
-
diff --git a/net-misc/whois/files/whois-4.6.9-gentoo-security.patch b/net-misc/whois/files/whois-4.6.9-gentoo-security.patch
deleted file mode 100644
index 83de5bfd0501..000000000000
--- a/net-misc/whois/files/whois-4.6.9-gentoo-security.patch
+++ /dev/null
@@ -1,161 +0,0 @@
-diff -Naur whois-4.6.9/whois.c whois/whois.c
---- whois-4.6.9/whois.c 2003-12-01 19:15:18.000000000 +0100
-+++ whois/whois.c 2003-12-08 01:24:06.000000000 +0100
-@@ -76,7 +76,7 @@
- /* RIPE flags */
- if (strchr(ripeflags, ch)) {
- for (p = fstring; *p; p++);
-- sprintf(p--, "-%c ", ch);
-+ snprintf(p--, sizeof(fstring), "-%c ", ch);
- continue;
- }
- if (strchr(ripeflagsp, ch)) {
-@@ -89,7 +89,7 @@
- /* program flags */
- switch (ch) {
- case 'h':
-- server = q = malloc(strlen(optarg) + 1);
-+ server = q = xmalloc(strlen(optarg) + 1);
- for (p = optarg; *p && *p != ':'; *q++ = tolower(*p++));
- if (*p == ':')
- port = p + 1;
-@@ -125,7 +125,7 @@
- usage();
-
- /* On some systems realloc only works on non-NULL buffers */
-- qstring = malloc(64);
-+ qstring = xmalloc(64);
- *qstring = '\0';
-
- /* parse other parameters, if any */
-@@ -134,11 +134,11 @@
-
- while (1) {
- qslen += strlen(*argv) + 1 + 1;
-- qstring = realloc(qstring, qslen);
-- strcat(qstring, *argv++);
-+ qstring = xrealloc(qstring, qslen);
-+ strncat(qstring, *argv++, qslen-1);
- if (argc == 1)
- break;
-- strcat(qstring, " ");
-+ strncat(qstring, " ", qslen);
- argc--;
- }
- }
-@@ -423,10 +423,12 @@
- {
- char *buf;
- int i, isripe = 0;
--
-+ /* buflen was always 0 in original patch and buf was allocated
-+ twice /Aye */
- /* +2 for \r\n; +1 for NULL */
-- buf = malloc(strlen(flags) + strlen(query) + strlen(client_tag) + 4
-- + 2 + 1);
-+ int buflen = strlen(flags) + strlen(query) + strlen(client_tag) + 4 + 2 + 1;
-+ buf = xmalloc(buflen);
-+
- *buf = '\0';
- for (i = 0; ripe_servers[i]; i++)
- if (strcmp(server, ripe_servers[i]) == 0) {
-@@ -448,21 +450,21 @@
- if (*flags) {
- if (!isripe && strcmp(server, "whois.corenic.net") != 0)
- puts(_("Warning: RIPE flags used with a traditional server."));
-- strcat(buf, flags);
-+ strncat(buf, flags, buflen);
- }
- /* FIXME: /e is not applied to .JP ASN */
- if (!isripe && (strcmp(server, "whois.nic.mil") == 0 ||
- strcmp(server, "whois.nic.ad.jp") == 0) &&
- strncasecmp(query, "AS", 2) == 0 && isasciidigit(query[2]))
-- sprintf(buf, "AS %s", query + 2); /* fix query for DDN */
-+ snprintf(buf, buflen, "AS %s", query + 2); /* fix query for DDN */
- else if (!isripe && strcmp(server, "whois.nic.ad.jp") == 0) {
- char *lang = getenv("LANG"); /* not a perfect check, but... */
- if (!lang || (strncmp(lang, "ja", 2) != 0))
-- sprintf(buf, "%s/e", query); /* ask for english text */
-+ snprintf(buf, buflen, "%s/e", query); /* ask for english text */
- else
-- strcat(buf, query);
-+ strncat(buf, query, buflen);
- } else
-- strcat(buf, query);
-+ strncat(buf, query, buflen);
- return buf;
- }
-
-@@ -505,7 +507,7 @@
-
- if (verb)
- printf(_("Detected referral to %s on %s.\n"), nq, nh);
-- strcat(nq, "\r\n");
-+ strncat(nq, "\r\n", sizeof(nq));
- fd = openconn(nh, np);
- do_query(fd, nq);
- continue;
-@@ -531,7 +533,7 @@
- FILE *fi;
- int state = 0;
-
-- temp = malloc(strlen(query) + 1 + 2 + 1);
-+ temp = xmalloc(strlen(query) + 1 + 2 + 1);
- *temp = '=';
- strcpy(temp + 1, query);
- strcat(temp, "\r\n");
-@@ -549,7 +551,7 @@
-
- for (p = buf; *p != ':'; p++); /* skip until colon */
- for (p++; *p == ' '; p++); /* skip colon and spaces */
-- ret = malloc(strlen(p) + 1);
-+ ret = xmalloc(strlen(p) + 1);
- for (q = ret; *p != '\n' && *p != '\r' && *p != ' '; *q++ = *p++)
- ; /*copy data*/
- *q = '\0';
-@@ -594,7 +596,7 @@
- for (p = buf; *p != ':'; p++); /* skip until colon */
- for (p++; *p != ':'; p++); /* skip until 2nd colon */
- for (p++; *p == ' '; p++); /* skip colon and spaces */
-- ret = malloc(strlen(p) + 1);
-+ ret = xmalloc(strlen(p) + 1);
- for (q = ret; *p != '\n' && *p != '\r'; *q++ = *p++); /*copy data*/
- *q = '\0';
- state = 2;
-@@ -768,6 +770,24 @@
- exit(0);
- }
-
-+/* Memory allocation routines */
-+void *xmalloc(size_t size)
-+{
-+ void *ptr;
-+
-+ if ((ptr = malloc(size)) == NULL)
-+ err_sys("malloc");
-+
-+ return ptr;
-+}
-+
-+void *xrealloc(void *ptr, size_t size)
-+{
-+ if ((ptr = realloc(ptr, size)) == NULL)
-+ err_sys("realloc");
-+
-+ return ptr;
-+}
-
- /* Error routines */
- void err_sys(const char *fmt, ...)
-diff -Naur whois-4.6.9/whois.h whois/whois.h
---- whois-4.6.9/whois.h 2003-12-01 18:21:59.000000000 +0100
-+++ whois/whois.h 2003-12-08 01:06:28.000000000 +0100
-@@ -24,6 +24,8 @@
- char *normalize_domain(const char *);
- char *convert_6to4(const char *);
-
-+void *xmalloc(size_t);
-+void *xrealloc(void *, size_t);
- void err_quit(const char *,...);
- void err_sys(const char *,...);
-
diff --git a/net-misc/whois/whois-4.6.13-r1.ebuild b/net-misc/whois/whois-4.6.13-r1.ebuild
index 93283499b323..614d31174869 100644
--- a/net-misc/whois/whois-4.6.13-r1.ebuild
+++ b/net-misc/whois/whois-4.6.13-r1.ebuild
@@ -1,17 +1,18 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-4.6.13-r1.ebuild,v 1.2 2004/07/17 16:39:19 tgall Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-4.6.13-r1.ebuild,v 1.3 2004/10/16 18:08:05 vapier Exp $
inherit eutils
-IUSE="nls"
MY_P=${P/-/_}
DESCRIPTION="improved Whois Client"
-SRC_URI="http://www.linux.it/~md/software/${MY_P}.tar.gz"
HOMEPAGE="http://www.linux.it/~md/software/"
+SRC_URI="http://www.linux.it/~md/software/${MY_P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc ~mips hppa ~ia64 alpha ~amd64 ppc64"
+KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc64 sparc x86"
+IUSE="nls"
DEPEND=">=sys-apps/sed-4
>=dev-lang/perl-5"
@@ -33,8 +34,7 @@ src_unpack() {
}
src_compile() {
- make || die
- make mkpasswd || die
+ emake || die
}
src_install() {
@@ -43,11 +43,5 @@ src_install() {
use nls && dodir /usr/share/locale
make BASEDIR=${D} prefix=/usr mandir=/usr/share/man install || die
- dobin mkpasswd
- doman mkpasswd.1
dodoc README whois.conf debian/changelog debian/copyright
-
- einfo ""
- einfo "The example whois.conf is located in /usr/doc/${P}"
- einfo ""
}
diff --git a/net-misc/whois/whois-4.6.6-r3.ebuild b/net-misc/whois/whois-4.6.6-r3.ebuild
deleted file mode 100644
index 9b013d914ff6..000000000000
--- a/net-misc/whois/whois-4.6.6-r3.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-4.6.6-r3.ebuild,v 1.1 2004/07/13 18:24:19 seemant Exp $
-
-inherit eutils
-
-IUSE="nls"
-MY_P=${P/-/_}
-DESCRIPTION="improved Whois Client"
-SRC_URI="http://www.linux.it/~md/software/${MY_P}.tar.gz"
-HOMEPAGE="http://www.linux.it/~md/software/"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc sparc ~mips hppa ia64 alpha"
-
-DEPEND=">=sys-apps/sed-4
- >=dev-lang/perl-5"
-RDEPEND="virtual/libc"
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- sed -i "s/-O2/$CFLAGS/" Makefile
-
- use nls && ( \
- cd po
- sed -i "s:/usr/bin/install:install:" Makefile
- ) || ( \
- sed -i "s:cd po.*::" Makefile
- )
-
- epatch ${FILESDIR}/${P}-gentoo-security-2.patch
-}
-
-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 whois.conf debian/changelog debian/copyright
-
- einfo ""
- einfo "The example whois.conf is located in /usr/doc/${P}"
- einfo ""
-}
diff --git a/net-misc/whois/whois-4.6.9-r1.ebuild b/net-misc/whois/whois-4.6.9-r1.ebuild
deleted file mode 100644
index 9bfb86ca0cc7..000000000000
--- a/net-misc/whois/whois-4.6.9-r1.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/whois/whois-4.6.9-r1.ebuild,v 1.1 2004/07/13 18:24:19 seemant Exp $
-
-inherit eutils
-
-IUSE="nls"
-MY_P=${P/-/_}
-DESCRIPTION="improved Whois Client"
-SRC_URI="http://www.linux.it/~md/software/${MY_P}.tar.gz"
-HOMEPAGE="http://www.linux.it/~md/software/"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~ppc ~sparc mips hppa ~ia64 ~alpha amd64"
-
-DEPEND=">=sys-apps/sed-4
- >=dev-lang/perl-5"
-RDEPEND="virtual/libc"
-
-src_unpack() {
- unpack ${A}
- cd ${S}
- sed -i -e "s/-O2/$CFLAGS/" Makefile
-
- use nls && ( \
- cd po
- sed -i -e "s:/usr/bin/install:install:" Makefile
- ) || ( \
- sed -i -e "s:cd po.*::" Makefile
- )
-
- epatch ${FILESDIR}/${P}-gentoo-security.patch || die
-}
-
-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 whois.conf debian/changelog debian/copyright
-
- einfo ""
- einfo "The example whois.conf is located in /usr/doc/${P}"
- einfo ""
-}