source: branches/fc11-dev/server/fedora/specs/nss-ldapd.spec.patch @ 2527

Last change on this file since 2527 was 1144, checked in by mitchb, 15 years ago
Version, context, etc. fixups to build nss-ldapd on Fedora 11
File size: 2.2 KB
RevLine 
[1144]1--- nss-ldapd.spec.orig 2009-03-30 04:33:50.000000000 -0400
2+++ nss-ldapd.spec      2009-06-03 03:18:49.000000000 -0400
3@@ -19,18 +19,19 @@
[912]4 
[1144]5 
[912]6 Name:           nss-ldapd
7-BuildRequires:  db-devel krb5-devel openldap2-devel
8+BuildRequires:  db4-devel krb5-devel openldap-devel autoconf automake libtool
[1144]9+Conflicts:      nss_ldap
[912]10 License:        LGPL v2.1 or later
11 Group:          Productivity/Networking/LDAP/Clients
[1144]12 AutoReqProv:    on
13 PreReq:         /bin/chmod
14 Conflicts:      nss_ldap
15 Version:        0.6.8
16-Release:        2.1
17+Release:        2.1.scripts.%{scriptsversion}
18 Summary:        NSS module and daemon for using LDAP as a naming service
19 Url:            http://ch.tudelft.nl/~arthur/nss-ldapd/
[912]20 Source:         nss-ldapd-%{version}.tar.bz2
21-Source1:        rc.nslcd
22+Patch1000:      rc.nslcd.patch
[1144]23 Source100:      nss-ldapd-0.6.8-rpmlintrc
[912]24 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
25 
[1144]26@@ -52,7 +53,7 @@
[912]27 
28 %prep
29 %setup -q
30-cp -v %{S:1} .
31+%patch1000 -p0 -b .rc
32 
33 %build
34 %{?suse_update_config:%{suse_update_config -f}}
[1144]35@@ -72,7 +73,6 @@
[912]36 mkdir -p $RPM_BUILD_ROOT/etc/init.d/
37 mkdir -p $RPM_BUILD_ROOT/usr/sbin/
38 install -m 755 rc.nslcd $RPM_BUILD_ROOT/etc/init.d/nslcd
39-ln -sf ../../etc/init.d/nslcd $RPM_BUILD_ROOT/usr/sbin/rcnslcd
40 make DESTDIR=$RPM_BUILD_ROOT install
41 mkdir -p $RPM_BUILD_ROOT/var/run/nslcd
42 install -m 644 man/nss-ldapd.conf.5 $RPM_BUILD_ROOT/usr/share/man/man5
[1144]43@@ -88,13 +88,8 @@
44     /bin/chmod 640 /etc/nss-ldapd.conf
45 fi
[913]46 
47-%preun
48-%stop_on_removal nslcd
49-
50 %postun
51 /sbin/ldconfig
52-%restart_on_update nslcd
53-%insserv_cleanup
54 
55 %files
56 %defattr(-,root,root)
[1144]57@@ -104,7 +99,6 @@
[912]58 %doc %{_mandir}/man8/*
[1144]59 %config(noreplace) %attr(640,root,root) /etc/nss-ldapd.conf
[912]60 %config /etc/init.d/nslcd
61-/usr/sbin/rcnslcd
62 %dir /var/run/nslcd
63 /usr/sbin/nslcd
64 
[1144]65@@ -129,6 +123,10 @@
66 - Adjust config file permissions upon update, to fix world-readable
67   /etc/nss-ldapd.conf as created by older versions
68   (bnc#487737, CVE-2009-1073)
[912]69+* Wed Dec 31 2008  <quentin@mit.edu> - 0.6.4-3.0
70+- add init script for Fedora
71+* Wed Dec 31 2008  <quentin@mit.edu> - 0.6.4-2.4
72+- port from openSUSE to Fedora
[1144]73 * Fri Aug 15 2008 rhafer@suse.de
74 - Fixed "Required-Stop" Tag to include the same services as
75   "Required-Start"
Note: See TracBrowser for help on using the repository browser.