dcallagh-exheres

My personal Exherbo repository
git clone https://code.djc.id.au/git/dcallagh-exheres/
commit 90db6fa29aa72d9c982b014c63e13b76b755c421
parent 2cecde99844d7834131bfb029d0d38e0d0ee05ff
Author: Dan Callaghan <djc@djc.id.au>
Date:   Mon,  4 Oct 2010 23:23:02 +1000

pam_ldap-185 and nss_ldap-265

Diffstat:
Ametadata/categories.conf | 1+
Apackages/sys-auth/nss_ldap/files/nss_ldap-265-vers_string.patch | 11+++++++++++
Apackages/sys-auth/nss_ldap/nss_ldap-265.exheres-0 | 45+++++++++++++++++++++++++++++++++++++++++++++
Apackages/sys-auth/pam_ldap/files/pam_ldap-185-vers_string.patch | 8++++++++
Apackages/sys-auth/pam_ldap/pam_ldap-185.exheres-0 | 36++++++++++++++++++++++++++++++++++++
5 files changed, 101 insertions(+), 0 deletions(-)
diff --git a/metadata/categories.conf b/metadata/categories.conf
@@ -0,0 +1 @@
+sys-auth
diff --git a/packages/sys-auth/nss_ldap/files/nss_ldap-265-vers_string.patch b/packages/sys-auth/nss_ldap/files/nss_ldap-265-vers_string.patch
@@ -0,0 +1,11 @@
+Upstream: http://old.nabble.com/nss_ldap-265-td26230441.html#a26236814
+
+--- nss_ldap-265.orig/Makefile.am	2009-11-06 20:28:08.000000000 +1000
++++ nss_ldap-265/Makefile.am	2010-10-04 20:34:30.406862018 +1000
+@@ -109,5 +109,5 @@
+ 	@$(NORMAL_UNINSTALL)
+ 
+ vers.c: $(top_srcdir)/CVSVersionInfo.txt
+-	CVSVERSIONDIR=$(top_srcdir) vers_string -v
++	CVSVERSIONDIR=$(top_srcdir) $(top_srcdir)/vers_string -v
+ 
diff --git a/packages/sys-auth/nss_ldap/nss_ldap-265.exheres-0 b/packages/sys-auth/nss_ldap/nss_ldap-265.exheres-0
@@ -0,0 +1,45 @@
+# Copyright 2010 Dan Callaghan <djc@djc.id.au>
+# Distributed under the terms of the GNU General Public License v2
+# Derived from nss_ldap-265.ebuild from Gentoo, which is:
+#   Copyright 1999-2010 Gentoo Foundation
+
+require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.9 ] ]
+
+SUMMARY="Name Service Switch resolver for LDAP"
+DESCRIPTION="
+Resolves passwd and group entries from LDAP.
+Use in conjunction with pam_ldap.
+"
+HOMEPAGE="http://www.padl.com/OSS/nss_ldap.html"
+DOWNLOADS="http://www.padl.com/download/${PNV}.tar.gz"
+
+LICENCES="LGPL-2"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS="debug"
+
+DEPENDENCIES="
+    build:
+        dev-lang/perl [[ description = [ for ./vers_string script ] ]]
+    build+run:
+        net-directory/openldap[>=2.4.21]
+"
+
+BUGS_TO=""
+
+src_prepare() {
+    expatch -p1 "${FILES}"/nss_ldap-265-vers_string.patch
+    eautoreconf
+}
+
+src_configure() {
+    econf \
+        --hates=disable-silent-rules \
+        --hates=enable-fast-install \
+        --libdir=/${LIBDIR:-lib} \
+        # --disable-debugging does the opposite! grr
+        $(if optionq debug ; then echo --enable-debugging ; fi) \
+        --enable-paged-results \
+        --enable-rfc2307bis \
+        --with-ldap-lib=openldap
+}
diff --git a/packages/sys-auth/pam_ldap/files/pam_ldap-185-vers_string.patch b/packages/sys-auth/pam_ldap/files/pam_ldap-185-vers_string.patch
@@ -0,0 +1,8 @@
+--- pam_ldap-185.orig/Makefile.am	2009-11-06 20:29:34.000000000 +1000
++++ pam_ldap-185/Makefile.am	2010-10-04 22:23:06.301562203 +1000
+@@ -44,4 +44,4 @@
+ 	@$(NORMAL_UNINSTALL)
+ 
+ vers.c: $(top_srcdir)/CVSVersionInfo.txt
+-	CVSVERSIONDIR=$(top_srcdir) vers_string -v
++	CVSVERSIONDIR=$(top_srcdir) $(top_srcdir)/vers_string -v
diff --git a/packages/sys-auth/pam_ldap/pam_ldap-185.exheres-0 b/packages/sys-auth/pam_ldap/pam_ldap-185.exheres-0
@@ -0,0 +1,36 @@
+# Copyright 2010 Dan Callaghan <djc@djc.id.au>
+# Distributed under the terms of the GNU General Public License v2
+
+require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.9 ] ]
+
+SUMMARY="PAM module for authenticating against LDAP"
+DESCRIPTION="
+Provides a PAM module (pam_ldap.so) which can authenticate users with
+their credentials from an LDAP directory.
+Use in conjunction with nss_ldap.
+"
+HOMEPAGE="http://www.padl.com/OSS/pam_ldap.html"
+DOWNLOADS="http://www.padl.com/download/${PNV}.tar.gz"
+
+LICENCES="LGPL-2"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS="ssl"
+
+DEPENDENCIES="
+    build:
+        dev-lang/perl [[ description = [ for ./vers_string script ] ]]
+    build+run:
+        net-directory/openldap[>=2.4.21]
+"
+
+BUGS_TO=""
+
+DEFAULT_SRC_CONFIGURE_PARAMS=( --libdir=/${LIBDIR:-lib} --with-ldap-lib=openldap )
+DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( )
+DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( ssl )
+
+src_prepare() {
+    expatch -p1 "${FILES}"/pam_ldap-185-vers_string.patch
+    eautoreconf
+}