summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-31 04:28:04 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-31 04:28:04 +0000
commitf5dc2c3b64634502e7a987d0c731700923ac2212 (patch)
tree4339498db7c0d54fd2e6bedccdb000338735d607 /net-libs/nfsidmap
parentTook over as placeholder maintainer. Bumped to 3.7 while I was there (diff)
downloadhistorical-f5dc2c3b64634502e7a987d0c731700923ac2212.tar.gz
historical-f5dc2c3b64634502e7a987d0c731700923ac2212.tar.bz2
historical-f5dc2c3b64634502e7a987d0c731700923ac2212.zip
initial ebuild #70732
Diffstat (limited to 'net-libs/nfsidmap')
-rw-r--r--net-libs/nfsidmap/ChangeLog8
-rw-r--r--net-libs/nfsidmap/Manifest15
-rw-r--r--net-libs/nfsidmap/files/0.7-optional-ldap.patch40
-rw-r--r--net-libs/nfsidmap/files/digest-nfsidmap-0.71
-rw-r--r--net-libs/nfsidmap/metadata.xml5
-rw-r--r--net-libs/nfsidmap/nfsidmap-0.7.ebuild33
6 files changed, 102 insertions, 0 deletions
diff --git a/net-libs/nfsidmap/ChangeLog b/net-libs/nfsidmap/ChangeLog
new file mode 100644
index 000000000000..9beee537f2f5
--- /dev/null
+++ b/net-libs/nfsidmap/ChangeLog
@@ -0,0 +1,8 @@
+# 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.
diff --git a/net-libs/nfsidmap/Manifest b/net-libs/nfsidmap/Manifest
new file mode 100644
index 000000000000..8c740bc07115
--- /dev/null
+++ b/net-libs/nfsidmap/Manifest
@@ -0,0 +1,15 @@
+-----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-----
diff --git a/net-libs/nfsidmap/files/0.7-optional-ldap.patch b/net-libs/nfsidmap/files/0.7-optional-ldap.patch
new file mode 100644
index 000000000000..90c90ef9c9f6
--- /dev/null
+++ b/net-libs/nfsidmap/files/0.7-optional-ldap.patch
@@ -0,0 +1,40 @@
+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 */
diff --git a/net-libs/nfsidmap/files/digest-nfsidmap-0.7 b/net-libs/nfsidmap/files/digest-nfsidmap-0.7
new file mode 100644
index 000000000000..37b3a513d8e9
--- /dev/null
+++ b/net-libs/nfsidmap/files/digest-nfsidmap-0.7
@@ -0,0 +1 @@
+MD5 5714447c076280f0ce00224798929541 nfsidmap-0.7.tar.gz 284446
diff --git a/net-libs/nfsidmap/metadata.xml b/net-libs/nfsidmap/metadata.xml
new file mode 100644
index 000000000000..ca66751dee2f
--- /dev/null
+++ b/net-libs/nfsidmap/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>
diff --git a/net-libs/nfsidmap/nfsidmap-0.7.ebuild b/net-libs/nfsidmap/nfsidmap-0.7.ebuild
new file mode 100644
index 000000000000..b0c9c14d828b
--- /dev/null
+++ b/net-libs/nfsidmap/nfsidmap-0.7.ebuild
@@ -0,0 +1,33 @@
+# 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
+}