bump(net-libs/libtirpc): sync with upstream

This commit is contained in:
Brandon Philips 2013-09-01 22:28:41 -07:00
parent 338f5fda6e
commit 9a7ba3f716
11 changed files with 369 additions and 64 deletions

View File

@ -0,0 +1,133 @@
# ChangeLog for net-libs/libtirpc
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/ChangeLog,v 1.30 2013/02/18 21:56:35 vapier Exp $
*libtirpc-0.2.3 (18 Feb 2013)
18 Feb 2013; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.3.ebuild:
Version bump.
09 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> -libtirpc-0.2.2.ebuild:
Remove masked version.
05 May 2012; Jeff Horelick <jdhore@gentoo.org> libtirpc-0.2.1-r1.ebuild,
libtirpc-0.2.2.ebuild, libtirpc-0.2.2-r1.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
02 Mar 2012; Brent Baude <ranger@gentoo.org> libtirpc-0.2.2-r1.ebuild:
Marking libtirpc-0.2.2-r1 ppc64 for bug 394979
15 Feb 2012; Brent Baude <ranger@gentoo.org> libtirpc-0.2.2-r1.ebuild:
Marking libtirpc-0.2.2-r1 ppc for bug 394979
15 Jan 2012; Raúl Porcel <armin76@gentoo.org> libtirpc-0.2.2-r1.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #394979
04 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org>
libtirpc-0.2.2-r1.ebuild:
x86 stable wrt bug #394979
22 Dec 2011; Markus Meier <maekke@gentoo.org> libtirpc-0.2.2-r1.ebuild:
arm stable, bug #394979
20 Dec 2011; Jeroen Roovers <jer@gentoo.org> libtirpc-0.2.2-r1.ebuild:
Stable for HPPA (bug #394979).
16 Dec 2011; Agostino Sarubbo <ago@gentoo.org> libtirpc-0.2.2-r1.ebuild:
Stable for AMD64, wrt bug #394979
*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.

View File

@ -1,2 +1,33 @@
DIST libtirpc-0.1.10.tar.bz2 416468 RMD160 494ae5beb892e47a551cba974b6586cf35af89b2 SHA1 42702d6f40acdf040c421554f36621e68920e702 SHA256 8441ee7b583b964c961e4e2b502063b668bb0b59c405526176e71d071caf0b0a -----BEGIN PGP SIGNED MESSAGE-----
DIST libtirpc-0.2.0.tar.bz2 436321 RMD160 6a6583e3db021a581b4a6ef078980d186345d44e SHA1 fba25db14518daeaca3ede3e38ef6e18ba1c9a8f SHA256 084c0661773c489df910f24caf915f2cf96ed3e00dea5222e788b754fea4c0db Hash: SHA256
AUX libtirpc-0.2.1-fortify.patch 704 SHA256 e3436a6de8182e51c577000917feffc6428b6907d8bf1b56318acd999d34b056 SHA512 a0d01771c0ca0292bbbb95d77d9369dbf0ebb27693a709e110d3c0924e40b5a1ebdeba39035772269b8f42ddb964eb985778c17b725a7031a5b1c0beb7d582f5 WHIRLPOOL 051b13d4cbc1a4aa454d9782756c5e533add93118f9b5d01de1a77ace2d3eeb7ccc3fb029e1e319cf7887a5182713193ca559d5e8e70508163e77604e1599b06
AUX libtirpc-0.2.2-rpc-des-prot.patch 979 SHA256 f09e866816973c6aac5c6e19d3007440b85ff42fe3c36ad0c3ee02dd657eb90c SHA512 18d2941c682c98f0fe940d08f65493b588274d64691cc2c1b939e1054d2b58a576f04c55f97f0d92d16993854dbde17c031f0429f90ae1ead0f01645f17b6513 WHIRLPOOL 9d009725fc2a95005467b7eb921e5c53f9f256ee85e09f36ed8960347da24041c8ddf4762d6d3175b9816cb210c2a89a8afb15f70162417b85ef222df2db8737
DIST libtirpc-0.1.10.tar.bz2 416468 SHA256 8441ee7b583b964c961e4e2b502063b668bb0b59c405526176e71d071caf0b0a
DIST libtirpc-0.2.1.tar.bz2 413031 SHA256 ea77cadd63941fc4edbee7863d2c7094e6a18263d2a2c8922319aee91352ff41 SHA512 3dec4a12a08493dd61e16356e3f1cdb7c037a04468654b972514529054c4efce6fbb7add218c4ea9f9c56c4106107b80bdaa7b40120f97d4c455f51ec3b1693f WHIRLPOOL 20e14a9f9ae49dedd47bba79064358b347142f6fccc403520b3ba0012a184b9352a69be1f55bbb46a7004fbcb8d8d0882e40bc4d20a93cea402f4680ceaa8dbc
DIST libtirpc-0.2.2.tar.bz2 464094 SHA256 f05eb17c85d62423858b8f74512cfe66a9ae1cedf93f03c2a0a32e04f0a33705 SHA512 5d0f5a50a703580d713c5f3c266dd5d3bebcd641356752c629e6e7b560ce8ceced1bb908d6c93873f3c2734eacc7f3dc018a31dda18c6ae973dd105223b17d87 WHIRLPOOL 0822412ed749f7f75b318a185c19fea6f0e199dc68e51726f3df2bcf89fd3731f0bc275ec0940668998971ab9c696be5059d836f4ab0ff9f79117b0387c4fbfc
DIST libtirpc-0.2.3.tar.bz2 464189 SHA256 4f29ea0491b4ca4c29f95f3c34191b857757873bbbf4b069f9dd4da01a6a923c SHA512 dd480fcb6feda4a2bba7e5a5dc9b1f523697a39ddaa44a5742405f66d202996d99a562a31dbf6daf06e9b7ce5d82dfd1cce7b76a34466b92f84176e77498163d WHIRLPOOL 0e1bb647e9afa871fe250e1355ee7fdf7ac6b8d4ea981a8062459310f5eee3046db61dbb756647c64dc34631625c8f961fa4fa27c7e8cf8b5f29db3a7540594d
DIST libtirpc-glibc-nfs.tar.xz 8948 SHA256 2677cfedf626f3f5a8f6e507aed5bb8f79a7453b589d684dbbc086e755170d83 SHA512 90255bf0a27af16164e0710dd940778609925d473f4343093ff19d98cc4f23023788bf4edf0178eae1961afc0ba8b69b273de95b7d7e2afdb706701d8ba6f7ba WHIRLPOOL 06bcf3fd4e424a86071e5c4ddeb89aa571c862e765aae9382d9f9a55ab72cd1c623490555c1a9bd3380a2d04ecb10fb47a75a7dddf449d4368a1a01617226858
EBUILD libtirpc-0.1.10.ebuild 684 SHA256 b3f164c22c5472b130f60d084fc245a92879014700f1176f564af3841988bfd2 SHA512 44a21ca9ba4c552f25bee5f33dbcbc2166e3fd5c975fac6861780584564323c6d858d951d94ed43cae246ebee7040e93b20cb6fef7c51bae54d577eb48009ad6 WHIRLPOOL adb3df78f8458e4d048f7180d6f2999c566f1881e3815f937cb2194a916d6beb6f793515e312581c4aa8d59b1a8b0441fde11fe330fe96037def43ec5a947ea2
EBUILD libtirpc-0.2.1-r1.ebuild 1066 SHA256 945bbfc848d2407f61922c41a5d472e65424cd6367b60ab2643697a7dca6b01a SHA512 b69c734446d0f37ec1cc04d33337a2e4b3bd819cf7c7b3726a5b1bf558b8782a43aef10ad717725cf7987a896e7f7edeadecbae2da0cadffa15aa2d078d9687d WHIRLPOOL b2ba08752f6abc99c04a2521516a2b408ed2e2a7ff8fa9330ac0a7fd1b5ce12c58f68616f3d70d010ba1c675bf28faf538ce7a517cfb680e84658643d81897e9
EBUILD libtirpc-0.2.2-r1.ebuild 1499 SHA256 5c19d1861b29fc7796b1e1f9b490e9f230f199caf8090fe6d363f9c15ca850f3 SHA512 64f6f1c512723eefd0f40f8c275b699c33958b4944cbdddd8d390d8f94243eef8c690ade36a6442c6d603ab4a9c7cbf70e2dad7d4d1891bab6dfa839039a6d4a WHIRLPOOL c0e80e49223c5647340b06731cbcf78d939221dc6e51a22682610bf0ced50d26572acbd5c03c9bf0cce501308062ff607d173b52068d044f761fb490ad3c44f4
EBUILD libtirpc-0.2.3.ebuild 1263 SHA256 9f95f59a7219da884e46c05cc4d922a0b434cc160754067f2b5975a18dc1a43f SHA512 190f8c3e8026113b3a0f63af4565e1c9bbdb989cc0a4e8f7448d838de151e1ceb80f7406e4deaa44353192c2ddb889716164324a3ef893c82bd7e49c2b5c8440 WHIRLPOOL 857347cfa9cc5aca64fa226eddb9b6e57109378a595c19bdc71e0c84cf295f60fcb5a843b9185751df118d3bc6cf4fbf14e5ab3f8f42a4d71875d540c3624f0c
MISC ChangeLog 4786 SHA256 e6773b720cb95d4868f511187ae5daef60c84157b4e5017bf63fef604019baa6 SHA512 e798de3e091ce2884e2ed69639eade73ff3f1782523485bfba0f6437b2dee014cb46fbf1cf1a081ab7a88612057bb1504a9a880d3230a280398513ff3b75d44e WHIRLPOOL 4225f96f209512e167264b1a756879547712bc6cae05b905388a2646476a762ade175858806ee8d023bfa29d1f674ef8622479849c70e6f97cb93de5134c1cff
MISC metadata.xml 159 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b SHA512 9645bd7d570c2eefd7f14adf726c056a6295d45263f143e365a3fd2e8e6128392eb5fa1103b3a3bb60a622b4595ac7fe3ec19430184210ff63e86d5f03635704 WHIRLPOOL 1d62390192bf65ac30d67f3c0a872536dd8e6a5a0d8d978e5e8f83f09e44907abf16825066c9976e8be482398385737a024837da3c544eaf912ec2710318e289
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQIcBAEBCAAGBQJRIqOZAAoJELEHsLL7fEFWsKAP/jQvdUiGs4dCpys2b9a2KooN
nNFSQwO4GKMyZAeKnGA4eyO0upgBjHJN+tE1N2kcYIpCgOFumS2tFqb7kCywxTI0
TKbwODYO6hZFgNR1+2nxnIq9eCX0PjyUPv4N22GWZzAEfqVPbwYg7eoSBUFVNLV/
XoUCue9u7RzySG6z8qBSbIv3pgIzxx8cqxKJdkD8WzjQy0YGDnZywwe2KUcUO0ee
+X+KjsDKXS0LEkFjG9kS1Kl9P0ZjTZJPygm8Fgm/0+F44l07/d/B2TmK99v0gia5
6+tdu+nDVsikk9GrL+uo+5VgRUUp5hICJwe9GXxs/EP+V5VpU+V8K4e4uP3jKZTc
AqrW+Tv+aYYPHu9DQUDJQjLfeqPeahKAWVxiwE2afDrBMBo1OzqPwwZz1K/NLVfo
jOdNVwk+FIgSeTazSMzjIRqpIBPNAeMaVHrBRBks1WYEL0dzUvf4T+D4k1Qium3n
vuOGbf3XFZzsSVu99isLXPIpPyoX9+fHbWDX2PgLpijTGFL1e5or7FxQssC1xZhT
F0u8DmqjIPlLi1cS+rW/hTcglJkJHgMSqEIb9eyppq462cF7fLfaDZTZYk8xeJX8
tRor/PB87Xejxwb4Ih3rtd2N+fjTm6/hhQ8E8K66mGXwo0+aXTDz2SnwvgSAAnjm
twMhCnVFW7HW0ZRIhVvy
=Jqtu
-----END PGP SIGNATURE-----

View File

@ -1,13 +0,0 @@
fix build failure on hppa
--- src/xdr_float.c
+++ src/xdr_float.c
@@ -59,7 +59,7 @@
defined(__arm32__) || defined(__ppc__) || defined(__ia64__) || \
defined(__arm26__) || defined(__sparc64__) || defined(__amd64__) || \
defined(__powerpc__) || defined(__s390__) || defined(__arm__) || \
- defined(__sh__)
+ defined(__sh__) || defined(__hppa__)
#include <bits/endian.h>
#define IEEEFP
#endif

View File

@ -1,13 +0,0 @@
if gss is disabled, then svc_auth_gss_ops won't be available
--- src/svc.c
+++ src/svc.c
@@ -77,7 +77,7 @@
extern rwlock_t svc_lock;
extern rwlock_t svc_fd_lock;
-extern struct svc_auth_ops svc_auth_gss_ops;
+extern struct svc_auth_ops svc_auth_gss_ops __attribute__((weak));
static struct svc_callout *svc_find (rpcprog_t, rpcvers_t,
struct svc_callout **, char *);

View File

@ -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,

View File

@ -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

View File

@ -1,36 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.0.ebuild,v 1.4 2009/05/30 21:28:12 vapier Exp $
inherit eutils
DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
HOMEPAGE="http://libtirpc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="kerberos"
DEPEND="kerberos? ( net-libs/libgssglue )"
RDEPEND=${DEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-hppa-float.patch
epatch "${FILESDIR}"/${P}-no-gss.patch
}
src_compile() {
econf $(use_enable kerberos gss) || die
emake || die
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
insinto /etc
newins doc/etc_netconfig netconfig || die
}

View File

@ -0,0 +1,39 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.1-r1.ebuild,v 1.9 2012/05/05 02:54:24 jdhore Exp $
EAPI="2"
inherit eutils
DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
HOMEPAGE="http://libtirpc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="kerberos"
RDEPEND="kerberos? ( net-libs/libgssglue )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${P}-fortify.patch
}
src_configure() {
econf $(use_enable kerberos gss) --disable-static
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
insinto /etc
newins doc/etc_netconfig netconfig || die
# makes sure that the linking order for nfs-utils is proper, as
# libtool would inject a libgssglue dependency in the list.
find "${D}" -name '*.la' -delete
}

View File

@ -0,0 +1,56 @@
# Copyright 1999-2012 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.9 2012/05/05 02:54:24 jdhore 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="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="kerberos static-libs"
RDEPEND="kerberos? ( net-libs/libgssglue )"
DEPEND="${RDEPEND}
app-arch/xz-utils
virtual/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 "${D}" -name '*.la' -delete
}

View File

@ -0,0 +1,49 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.3.ebuild,v 1.1 2013/02/18 21:56:35 vapier Exp $
EAPI="4"
inherit 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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="kerberos static-libs"
RDEPEND="kerberos? ( net-libs/libgssglue )"
DEPEND="${RDEPEND}
app-arch/xz-utils
virtual/pkgconfig"
src_unpack() {
unpack ${A}
cp -r tirpc "${S}"/ || die
}
src_configure() {
econf \
$(use_enable kerberos gss) \
$(use_enable static-libs static)
}
src_install() {
default
insinto /etc
newins doc/etc_netconfig netconfig
insinto /usr/include/tirpc
doins -r "${WORKDIR}"/tirpc/*
# 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
}

View File

@ -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>