aboutsummaryrefslogtreecommitdiffstats
path: root/net/nss_ldap
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2010-01-18 11:43:56 +0800
committerpgollucci <pgollucci@FreeBSD.org>2010-01-18 11:43:56 +0800
commit9859f909ea027030516d0beba900b8bc3c0f590a (patch)
treee618525fe324dd4424bcb39774a691f7f73b569a /net/nss_ldap
parentadd65bf2f016780b89cc51baff7e049c6beed0ed (diff)
downloadfreebsd-ports-gnome-9859f909ea027030516d0beba900b8bc3c0f590a.tar.gz
freebsd-ports-gnome-9859f909ea027030516d0beba900b8bc3c0f590a.tar.zst
freebsd-ports-gnome-9859f909ea027030516d0beba900b8bc3c0f590a.zip
- Update to 1.265
- Submitted is now MAINTAINER Major upgrade-related fixes (from upstream): - Version info now in binary - Fix broken ethers LDAP query - FD leak cleanup Fixes in port: - Re-enable many nss classes that were disabled (ethers, netgroups) - Fix compile-time breakage in ldap-ethers code (Better fix going upstream when I have time) *** Note: Ethers and Netgroup support aren't thoroughly tested as I don't use these in my environment. Re-enabling them doesn't seem to cause any problems, so they're back on in accordance with POLA. PRs/test cases for these are welcome if anyone finds breakage. PR: ports/141931 Submitted by: Michael Graziano <mikeg@bsd-box.net>
Diffstat (limited to 'net/nss_ldap')
-rw-r--r--net/nss_ldap/Makefile4
-rw-r--r--net/nss_ldap/distinfo6
-rw-r--r--net/nss_ldap/files/patch-Makefile.am30
-rw-r--r--net/nss_ldap/files/patch-ldap-ethers.c32
-rw-r--r--net/nss_ldap/files/patch-ldap-ethers.h11
5 files changed, 62 insertions, 21 deletions
diff --git a/net/nss_ldap/Makefile b/net/nss_ldap/Makefile
index 61ba5e93cdfb..089ea82a1715 100644
--- a/net/nss_ldap/Makefile
+++ b/net/nss_ldap/Makefile
@@ -12,10 +12,10 @@ CATEGORIES= net
MASTER_SITES= http://www.padl.com/download/
DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= mikeg@bsd-box.net
COMMENT= RFC 2307 NSS module
-NSS_LDAP_VERSION=264
+NSS_LDAP_VERSION=265
GNU_CONFIGURE= yes
USE_GMAKE= yes
diff --git a/net/nss_ldap/distinfo b/net/nss_ldap/distinfo
index d140aaed16b9..6e10f4020466 100644
--- a/net/nss_ldap/distinfo
+++ b/net/nss_ldap/distinfo
@@ -1,3 +1,3 @@
-MD5 (nss_ldap-264.tar.gz) = eebab40c6ce2f54e5c377b4895c0c93a
-SHA256 (nss_ldap-264.tar.gz) = 556198f2774bdb61a597da3fa8a5ecc80a3271ed9ab177760df7c4f22d6b1d25
-SIZE (nss_ldap-264.tar.gz) = 278134
+MD5 (nss_ldap-265.tar.gz) = c1cb02d1a85538cf16bca6f6a562abe4
+SHA256 (nss_ldap-265.tar.gz) = 77b54d905f50d774f28d5559d49126f1bc76720f741b0864a64bb4936ec226a8
+SIZE (nss_ldap-265.tar.gz) = 280976
diff --git a/net/nss_ldap/files/patch-Makefile.am b/net/nss_ldap/files/patch-Makefile.am
index b7a449ebb500..b80b932ff440 100644
--- a/net/nss_ldap/files/patch-Makefile.am
+++ b/net/nss_ldap/files/patch-Makefile.am
@@ -1,5 +1,5 @@
---- Makefile.am.orig 2007-10-29 06:30:12.000000000 -0700
-+++ Makefile.am 2008-09-26 20:44:49.000000000 -0700
+--- Makefile.am.orig 2009-11-06 05:28:08.000000000 -0500
++++ Makefile.am 2010-01-12 23:24:17.000000000 -0500
@@ -9,8 +9,12 @@
if AIX
INST_GID=system
@@ -13,23 +13,16 @@
EXTRA_DIST = CVSVersionInfo.txt ChangeLog \
AUTHORS ANNOUNCE NEWS INSTALL README LICENSE.OpenLDAP COPYING\
-@@ -18,11 +22,10 @@
-
- man_MANS = nss_ldap.5
-
--nss_ldap_so_SOURCES = ldap-nss.c ldap-pwd.c ldap-grp.c ldap-netgrp.c ldap-rpc.c \
-- ldap-hosts.c ldap-network.c ldap-proto.c ldap-spwd.c \
-- ldap-alias.c ldap-service.c ldap-schema.c ldap-ethers.c \
-- ldap-bp.c ldap-automount.c util.c ltf.c snprintf.c resolve.c \
-- dnsconfig.c irs-nss.c pagectrl.c ldap-sldap.c ldap-init-krb5-cache.c
-+nss_ldap_so_SOURCES = \
-+ ldap-nss.c ldap-pwd.c ldap-grp.c ldap-hosts.c ldap-schema.c \
-+ util.c ltf.c snprintf.c resolve.c dnsconfig.c irs-nss.c pagectrl.c \
-+ ldap-init-krb5-cache.c bsdnss.c
+@@ -23,7 +27,7 @@
+ ldap-alias.c ldap-service.c ldap-schema.c ldap-ethers.c \
+ ldap-bp.c ldap-automount.c util.c ltf.c snprintf.c resolve.c \
+ dnsconfig.c irs-nss.c pagectrl.c ldap-sldap.c ldap-init-krb5-cache.c \
+- vers.c
++ vers.c bsdnss.c
nss_ldap_so_LDFLAGS = @nss_ldap_so_LDFLAGS@
-@@ -102,7 +105,6 @@
+@@ -103,11 +107,10 @@
$(mkinstalldirs) $(DESTDIR)$(dir $(NSS_LDAP_PATH_CONF)); \
$(INSTALL_DATA) -o $(INST_UID) -g $(INST_GID) $(srcdir)/ldap.conf $(DESTDIR)$(NSS_LDAP_PATH_CONF); \
fi
@@ -37,3 +30,8 @@
uninstall-local:
@$(NORMAL_UNINSTALL)
+
+ vers.c: $(top_srcdir)/CVSVersionInfo.txt
+- CVSVERSIONDIR=$(top_srcdir) vers_string -v
++ $(top_srcdir)/vers_string -v
+
diff --git a/net/nss_ldap/files/patch-ldap-ethers.c b/net/nss_ldap/files/patch-ldap-ethers.c
new file mode 100644
index 000000000000..f47eb1e4e744
--- /dev/null
+++ b/net/nss_ldap/files/patch-ldap-ethers.c
@@ -0,0 +1,32 @@
+--- ldap-ethers.c.orig 2009-11-06 10:28:08.000000000 +0000
++++ ldap-ethers.c 2009-12-23 17:01:14.000000000 +0000
+@@ -217,9 +217,9 @@
+ }
+
+ snprintf(fullmac, sizeof(fullmac), "%02x:%02x:%02x:%02x:%02x:%02x",
+- addr->ether_addr_octet[0], addr->ether_addr_octet[1],
+- addr->ether_addr_octet[2], addr->ether_addr_octet[3],
+- addr->ether_addr_octet[4], addr->ether_addr_octet[5]);
++ addr->octet[0], addr->octet[1],
++ addr->octet[2], addr->octet[3],
++ addr->octet[4], addr->octet[5]);
+
+ LA_INIT(a);
+ LA_STRING(a) = ether_ntoa(addr);
+@@ -343,14 +343,14 @@
+ if (i != 6)
+ return NULL;
+ for (i = 0; i < 6; i++)
+- ep.ether_addr_octet[i] = t[i];
++ ep.octet[i] = t[i];
+
+ return &ep;
+ }
+ #endif /* !HAVE_ETHER_ATON */
+
+ #ifndef HAVE_ETHER_NTOA
+-#define EI(i) (unsigned int)(e->ether_addr_octet[(i)])
++#define EI(i) (unsigned int)(e->octet[(i)])
+ static char *ether_ntoa (const struct ether_addr *e)
+ {
+ static char s[18];
diff --git a/net/nss_ldap/files/patch-ldap-ethers.h b/net/nss_ldap/files/patch-ldap-ethers.h
new file mode 100644
index 000000000000..aa71da96e22d
--- /dev/null
+++ b/net/nss_ldap/files/patch-ldap-ethers.h
@@ -0,0 +1,11 @@
+--- ldap-ethers.h.orig 2009-11-06 10:28:08.000000000 +0000
++++ ldap-ethers.h 2009-12-23 17:02:06.000000000 +0000
+@@ -32,7 +32,7 @@
+
+ #ifndef HAVE_STRUCT_ETHER_ADDR
+ struct ether_addr {
+- u_char ether_addr_octet[6];
++ u_char octet[6];
+ };
+ #endif
+