]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - nss_ldap/nss_ldap.nm
gobject-introspection: Update to 1.39.3.
[people/ms/ipfire-3.x.git] / nss_ldap / nss_ldap.nm
CommitLineData
a3869d0f 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
a3869d0f
SS
4###############################################################################
5
802ea3af
MT
6name = nss_ldap
7version = 265
f842bf62 8release = 5
a3869d0f 9
802ea3af
MT
10groups = System/Base
11url = http://www.padl.com/
12license = LGPLv2+
13summary = NSS library and PAM module for LDAP.
a3869d0f 14
802ea3af
MT
15description
16 This package includes two LDAP access clients: nss_ldap and
17 pam_ldap. Nss_ldap is a set of C library extensions that allow
18 X.500 and LDAP directory servers to be used as a primary source
19 of aliases, ethers, groups, hosts, networks, protocol, users,
a3869d0f 20 RPCs, services, and shadow passwords.
802ea3af 21end
a3869d0f 22
f842bf62 23source_dl = http://www.padl.com/download/
a3869d0f 24
802ea3af 25patches = \
6679571b
MT
26 nss_ldap-265-depth.patch \
27 nss_ldap-254-soname.patch \
28 nss_ldap-257-mozldap.patch \
29 nss_ldap-259-res_init.patch \
30 nss_ldap-264-checkcase.patch \
31 nss_ldap-265-ent_internal.patch \
32 nss_ldap-264-cloexec.patch \
33 nss_ldap-265-local_users.patch \
34 nss_ldap-265-erange.patch \
35 nss_ldap-265-initgroups-minimum_uid.patch \
36 nss_ldap-265-fix-uninit.patch \
37 nss_ldap-265-padl-bug-418.patch \
38 nss_ldap-265-setnetgrent.patch
39
802ea3af
MT
40build
41 requires
42 autoconf
43 automake
44 cyrus-sasl-devel
45 openldap-devel
46 end
47
48 configure_options += \
49 --sysconfdir=/etc \
802ea3af
MT
50 --with-ldap-lib=openldap \
51 --enable-rfc2307bis \
52 --with-ldap-conf-file=/etc/nss_ldap.conf \
53 --with-ldap-secret-file=/etc/nss_ldap.secret
54
55 prepare_cmds
56 sed -i -e 's,^ldap.conf$$,nss_ldap.conf,g' *.5
57 sed -i -e 's,^/etc/ldap\.,/etc/nss_ldap.,g' *.5
58 sed -i -e 's,ldap.secret,nss_ldap.secret,g' *.5
59 sed -i -e 's,(ldap.conf),(nss_ldap.conf),g' *.5
60
61 # Fix call for vers_string.
62 sed -e "s/vers_string/.\/&/g" -i Makefile*
63
64 autoreconf -vfi
65 end
66
67 make_build_targets += \
68 LDFLAGS="-Wl,-z,nodelete"
69
70 make_install_targets += \
71 LIBC_VERS=%{version}
72
73 install_cmds
74 # Remove awkward directory
75 rm -rvf %{BUILDROOT}/usr/usr
76
f842bf62
MT
77 if [ -e "%{BUILDROOT}%{libdir}/libnss_ldap-%{version}.so" ]; then
78 ln -svf libnss_ldap-%{version}.so %{BUILDROOT}%{libdir}/libnss_ldap.so.2
79 ln -svf libnss_ldap.so.2 %{BUILDROOT}%{libdir}/libnss_ldap.so
80 fi
802ea3af
MT
81
82 rm -vf %{BUILDROOT}/etc/nsswitch.ldap
83
84 cd %{DIR_APP} && sed 's|dc=padl|dc=example|g' ldap.conf > \
85 %{BUILDROOT}/etc/nss_ldap.conf
86 touch %{BUILDROOT}/etc/nss_ldap.secret
802ea3af
MT
87 end
88end
89
90packages
91 package %{name}
92 requires
e8c6b5d7
MT
93 %{libdir}/security/pam_ldap.so
94 end
95
96 configfiles
97 %{sysconfdir}/nss_ldap.conf
98 %{sysconfdir}/nss_ldap.secret
802ea3af
MT
99 end
100 end
1f9bc2f0
MT
101
102 package %{name}-debuginfo
103 template DEBUGINFO
104 end
802ea3af 105end