]>
Commit | Line | Data |
---|---|---|
fc65a79e | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
fc65a79e SS |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = pam_ldap |
7 | version = 186 | |
7d6aa181 | 8 | release = 3 |
fc65a79e | 9 | |
802ea3af MT |
10 | groups = System/Base |
11 | url = http://www.padl.com/OSS/pam_ldap.html | |
12 | license = GPL and LGPL | |
13 | summary = A pam/ldap module that supports password changes. | |
fc65a79e | 14 | |
802ea3af | 15 | description |
fc65a79e SS |
16 | The pam_ldap module provides the means for Solaris and Linux servers \ |
17 | and workstations to authenticate against LDAP directories, and to \ | |
18 | change their passwords in the directory. | |
802ea3af | 19 | end |
fc65a79e | 20 | |
09a030e4 SS |
21 | # Always change this if the nss_ldap package has been updated! |
22 | NSS_LDAP_VER = 265 | |
23 | ||
802ea3af MT |
24 | source_dl = |
25 | sources += nss_ldap-%{NSS_LDAP_VER}.tar.gz | |
26 | ||
27 | build | |
28 | requires | |
29 | autoconf | |
30 | automake | |
31 | openldap-devel | |
32 | pam-devel | |
33 | end | |
34 | ||
35 | configure_options += \ | |
802ea3af MT |
36 | --with-ldap-conf-file=/etc/pam_ldap.conf \ |
37 | --with-ldap-secret-file=/etc/pam_ldap.secret | |
38 | ||
39 | prepare_cmds | |
40 | # Extract source tarball of nss_ldap | |
41 | cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/nss_ldap-%{NSS_LDAP_VER}.tar.gz | |
42 | ||
43 | # Copy needed files from nss_ldap | |
44 | cd %{DIR_APP} && cp -av %{DIR_SRC}/nss_ldap-%{NSS_LDAP_VER}/resolve.c . | |
45 | cp -av %{DIR_SRC}/nss_ldap-%{NSS_LDAP_VER}/resolve.h . | |
46 | cp -av %{DIR_SRC}/nss_ldap-%{NSS_LDAP_VER}/snprintf.c . | |
47 | cp -av %{DIR_SRC}/nss_ldap-%{NSS_LDAP_VER}/snprintf.h . | |
48 | ||
49 | sed -i -e 's,^ldap.conf$$,pam_ldap.conf,g' *.5 | |
50 | sed -i -e 's,^/etc/ldap\.,/etc/pam_ldap.,g' *.5 | |
51 | sed -i -e 's,in ldap.co$nf,in pam_ldap.conf,g' *.5 | |
52 | sed -i -e 's,of ldap.conf,of pam_ldap.conf,g' *.5 | |
53 | sed -i -e 's,ldap.secret,pam_ldap.secret,g' *.5 | |
54 | sed -i -e 's,(ldap.conf),(pam_ldap.conf),g' *.5 | |
55 | ||
56 | autoreconf -f -i | |
57 | end | |
58 | ||
59 | make_build_targets += \ | |
60 | LDFLAGS="-Wl,-z,nodelete" | |
61 | ||
62 | install | |
63 | # Create directory layout | |
7d6aa181 | 64 | mkdir -pv %{BUILDROOT}/{etc,%{libdir}/security} |
802ea3af MT |
65 | |
66 | # Prevent to install an ldap.conf | |
67 | touch %{BUILDROOT}/etc/ldap.conf | |
68 | make install DESTDIR=%{BUILDROOT} | |
69 | rm -rvf %{BUILDROOT}/etc/ldap.conf | |
70 | ||
71 | # Install the default configuration file and change padl to example | |
72 | sed 's|dc=padl|dc=example|g' ldap.conf > %{BUILDROOT}/etc/pam_ldap.conf | |
73 | chmod 644 %{BUILDROOT}/etc/pam_ldap.conf | |
74 | ||
75 | # Create an empty ldap.secret file | |
76 | touch %{BUILDROOT}/etc/pam_ldap.secret | |
77 | end | |
78 | end | |
79 | ||
80 | packages | |
81 | package %{name} | |
7d6aa181 MT |
82 | conflicts |
83 | filesystem < 002 | |
84 | end | |
85 | end | |
1f9bc2f0 MT |
86 | |
87 | package %{name}-debuginfo | |
88 | template DEBUGINFO | |
89 | end | |
802ea3af | 90 | end |