diff options
author | Raúl Porcel <armin76@gentoo.org> | 2008-03-07 18:36:33 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2008-03-07 18:36:33 +0000 |
commit | c42b37376d801c42016f3e9d70fe8968374b9d4d (patch) | |
tree | 03a5cb4326df7d61647a184f8c675635a06b88b9 /net-dns/hesiod | |
parent | QA cleanup: Shorten DESCRIPTION. (diff) | |
download | historical-c42b37376d801c42016f3e9d70fe8968374b9d4d.tar.gz historical-c42b37376d801c42016f3e9d70fe8968374b9d4d.tar.bz2 historical-c42b37376d801c42016f3e9d70fe8968374b9d4d.zip |
cleanup
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-dns/hesiod')
-rw-r--r-- | net-dns/hesiod/Manifest | 5 | ||||
-rw-r--r-- | net-dns/hesiod/files/hesiod-3.0.2-env.patch | 27 | ||||
-rw-r--r-- | net-dns/hesiod/files/hesiod-3.0.2-shlib.patch | 50 | ||||
-rw-r--r-- | net-dns/hesiod/files/hesiod-3.0.2-str.patch | 68 | ||||
-rw-r--r-- | net-dns/hesiod/hesiod-3.0.2-r1.ebuild | 46 | ||||
-rw-r--r-- | net-dns/hesiod/hesiod-3.0.2.ebuild | 56 |
6 files changed, 0 insertions, 252 deletions
diff --git a/net-dns/hesiod/Manifest b/net-dns/hesiod/Manifest index e4fcbc173662..bc53fe65cffd 100644 --- a/net-dns/hesiod/Manifest +++ b/net-dns/hesiod/Manifest @@ -1,10 +1,5 @@ -AUX hesiod-3.0.2-env.patch 896 RMD160 a71acc25dc66afd84f760454e8dd2225b2bc0794 SHA1 1d2a1f4d2e4f42b5b9984208af6282ed5e18fe66 SHA256 a88bda3f711e041252a5e5488779db6019b5d53ecbd8404a95fa001bee10f670 AUX hesiod-3.0.2-redhat.patch 6867 RMD160 7dc751bef1afe0f8ed1810883af94bce61bb1d54 SHA1 a0afa43ff42040d40cca321e2e1608538058ea0d SHA256 db20848b4c74f30ac3a7b00c7fc2e1e16849d0fde40948be8b564841bb91041f -AUX hesiod-3.0.2-shlib.patch 1767 RMD160 2cea87a1010d9bbebe222b4a410eb216d4b206b3 SHA1 6fd3dc0f3047036ccab7d6c0dae622fc3746d6c6 SHA256 18c7ac36502ee614855cb624fb94b9757ba4c90658c8d2921d8a5c45abca7890 -AUX hesiod-3.0.2-str.patch 2039 RMD160 6b6b38779dbf37bbb9b742a04a636883468f3894 SHA1 a3d6c106fecda97ce103ddc2590e41c88f38ffef SHA256 8df1362404df4d381e77f2a6bbacb8f01c8ea8120e7f45e836f907199feea7f7 DIST hesiod-3.0.2.tar.gz 31974 RMD160 b2abfdebc9874a4d111748c687b63e275220316b SHA1 bc88fc2ae3e7cf96af26d041ec113ab28f112d1d SHA256 ee0ff39ad2445728360e1550de3c18d48813b3f9359ea3ad8a49f71ffb314c25 -EBUILD hesiod-3.0.2-r1.ebuild 1324 RMD160 3028808c0d4f5aabac7a2f812734afd0b1155552 SHA1 811c8e7fc6ef516c8be9ed766e4b1b2cc1a50fe7 SHA256 cba8671d14e9961b149cb47420dcccbac6b271723a3d930de1f3feef834d7ff8 EBUILD hesiod-3.0.2-r2.ebuild 1421 RMD160 81d98d320a38bd4b80c414b58c2f2f369ed453d9 SHA1 92b5e19ca5cecc1d2cdd48c552d01de786126eb0 SHA256 0a214c59d802ce2bf35d2616048949b9f4e2f6a1bb9b09a3b51b24b114ae25b1 -EBUILD hesiod-3.0.2.ebuild 1558 RMD160 4b8093bdf42740d02b1fe166c0d7a691ff0c687a SHA1 5d73485ae735af5773a93f6d3e3947c26b2f07fb SHA256 678cb39fcfe8d14dcc24009568b783c6dbd70df9f46dde93919ee09db1803b37 MISC ChangeLog 4767 RMD160 262ab1fdf5bdecd77acd918ce008cddfd2cbe428 SHA1 7069783edf12d0c1c84e2bf7acc9abc8ed2429c6 SHA256 b34dc3c5687b9c0f307c4566b49de98d10a0bd52f248701baf7f5d49280c58a2 MISC metadata.xml 236 RMD160 92f49f8275e75caf57b88a3172d5204eaa4e33ae SHA1 dd1a8550a514e55ab0ed6190ab4794bb090994f8 SHA256 56075995f83836ae824c7cb01931b98d6745f6d5a7764299c8262e801486b829 diff --git a/net-dns/hesiod/files/hesiod-3.0.2-env.patch b/net-dns/hesiod/files/hesiod-3.0.2-env.patch deleted file mode 100644 index 444cc3b539f0..000000000000 --- a/net-dns/hesiod/files/hesiod-3.0.2-env.patch +++ /dev/null @@ -1,27 +0,0 @@ -Ignore environment variables in setuid or setgid programs. ---- hesiod-3.0.2/hesiod.c Wed Oct 3 14:53:37 2001 -+++ hesiod-3.0.2/hesiod.c Wed Oct 3 14:55:02 2001 -@@ -52,6 +52,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include <string.h> -+#include <unistd.h> - #include <ctype.h> - #include "hesiod.h" - #include "hesiod_p.h" -@@ -79,13 +80,13 @@ - if (ctx) - { - *context = ctx; -- configname = getenv("HESIOD_CONFIG"); -+ configname = ((getuid() == geteuid()) && (getgid() == getegid())) ? getenv("HESIOD_CONFIG") : NULL; - if (!configname) - configname = SYSCONFDIR "/hesiod.conf"; - if (read_config_file(ctx, configname) >= 0) - { - /* The default rhs can be overridden by an environment variable. */ -- p = getenv("HES_DOMAIN"); -+ p = ((getuid() == geteuid()) && (getgid() == getegid())) ? getenv("HES_DOMAIN") : NULL; - if (p) - { - if (ctx->rhs) diff --git a/net-dns/hesiod/files/hesiod-3.0.2-shlib.patch b/net-dns/hesiod/files/hesiod-3.0.2-shlib.patch deleted file mode 100644 index 128db5a24dbf..000000000000 --- a/net-dns/hesiod/files/hesiod-3.0.2-shlib.patch +++ /dev/null @@ -1,50 +0,0 @@ ---- hesiod-3.0.2/Makefile.in Fri Oct 5 15:43:35 2001 -+++ hesiod-3.0.2/Makefile.in Fri Oct 5 15:47:42 2001 -@@ -21,20 +21,24 @@ - CFLAGS=@CFLAGS@ - LDFLAGS=@LDFLAGS@ - LIBS=@LIBS@ --ALL_CFLAGS=-I. -DSYSCONFDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} -+ALL_CFLAGS=-I. -DSYSCONFDIR=\"${sysconfdir}\" ${CPPFLAGS} ${CFLAGS} -fPIC - OBJS=hesiod.o hesmailhost.o hespwnam.o hesservbyname.o hescompat.o -+SOVERSION=0 - --all: libhesiod.a hesinfo hestest -+all: libhesiod.a hesinfo hestest libhesiod.so.$(SOVERSION) -+ -+libhesiod.so.$(SOVERSION): ${OBJS} -+ $(LD) -G -o $@ -soname=$@ ${OBJS} ${LIBS} -lc - - libhesiod.a: ${OBJS} - ar cru $@ ${OBJS} - ${RANLIB} $@ - --hesinfo: hesinfo.o libhesiod.a -- ${CC} ${LDFLAGS} -o $@ hesinfo.o libhesiod.a ${LIBS} -+hesinfo: hesinfo.o libhesiod.so.$(SOVERSION) -+ ${CC} ${LDFLAGS} -o $@ hesinfo.o libhesiod.so.$(SOVERSION) ${LIBS} - --hestest: hestest.o libhesiod.a -- ${CC} ${LDFLAGS} -o $@ hestest.o libhesiod.a ${LIBS} -+hestest: hestest.o libhesiod.so.$(SOVERSION) -+ ${CC} ${LDFLAGS} -o $@ hestest.o libhesiod.so.$(SOVERSION) ${LIBS} - - ${OBJS}: hesiod.h resscan.h - -@@ -42,6 +46,7 @@ - ${CC} -c ${ALL_CFLAGS} $< - - check: -+ LD_LIBRARY_PATH="`pwd`":"$(LD_LIBRARY_PATH)" \ - HESIOD_CONFIG=${srcdir}/hesiod.config.sample \ - ./hestest ${srcdir}/hestest.conf - -@@ -55,6 +60,8 @@ - ${INSTALL} -c -m 644 libhesiod.a ${DESTDIR}${libdir} - ${RANLIB} ${DESTDIR}${libdir}/libhesiod.a - chmod u-w ${DESTDIR}${libdir}/libhesiod.a -+ ${INSTALL} -c -m 755 libhesiod.so.$(SOVERSION) ${DESTDIR}${libdir} -+ ln -s libhesiod.so.$(SOVERSION) ${DESTDIR}${libdir}/libhesiod.so - ${INSTALL_PROGRAM} -c -m 555 hesinfo ${DESTDIR}${lbindir} - ${INSTALL} -c -m 444 ${srcdir}/hesiod.h ${DESTDIR}${includedir} - ${INSTALL} -c -m 444 ${srcdir}/hesinfo.1 ${DESTDIR}${mandir}/man1 diff --git a/net-dns/hesiod/files/hesiod-3.0.2-str.patch b/net-dns/hesiod/files/hesiod-3.0.2-str.patch deleted file mode 100644 index a763e539105d..000000000000 --- a/net-dns/hesiod/files/hesiod-3.0.2-str.patch +++ /dev/null @@ -1,68 +0,0 @@ -There are a few places where untrusted information could cause problems. -There's a bug in the configuration file parser that might result in an -LHS= modifying the rhs setting. -The case-insensitive comparison routine is probably called safely (with the -second argument at least as long as the first), but it looks weird. ---- hesiod-3.0.2/hesiod.c Wed Oct 3 15:16:17 2001 -+++ hesiod-3.0.2/hesiod.c Wed Oct 3 15:33:41 2001 -@@ -138,7 +138,8 @@ - const char *rhs; - int len; - -- strcpy(bindname, name); -+ strncpy(bindname, name, sizeof(bindname) - 1); -+ bindname[sizeof(bindname) - 1] = 0; - - /* Find the right right hand side to use, possibly truncating bindname. */ - p = strchr(bindname, '@'); -@@ -288,7 +289,7 @@ - - if (cistrcmp(key, "lhs") == 0 || cistrcmp(key, "rhs") == 0) - { -- which = (strcmp(key, "lhs") == 0) ? &ctx->lhs : &ctx->rhs; -+ which = (cistrcmp(key, "lhs") == 0) ? &ctx->lhs : &ctx->rhs; - *which = malloc(strlen(data) + 1); - if (!*which) - { -@@ -462,7 +463,7 @@ - - static int cistrcmp(const char *s1, const char *s2) - { -- while (*s1 && tolower(*s1) == tolower(*s2)) -+ while (*s1 && *s2 && tolower(*s1) == tolower(*s2)) - { - s1++; - s2++; ---- hesiod-3.0.2/hespwnam.c Wed Oct 3 15:29:40 2001 -+++ hesiod-3.0.2/hespwnam.c Wed Oct 3 15:29:43 2001 -@@ -39,9 +39,16 @@ - - struct passwd *hesiod_getpwuid(void *context, uid_t uid) - { -- char uidstr[16]; -+ char uidstr[32]; - -- sprintf(uidstr, "%d", uid); -- return getpwcommon(context, uidstr, 1); -+ if (snprintf(uidstr, sizeof(uidstr), "%ld", (long)uid) < sizeof(uidstr)) -+ { -+ return getpwcommon(context, uidstr, 1); -+ } -+ else -+ { -+ errno = ERANGE; -+ return NULL; -+ } - } - ---- hesiod-3.0.2/hesservbyname.c Wed Oct 3 15:33:25 2001 -+++ hesiod-3.0.2/hesservbyname.c Wed Oct 3 15:33:22 2001 -@@ -188,7 +188,7 @@ - - static int cistrcmp(const char *s1, const char *s2) - { -- while (*s1 && tolower(*s1) == tolower(*s2)) -+ while (*s1 && *s2 && tolower(*s1) == tolower(*s2)) - { - s1++; - s2++; diff --git a/net-dns/hesiod/hesiod-3.0.2-r1.ebuild b/net-dns/hesiod/hesiod-3.0.2-r1.ebuild deleted file mode 100644 index ebc581cf475a..000000000000 --- a/net-dns/hesiod/hesiod-3.0.2-r1.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/hesiod/hesiod-3.0.2-r1.ebuild,v 1.25 2007/11/03 02:22:08 uberlord Exp $ - -inherit flag-o-matic eutils - -DESCRIPTION="system which uses existing DNS functionality to provide access to databases of information that changes infrequently" -HOMEPAGE="ftp://athena-dist.mit.edu/pub/ATHENA/hesiod" -SRC_URI="ftp://athena-dist.mit.edu/pub/ATHENA/${PN}/${P}.tar.gz" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" -IUSE="" - -src_unpack() { - unpack ${A} - cd ${S} - - filter-flags -fstack-protector - - #Patches stolen from RH - epatch ${FILESDIR}/hesiod-${PV}-redhat.patch - autoconf || die "autoconf failed" - - for manpage in *.3 - do - if grep -q '^\.so man3/hesiod.3' ${manpage} - then - echo .so hesiod.3 > ${manpage} - elif grep -q '^\.so man3/hesiod_getmailhost.3' ${manpage} - then - echo .so hesiod_getmailhost.3 > ${manpage} - elif grep -q '^\.so man3/hesiod_getpwnam.3' ${manpage} - then - echo .so hesiod_getpwnam.3 > ${manpage} - elif grep -q '^\.so man3/hesiod_getservbyname.3' ${manpage} - then - echo .so hesiod_getservbyname.3 > ${manpage} - fi - done -} - -src_install() { - make DESTDIR="${D}" install || die -} diff --git a/net-dns/hesiod/hesiod-3.0.2.ebuild b/net-dns/hesiod/hesiod-3.0.2.ebuild deleted file mode 100644 index 74fbc68fb664..000000000000 --- a/net-dns/hesiod/hesiod-3.0.2.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/hesiod/hesiod-3.0.2.ebuild,v 1.14 2007/11/03 02:22:08 uberlord Exp $ - -inherit flag-o-matic - -DESCRIPTION="Hesiod is a system which uses existing DNS functionality to provide access to databases of information that changes infrequently." -SRC_URI="ftp://athena-dist.mit.edu/pub/ATHENA/${PN}/${P}.tar.gz" -HOMEPAGE="ftp://athena-dist.mit.edu/pub/ATHENA/hesiod" - -SLOT="0" -LICENSE="ISC" -KEYWORDS="hppa ppc sparc ~sparc-fbsd x86" -IUSE="" - -src_unpack() { - unpack ${A} - - filter-flags -fstack-protector - - #Patches stolen from RH - cat ${FILESDIR}/hesiod-3.0.2-shlib.patch | patch -d ${S} -p1 - cat ${FILESDIR}/hesiod-3.0.2-env.patch | patch -d ${S} -p1 - cat ${FILESDIR}/hesiod-3.0.2-str.patch | patch -d ${S} -p1 - cd ${S} - for manpage in *.3 - do - if grep -q '^\.so man3/hesiod.3' ${manpage} - then - echo .so hesiod.3 > ${manpage} - elif grep -q '^\.so man3/hesiod_getmailhost.3' ${manpage} - then - echo .so hesiod_getmailhost.3 > ${manpage} - elif grep -q '^\.so man3/hesiod_getpwnam.3' ${manpage} - then - echo .so hesiod_getpwnam.3 > ${manpage} - elif grep -q '^\.so man3/hesiod_getservbyname.3' ${manpage} - then - echo .so hesiod_getservbyname.3 > ${manpage} - fi - done -} - -src_compile() { - ./configure \ - --host=${CHOST} \ - --prefix=/usr \ - --infodir=/usr/share/info \ - --mandir=/usr/share/man || die "./configure failed" - emake || die - #make || die -} - -src_install () { - make DESTDIR=${D} install || die -} |