[911] | 1 | # |
---|
| 2 | # spec file for package nss_ldap (Version 256) |
---|
| 3 | # |
---|
| 4 | # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. |
---|
| 5 | # This file and all modifications and additions to the pristine |
---|
| 6 | # package are under the same license as the package itself. |
---|
| 7 | # |
---|
| 8 | # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
---|
| 9 | # |
---|
| 10 | |
---|
| 11 | # norootforbuild |
---|
| 12 | |
---|
| 13 | Name: nss-ldapd |
---|
| 14 | BuildRequires: db4-devel krb5-devel openldap-devel autoconf automake libtool |
---|
| 15 | License: LGPL v2.1 or later |
---|
| 16 | Group: Productivity/Networking/LDAP/Clients |
---|
| 17 | Autoreqprov: on |
---|
| 18 | Version: 0.6.4 |
---|
| 19 | Release: 2.4 |
---|
| 20 | Summary: NSS LDAP Daemon and Module |
---|
| 21 | URL: http://ch.tudelft.nl/~arthur/nss-ldapd/ |
---|
| 22 | Source: nss-ldapd-%{version}.tar.bz2 |
---|
| 23 | Source1: rc.nslcd |
---|
| 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | Nss-ldapd is a fork of the nss_ldap package by PADL Software Pty Ltd.. This |
---|
| 28 | fork was done to implement some structural design changes. These changes were |
---|
| 29 | needed because there are some issues with the original design. |
---|
| 30 | |
---|
| 31 | Authors: |
---|
| 32 | -------- |
---|
| 33 | Luke Howard <lukeh@padl.com> |
---|
| 34 | West Consulting <info@west.nl> |
---|
| 35 | Arthur de Jong <arthur@ch.tudelft.nl> |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q |
---|
| 39 | cp -v %{S:1} . |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | %{?suse_update_config:%{suse_update_config -f}} |
---|
| 43 | autoreconf |
---|
| 44 | CFLAGS="$RPM_OPT_FLAGS" \ |
---|
| 45 | CPPFLAGS="-I/usr/include/sasl" \ |
---|
| 46 | ./configure --prefix=/usr \ |
---|
| 47 | --mandir=%{_mandir} \ |
---|
| 48 | --enable-schema-mapping \ |
---|
| 49 | --enable-paged-results \ |
---|
| 50 | --enable-configurable-krb5-ccname-gssapi \ |
---|
| 51 | --libdir=/%{_lib} \ |
---|
| 52 | --sysconfdir=/etc |
---|
| 53 | make |
---|
| 54 | |
---|
| 55 | %install |
---|
| 56 | mkdir -p $RPM_BUILD_ROOT/etc/init.d/ |
---|
| 57 | mkdir -p $RPM_BUILD_ROOT/usr/sbin/ |
---|
| 58 | install -m 755 rc.nslcd $RPM_BUILD_ROOT/etc/init.d/nslcd |
---|
| 59 | ln -sf ../../etc/init.d/nslcd $RPM_BUILD_ROOT/usr/sbin/rcnslcd |
---|
| 60 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 61 | mkdir -p $RPM_BUILD_ROOT/var/run/nslcd |
---|
| 62 | install -m 644 man/nss-ldapd.conf.5 $RPM_BUILD_ROOT/usr/share/man/man5 |
---|
| 63 | install -m 644 man/nslcd.8 $RPM_BUILD_ROOT/usr/share/man/man8 |
---|
| 64 | |
---|
| 65 | %clean |
---|
| 66 | rm -fr $RPM_BUILD_ROOT |
---|
| 67 | |
---|
| 68 | %post |
---|
| 69 | /sbin/ldconfig |
---|
| 70 | |
---|
| 71 | %preun |
---|
| 72 | %stop_on_removal nslcd |
---|
| 73 | |
---|
| 74 | %postun |
---|
| 75 | /sbin/ldconfig |
---|
| 76 | %restart_on_update nslcd |
---|
| 77 | %insserv_cleanup |
---|
| 78 | |
---|
| 79 | %files |
---|
| 80 | %defattr(-,root,root) |
---|
| 81 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
| 82 | /%{_lib}/libnss_ldap.so.2 |
---|
| 83 | %doc %{_mandir}/man5/* |
---|
| 84 | %doc %{_mandir}/man8/* |
---|
| 85 | %config(noreplace) /etc/nss-ldapd.conf |
---|
| 86 | %config /etc/init.d/nslcd |
---|
| 87 | /usr/sbin/rcnslcd |
---|
| 88 | %dir /var/run/nslcd |
---|
| 89 | /usr/sbin/nslcd |
---|
| 90 | |
---|
| 91 | %changelog |
---|
| 92 | * Wed Dec 31 2008 <quentin@mit.edu> - 0.6.4-2.4 |
---|
| 93 | - port from openSUSE to Fedora |
---|
| 94 | * Wed Aug 6 2008 rhafer@suse.de |
---|
| 95 | - rename init script to nslcd to match the name of the daemon |
---|
| 96 | binary |
---|
| 97 | * Wed Aug 6 2008 rhafer@suse.de |
---|
| 98 | - updated to nss-ldapd-0.6.4 |
---|
| 99 | * fix for the tls_checkpeer option |
---|
| 100 | * fix incorrect test for ssl option in combination with ldaps:// URIs |
---|
| 101 | * improvements to Active Directory sample configuration |
---|
| 102 | * implement looking up search base in rootDSE of LDAP server |
---|
| 103 | * Mon Jun 16 2008 rhafer@suse.de |
---|
| 104 | - updated to nss-ldapd-0.6.3 |
---|
| 105 | * retry connection and search if getting results failed with connection |
---|
| 106 | * problems (some errors only occur when getting the results, not when |
---|
| 107 | starting the search) |
---|
| 108 | * add support for groups with up to around 150000 members (assuming user |
---|
| 109 | names on average are a little under 10 characters) |
---|
| 110 | * problem with possible SIGPIPE race condition was fixed by using send() |
---|
| 111 | instead of write() |
---|
| 112 | * add uid and gid configuration keywords that set the user and group of the |
---|
| 113 | nslcd daemon |
---|
| 114 | * add some documentation on supported group to member mappings |
---|
| 115 | * add sanity checking to code for when clock moves backward |
---|
| 116 | * log messages now include a session id that makes it easier to track errors |
---|
| 117 | to requests (especially useful in debugging mode) |
---|
| 118 | * miscellaneous portability improvements |
---|
| 119 | * increase buffers and timeouts to handle large lookups more gracefully |
---|
| 120 | * implement SASL authentication based on a patch by Dan White |
---|
| 121 | * allow more characters in user and group names |
---|
| 122 | * Mon Feb 11 2008 rhafer@suse.de |
---|
| 123 | - updated to nss-ldapd-0.6 |
---|
| 124 | * Mon Jan 7 2008 rhafer@suse.de |
---|
| 125 | - updated to nss-ldapd-0.5 |
---|
| 126 | * Fri Nov 16 2007 rhafer@suse.de |
---|
| 127 | - Added patches configuration by SRV records |
---|
| 128 | - Added patch to re-enable use_sasl and krb5_ccname |
---|
| 129 | * Mon Oct 29 2007 rhafer@suse.de |
---|
| 130 | - updated to nss-ldapd-0.4.1 |
---|
| 131 | * Thu Oct 11 2007 rhafer@suse.de |
---|
| 132 | - updated to nss-ldapd-0.4 |
---|
| 133 | * Thu Aug 30 2007 rhafer@suse.de |
---|
| 134 | - updated to nss-ldapd-0.3 |
---|
| 135 | * Mon Jul 30 2007 rhafer@suse.de |
---|
| 136 | - initial version for nss-ldapd-0.2.1 |
---|