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
commitcec02928c717c6b959891137cedfdb9b1d67e689 (patch)
tree28683a048f691ff05eaa1f107d8fb4afaf05d28b /net-libs
parentTook over as placeholder maintainer. Bumped to 3.7 while I was there (Manife... (diff)
downloadgentoo-2-cec02928c717c6b959891137cedfdb9b1d67e689.tar.gz
gentoo-2-cec02928c717c6b959891137cedfdb9b1d67e689.tar.bz2
gentoo-2-cec02928c717c6b959891137cedfdb9b1d67e689.zip
initial ebuild #70732
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/nfsidmap/ChangeLog8
-rw-r--r--net-libs/nfsidmap/Manifest2
-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, 89 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..714e512d24d7
--- /dev/null
+++ b/net-libs/nfsidmap/Manifest
@@ -0,0 +1,2 @@
+MD5 78d5f16ba6605e36df852e71b870038d nfsidmap-0.7.ebuild 506
+MD5 0a11d058d4338b3bd649a4c402b60b21 files/digest-nfsidmap-0.7 64
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
+}