--- /dev/null
+# ChangeLog for net-libs/nfsidmap
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/nfsidmap/ChangeLog,v 1.1 2004/12/31 04:28:04 vapier Exp $
+
+*nfsidmap-0.7 (30 Dec 2004)
+
+ 30 Dec 2004; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by Micheal Marineau #70732.
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 be05d3595cd0d43fbdab05c785b61458 nfsidmap-0.7.ebuild 899
+MD5 23dadb48d7c8553c552f2d7eb9f706c6 ChangeLog 352
+MD5 a3dd8511b8874ce1b494dce2472c709c metadata.xml 159
+MD5 0a11d058d4338b3bd649a4c402b60b21 files/digest-nfsidmap-0.7 64
+MD5 002c00b85ac1181c098ab90c84fc1dbf files/0.7-optional-ldap.patch 1078
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFB1NVcroRuSHgZdywRAnUzAKCR8mG1WqkHMYgFluGs22HoiHwFsgCfZ+/J
+rmPA5p+93p0jOGXtbjQ3s78=
+=SMu2
+-----END PGP SIGNATURE-----
--- /dev/null
+diff -ur nfsidmap-0.7.orig/libnfsidmap.c nfsidmap-0.7/libnfsidmap.c
+--- nfsidmap-0.7.orig/libnfsidmap.c 2004-12-30 23:14:59.417270096 -0500
++++ nfsidmap-0.7/libnfsidmap.c 2004-12-30 23:16:06.136127288 -0500
+@@ -143,12 +143,18 @@
+ }
+
+ extern struct trans_func nss_trans;
++#if defined(ENABLE_LDAP)
+ extern struct trans_func umichldap_trans;
+
+ #define TR_SIZE 2
++#else
++#define TR_SIZE 1
++#endif
+ static struct trans_func * t_array[TR_SIZE] = {
+ [0] = &nss_trans,
++#if defined(ENABLE_LDAP)
+ [1] = &umichldap_trans,
++#endif
+ };
+
+ int
+diff -ur nfsidmap-0.7.orig/umich_ldap.c nfsidmap-0.7/umich_ldap.c
+--- nfsidmap-0.7.orig/umich_ldap.c 2004-12-30 23:14:59.421269488 -0500
++++ nfsidmap-0.7/umich_ldap.c 2004-12-30 23:16:34.319842712 -0500
+@@ -32,6 +32,8 @@
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
++#if defined(ENABLE_LDAP)
++
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
+@@ -421,3 +423,5 @@
+ .gid_to_name = umichldap_gid_to_name,
+ .gss_princ_to_grouplist = umichldap_gss_princ_to_grouplist,
+ };
++
++#endif /* ENABLE_LDAP */
--- /dev/null
+MD5 5714447c076280f0ce00224798929541 nfsidmap-0.7.tar.gz 284446
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-fs</herd>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/nfsidmap/nfsidmap-0.7.ebuild,v 1.1 2004/12/31 04:28:04 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="NFSv4 ID <-> name mapping library"
+HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
+SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="ldap"
+
+DEPEND="ldap? ( net-nds/openldap )"
+RDEPEND="${DEPEND}
+ !net-fs/idmapd"
+
+src_unpack() {
+ unpack ${A}
+ cp -r ${S}{,.orig}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-optional-ldap.patch
+ use ldap \
+ && append-flags -DENABLE_LDAP \
+ || sed -i '/^LIBS/s:-lldap::' Makefile.in
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog NEWS README
+}