diff options
Diffstat (limited to 'net-libs/libtirpc')
-rw-r--r-- | net-libs/libtirpc/ChangeLog | 100 | ||||
-rw-r--r-- | net-libs/libtirpc/Manifest | 7 | ||||
-rw-r--r-- | net-libs/libtirpc/files/libtirpc-0.2.1-fortify.patch | 18 | ||||
-rw-r--r-- | net-libs/libtirpc/files/libtirpc-0.2.2-rpc-des-prot.patch | 36 | ||||
-rw-r--r-- | net-libs/libtirpc/libtirpc-0.2.2-r1.ebuild | 56 | ||||
-rw-r--r-- | net-libs/libtirpc/metadata.xml | 5 |
6 files changed, 222 insertions, 0 deletions
diff --git a/net-libs/libtirpc/ChangeLog b/net-libs/libtirpc/ChangeLog new file mode 100644 index 0000000..fd057ad --- /dev/null +++ b/net-libs/libtirpc/ChangeLog @@ -0,0 +1,100 @@ +# ChangeLog for net-libs/libtirpc +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/ChangeLog,v 1.20 2011/06/11 19:52:16 vapier Exp $ + +*libtirpc-0.2.2-r1 (11 Jun 2011) + + 11 Jun 2011; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.2-r1.ebuild, + +files/libtirpc-0.2.2-rpc-des-prot.patch: + Stub out des_crypt for now #370713 by Nicolas Schlumberger, fix building with + glibc-2.14 #370663 by Diego Elio Pettenò, restore static lib support, and + start installing into / for glibc replacement. + +*libtirpc-0.2.2 (07 Jun 2011) + + 07 Jun 2011; Diego E. Pettenò <flameeyes@gentoo.org> +libtirpc-0.2.2.ebuild: + Version bump, which should hopefully build with glibc-2.14. + + 20 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org> + libtirpc-0.2.1-r1.ebuild: + ppc64 stable wrt #340189 + + 13 Nov 2010; Raúl Porcel <armin76@gentoo.org> libtirpc-0.2.1-r1.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #340189 + + 26 Oct 2010; Jeroen Roovers <jer@gentoo.org> libtirpc-0.2.1-r1.ebuild: + Stable for HPPA (bug #340189). + + 16 Oct 2010; Markus Meier <maekke@gentoo.org> libtirpc-0.2.1-r1.ebuild: + arm stable, bug #340189 + + 15 Oct 2010; Brent Baude <ranger@gentoo.org> libtirpc-0.2.1-r1.ebuild: + stable ppc, bug 340189 + + 10 Oct 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> + libtirpc-0.2.1-r1.ebuild: + x86 stable wrt bug #340189 + + 10 Oct 2010; Markos Chandras <hwoarang@gentoo.org> + libtirpc-0.2.1-r1.ebuild: + Stable on amd64 wrt bug #340189 + + 12 Sep 2010; Diego E. Pettenò <flameeyes@gentoo.org> + files/libtirpc-0.2.1-fortify.patch: + Use an even better patch to avoid overflow on the other senses if + hp_length is less than four. + +*libtirpc-0.2.1-r1 (12 Sep 2010) + + 12 Sep 2010; Diego E. Pettenò <flameeyes@gentoo.org> + -libtirpc-0.2.0.ebuild, -files/libtirpc-0.2.0-hppa-float.patch, + -files/libtirpc-0.2.0-no-gss.patch, -libtirpc-0.2.1.ebuild, + +libtirpc-0.2.1-r1.ebuild, +files/libtirpc-0.2.1-fortify.patch: + Add patch to fix a possible overflow (reported by _FORTIFY_SOURCE=2); + thanks to Joshua Kinard (Kumba) for reporting. Cleanup old versions and + patches. + +*libtirpc-0.2.1 (23 Jul 2010) + + 23 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org> + +libtirpc-0.2.1.ebuild: + Version bump, disable static libraries (it needs gssapi that uses libdl + anyway), remove .la file (helps fixing bug #293593), move to EAPI=2 while + at it. + + 30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild, + +files/libtirpc-0.2.0-hppa-float.patch: + Fix build failure on hppa and add keywords for all. + + 30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild: + Restore /etc/netconfig file. + + 30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild, + +files/libtirpc-0.2.0-no-gss.patch: + Fix link error when USE=-gss. + +*libtirpc-0.2.0 (30 May 2009) + + 30 May 2009; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.0.ebuild: + Version bump. + + 01 Feb 2009; Markus Meier <maekke@gentoo.org> libtirpc-0.1.10.ebuild: + amd64/x86 stable, bug #256691 + +*libtirpc-0.1.10 (28 Nov 2008) + + 28 Nov 2008; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.1.10.ebuild: + Version bump #249151 by Chi-Thanh Christopher Nguyen. + +*libtirpc-0.1.7-r1 (11 May 2008) + + 11 May 2008; Mike Frysinger <vapier@gentoo.org> + +files/libtirpc-0.1.7-CVE-2007-3999.patch, +libtirpc-0.1.7-r1.ebuild: + Add fix for CVE-2007-3999 #214208 by Robert Buchholz. + +*libtirpc-0.1.7 (29 Dec 2007) + + 29 Dec 2007; Mike Frysinger <vapier@gentoo.org> +metadata.xml, + +libtirpc-0.1.7.ebuild: + Initial ebuild by me. + diff --git a/net-libs/libtirpc/Manifest b/net-libs/libtirpc/Manifest new file mode 100644 index 0000000..1a202a1 --- /dev/null +++ b/net-libs/libtirpc/Manifest @@ -0,0 +1,7 @@ +AUX libtirpc-0.2.1-fortify.patch 704 RMD160 4030f5f8a583d36affa19536c83aa63c21ecdedb SHA1 c14fcb21e0dfa37fce5b5e23d5a04ddf0090da35 SHA256 e3436a6de8182e51c577000917feffc6428b6907d8bf1b56318acd999d34b056 +AUX libtirpc-0.2.2-rpc-des-prot.patch 979 RMD160 b60af12a2d9a27fb7e855c053ea8698b8a374d4f SHA1 29cdbb22e478bf2bc28c84a378ddb64327a8e378 SHA256 f09e866816973c6aac5c6e19d3007440b85ff42fe3c36ad0c3ee02dd657eb90c +DIST libtirpc-0.2.2.tar.bz2 464094 RMD160 b244a9fefa6cf2c2bc84300c9a51339ad87e229b SHA1 576c8826a91110580b60c973c672836559d2805a SHA256 f05eb17c85d62423858b8f74512cfe66a9ae1cedf93f03c2a0a32e04f0a33705 +DIST libtirpc-glibc-nfs.tar.xz 8948 RMD160 0f1254307780d5fc2004b5fc006a770d9626d935 SHA1 35496dd459ec014756be6816ca888271feb8e03d SHA256 2677cfedf626f3f5a8f6e507aed5bb8f79a7453b589d684dbbc086e755170d83 +EBUILD libtirpc-0.2.2-r1.ebuild 1454 RMD160 9b399630e1230a9a04818ca8c9dec287e54441b6 SHA1 6c3da3c2deafc5a550f5eea1ac74d892b410ce44 SHA256 31820c7e88280def5de230b54c4ce1c0f45f72531de387a8149a4c2617f9f159 +MISC ChangeLog 3591 RMD160 e9be2a61c58b3f2a2d17b7b8f17b948c5b7ae740 SHA1 8f114f73de275a2750c800b0729a3a1ed61aefaa SHA256 ab955a12e6f1f50c32981baa159ae05cecc02496d962e20343f7b4c191e12dc7 +MISC metadata.xml 159 RMD160 8e0977b9abd90afe9e1d5c1326823a5726f6e2a4 SHA1 33f35324ce730e28838be228d9ee4e4dd1bab1e5 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b diff --git a/net-libs/libtirpc/files/libtirpc-0.2.1-fortify.patch b/net-libs/libtirpc/files/libtirpc-0.2.1-fortify.patch new file mode 100644 index 0000000..7375bf8 --- /dev/null +++ b/net-libs/libtirpc/files/libtirpc-0.2.1-fortify.patch @@ -0,0 +1,18 @@ +Index: libtirpc-0.2.1/src/getrpcport.c +=================================================================== +--- libtirpc-0.2.1.orig/src/getrpcport.c ++++ libtirpc-0.2.1/src/getrpcport.c +@@ -54,11 +54,11 @@ getrpcport(host, prognum, versnum, proto + + if ((hp = gethostbyname(host)) == NULL) + return (0); ++ if (hp->h_length != sizeof(addr.sin_addr.s_addr)) ++ return (0); + memset(&addr, 0, sizeof(addr)); + addr.sin_family = AF_INET; + addr.sin_port = 0; +- if (hp->h_length > sizeof(addr)) +- hp->h_length = sizeof(addr); + memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length); + /* Inconsistent interfaces need casts! :-( */ + return (pmap_getport(&addr, (u_long)prognum, (u_long)versnum, diff --git a/net-libs/libtirpc/files/libtirpc-0.2.2-rpc-des-prot.patch b/net-libs/libtirpc/files/libtirpc-0.2.2-rpc-des-prot.patch new file mode 100644 index 0000000..c5de6da --- /dev/null +++ b/net-libs/libtirpc/files/libtirpc-0.2.2-rpc-des-prot.patch @@ -0,0 +1,36 @@ +From f2f43212b33dea42635061c82645287454a70107 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Sat, 11 Jun 2011 15:21:55 -0400 +Subject: [PATCH] add multiple inclusion protection to rpc/des.h + +If you try to include this file multiple times, you get a build failure +due to redefinitions of enums and such. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + tirpc/rpc/des.h | 5 +++++ + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/tirpc/rpc/des.h b/tirpc/rpc/des.h +index e3d6897..d2881ad 100644 +--- a/tirpc/rpc/des.h ++++ b/tirpc/rpc/des.h +@@ -33,6 +33,9 @@ + * Copyright (c) 1986 by Sun Microsystems, Inc. + */ + ++#ifndef _RPC_DES_H_ ++#define _RPC_DES_H_ ++ + #define DES_MAXLEN 65536 /* maximum # of bytes to encrypt */ + #define DES_QUICKLEN 16 /* maximum # of bytes to encrypt quickly */ + +@@ -80,3 +83,5 @@ struct desparams { + * Software DES. + */ + extern int _des_crypt( char *, int, struct desparams * ); ++ ++#endif +-- +1.7.5.3 + diff --git a/net-libs/libtirpc/libtirpc-0.2.2-r1.ebuild b/net-libs/libtirpc/libtirpc-0.2.2-r1.ebuild new file mode 100644 index 0000000..09036f7 --- /dev/null +++ b/net-libs/libtirpc/libtirpc-0.2.2-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.2-r1.ebuild,v 1.1 2011/06/11 19:52:16 vapier Exp $ + +EAPI="3" + +inherit eutils toolchain-funcs + +DESCRIPTION="Transport Independent RPC library (SunRPC replacement)" +HOMEPAGE="http://libtirpc.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 + mirror://gentoo/${PN}-glibc-nfs.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64-linux" +IUSE="kerberos static-libs" + +RDEPEND="kerberos? ( net-libs/libgssglue )" +DEPEND="${RDEPEND} + app-arch/xz-utils + dev-util/pkgconfig" + +src_unpack() { + unpack ${A} + cp -r tirpc "${S}"/ || die +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.2.1-fortify.patch + epatch "${FILESDIR}"/${PN}-0.2.2-rpc-des-prot.patch + > src/des_crypt.c #370713 +} + +src_configure() { + econf \ + $(use_enable kerberos gss) \ + $(use_enable static-libs static) +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc AUTHORS ChangeLog NEWS README THANKS TODO + insinto /etc + newins doc/etc_netconfig netconfig || die + + insinto /usr/include/tirpc + doins -r "${WORKDIR}"/tirpc/* || die + + # libtirpc replaces rpc support in glibc, so we need it in / + gen_usr_ldscript -a tirpc + + # makes sure that the linking order for nfs-utils is proper, as + # libtool would inject a libgssglue dependency in the list. + use static-libs || find "${ED}" -name '*.la' -delete +} diff --git a/net-libs/libtirpc/metadata.xml b/net-libs/libtirpc/metadata.xml new file mode 100644 index 0000000..ca66751 --- /dev/null +++ b/net-libs/libtirpc/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-fs</herd> +</pkgmetadata> |