aboutsummaryrefslogtreecommitdiff
path: root/net/nss_ldap/files
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-01-18 03:43:56 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-01-18 03:43:56 +0000
commit0301fa9b0949f863bb6e4f7ffb7d66c4d365c72c (patch)
treed41d2a6bfd0e7f57baf3133d57f093d20d7afa64 /net/nss_ldap/files
parent380457953cbe79a29ee6df2334c8e1df273ec699 (diff)
downloadports-0301fa9b0949f863bb6e4f7ffb7d66c4d365c72c.tar.gz
ports-0301fa9b0949f863bb6e4f7ffb7d66c4d365c72c.zip
Notes
Diffstat (limited to 'net/nss_ldap/files')
-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
3 files changed, 57 insertions, 16 deletions
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
+