ports/153215: [patch] Update port net/nss_ldapd to version 0.7.13
Menshikov Konstantin
k.menshikov at peterhost.ru
Thu Dec 16 16:30:12 UTC 2010
>Number: 153215
>Category: ports
>Synopsis: [patch] Update port net/nss_ldapd to version 0.7.13
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 16 16:30:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Menshikov Konstantin
>Release: FreeBSD 8.1-RELEASE
>Organization:
>Environment:
FreeBSD nscd.kmenshikov.devel.hostcomm.ru 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Thu Sep 2 02:56:24 UTC 2010 root at tinderbox.infra.hc.ru:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Need update port net/nss_ldapd, because current nss_ldapd version 0.7.13 and current nss_ldapd version in ports tree 0.7.3.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN Makefile Makefile
--- Makefile 2010-12-09 01:50:15.000000000 +0000
+++ Makefile 2010-12-16 16:13:50.000000000 +0000
@@ -6,7 +6,7 @@
#
PORTNAME= nss_ldapd
-PORTVERSION= 0.7.3
+PORTVERSION= 0.7.13
CATEGORIES= net
MASTER_SITES= http://arthurdejong.org/nss-pam-ldapd/ \
http://static.ipfw.ru/files/
@@ -43,7 +43,8 @@
CONFIGURE_ARGS+= --with-nslcd-pidfile=${NSLCD_PIDFILE} \
--with-nslcd-socket=${NSLCD_SOCKET} \
- --with-ldap-lib=openldap --disable-kerberos
+ --with-ldap-lib=openldap --disable-kerberos \
+ --with-nss-ldap-soname=nss_ldap.so.1
.if defined(WITHOUT_NSS)
.undef NSS_COMPAT
diff -ruN distinfo distinfo
--- distinfo 2010-05-14 13:23:00.000000000 +0000
+++ distinfo 2010-12-16 13:37:42.000000000 +0000
@@ -1,3 +1,2 @@
-MD5 (nss-pam-ldapd-0.7.3.tar.gz) = 688833d959f1878a139d484e980d160e
-SHA256 (nss-pam-ldapd-0.7.3.tar.gz) = db300db75fdf7ab74fae8fcb7cfecb5adace49ecf715d308581b22575bc128da
-SIZE (nss-pam-ldapd-0.7.3.tar.gz) = 443042
+SHA256 (nss-pam-ldapd-0.7.13.tar.gz) = 1bdba144669ac3220162d59bafe5ba4f83404f520bc9ead58b179745c82b8d4a
+SIZE (nss-pam-ldapd-0.7.13.tar.gz) = 478944
diff -ruN files/patch-nss__ldap.map files/patch-nss__ldap.map
--- files/patch-nss__ldap.map 1970-01-01 00:00:00.000000000 +0000
+++ files/patch-nss__ldap.map 2010-12-16 13:48:12.000000000 +0000
@@ -0,0 +1,30 @@
+--- ./nss/nss_ldap.map.orig 2010-09-24 07:07:18.000000000 +0000
++++ ./nss/nss_ldap.map 2010-12-16 13:13:25.000000000 +0000
+@@ -81,6 +78,27 @@
+ _nss_ldap_getspent_r;
+ _nss_ldap_endspent;
+
++ # compat 4 bsd
++ __nss_compat_getgrnam_r;
++ __nss_compat_getgrgid_r;
++ __nss_compat_getgrent_r;
++ __nss_compat_setgrent;
++ __nss_compat_endgrent;
++
++ __nss_compat_getpwnam_r;
++ __nss_compat_getpwuid_r;
++ __nss_compat_getpwent_r;
++ __nss_compat_setpwent;
++ __nss_compat_endpwent;
++
++ __nss_compat_gethostbyname;
++ __nss_compat_gethostbyname2;
++ __nss_compat_gethostbyaddr;
++
++ # module init
++ nss_module_register;
++
++
+ # everything else should not be exported
+ local:
+ *;
diff -ruN files/patch-nss__prototypes.h files/patch-nss__prototypes.h
--- files/patch-nss__prototypes.h 2010-05-14 13:23:00.000000000 +0000
+++ files/patch-nss__prototypes.h 2010-12-16 15:57:25.000000000 +0000
@@ -1,33 +1,5 @@
--- nss/prototypes.h.orig 2009-09-04 15:55:35.000000000 +0400
+++ nss/prototypes.h 2009-12-20 15:37:57.000000000 +0300
-@@ -84,6 +86,27 @@
- void *nip; /* changed from `service_user *nip' */
- };
-
-+#ifdef __FreeBSD__
-+/*
-+ * Import from aliases.h
-+ */
-+struct aliasent
-+ {
-+ char *alias_name;
-+ size_t alias_members_len;
-+ char **alias_members;
-+ int alias_local;
-+ };
-+
-+struct rpcent
-+{
-+ char *r_name; /* Name of server for this rpc program. */
-+ char **r_aliases; /* Alias list. */
-+ int r_number; /* RPC program number. */
-+};
-+
-+#endif
-+
- /*
- These are prototypes for functions exported from the ldap NSS module.
- For more complete definitions of these functions check the GLIBC
@@ -166,10 +189,12 @@
enum nss_status _nss_ldap_getservent_r(struct servent *result,char *buffer,size_t buflen,int *errnop);
enum nss_status _nss_ldap_endservent(void);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list