7
noinst_PROGRAMS = nss_ldap.so $(authmod)
15
EXTRA_DIST = CVSVersionInfo.txt ChangeLog \
16
AUTHORS ANNOUNCE NEWS INSTALL README LICENSE.OpenLDAP COPYING\
17
ldap.conf nss_ldap.spec nsswitch.ldap
21
nss_ldap_so_SOURCES = ldap-nss.c ldap-pwd.c ldap-grp.c ldap-netgrp.c ldap-rpc.c \
22
ldap-hosts.c ldap-network.c ldap-proto.c ldap-spwd.c \
23
ldap-alias.c ldap-service.c ldap-schema.c ldap-ethers.c \
24
ldap-bp.c ldap-automount.c util.c ltf.c snprintf.c resolve.c \
25
dnsconfig.c irs-nss.c pagectrl.c ldap-sldap.c
27
nss_ldap_so_LDFLAGS = @nss_ldap_so_LDFLAGS@
29
NSS_LDAP_PATH_CONF = @NSS_LDAP_PATH_CONF@
30
NSS_LDAP_PATH_ROOTPASSWD = @NSS_LDAP_PATH_ROOTPASSWD@
32
NSS_LDAP_SOURCES = ldap-nss.c ldap-grp.c ldap-pwd.c ldap-netgrp.c ldap-schema.c \
33
util.c ltf.c snprintf.c resolve.c dnsconfig.c \
34
irs-nss.c pagectrl.c aix_authmeth.c
36
NSS_LDAP_LDFLAGS = @NSS_LDAP_LDFLAGS@
38
#INCLUDES = -I$(top_builddir) -I$(srcdir)
41
LIBC_VERS = `ls /lib/libc-*.so | tail -n 1 |sed -e 's/\/lib\/libc-\(.*\)\.so/\1/'`
42
NSS_LDAP_LIBC_VERSIONED = libnss_ldap-$(LIBC_VERS).so
44
NSS_VERS = $(shell ls /lib/libnss_files.so.? | tail -n 1 | sed -e 's/\/lib\/libnss_files\.so\.\(.*\)/\1/')
45
NSS_LDAP_NSS_VERSIONED = libnss_ldap.so.$(NSS_VERS)
49
NATIVE_LINK = $(nss_ldap_so_LD) $(AM_LDFLAGS) -o $@
51
GNU_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
54
# This is horrible but appears to be the only way to work with
55
# recent versions of automake. Any better ideas, let me know.
56
LINK = $(NATIVE_LINK) $(GNU_LINK)
60
# AIX install instructions per doc/README.AIX
62
install-exec-local: nss_ldap.so NSS_LDAP
63
$(mkinstalldirs) $(DESTDIR)$(libdir)/netsvc/dynload
64
$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) nss_ldap.so $(DESTDIR)$(libdir)/netsvc/dynload/nss_ldap.so
65
$(mkinstalldirs) $(DESTDIR)$(libdir)/security
66
$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) NSS_LDAP $(DESTDIR)$(libdir)/security/NSS_LDAP
70
# Linux, Solaris, other platform install instructions
72
install-exec-local: nss_ldap.so
75
-rm -f $(DESTDIR)$(libdir)/$(NSS_LDAP_LIBC_VERSIONED)
76
$(mkinstalldirs) $(DESTDIR)$(libdir)
77
$(INSTALL_PROGRAM) -D -o $(INST_UID) -g $(INST_GID) nss_ldap.so $(DESTDIR)$(libdir)/$(NSS_LDAP_LIBC_VERSIONED)
78
(cd $(DESTDIR)$(libdir); ln -sf $(NSS_LDAP_LIBC_VERSIONED) $(NSS_LDAP_NSS_VERSIONED))
79
$(mkinstalldirs) $(DESTDIR)/usr$(libdir)
80
(cd $(DESTDIR)/usr$(libdir); ln -sf ../..$(libdir)/$(NSS_LDAP_NSS_VERSIONED) .)
82
$(mkinstalldirs) $(DESTDIR)$(libdir)
84
$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) nss_ldap.so $(DESTDIR)$(libdir)/libnss_ldap.1
86
$(INSTALL_PROGRAM) -o $(INST_UID) -g $(INST_GID) nss_ldap.so $(DESTDIR)$(libdir)/nss_ldap.so.1
87
(cd $(DESTDIR)$(libdir); rm -f nss_ldap.so; ln -s nss_ldap.so.1 nss_ldap.so)
95
@if test ! -f $(DESTDIR)$(NSS_LDAP_PATH_CONF); then \
96
$(mkinstalldirs) $(DESTDIR)$(dir $(NSS_LDAP_PATH_CONF)); \
97
$(INSTALL_DATA) -o $(INST_UID) -g $(INST_GID) $(srcdir)/ldap.conf $(DESTDIR)$(NSS_LDAP_PATH_CONF); \
99
$(INSTALL_DATA) -o $(INST_UID) -g $(INST_GID) $(srcdir)/nsswitch.ldap $(DESTDIR)$(sysconfdir)/nsswitch.ldap;