source: trunk/server/fedora/specs/nss-ldapd.spec.patch @ 1277

Last change on this file since 1277 was 1273, checked in by mitchb, 15 years ago
Upgrade nss-ldapd to version 0.6.10
File size: 2.2 KB
  • nss-ldapd.spec

    old new  
    1919
    2020
    2121Name:           nss-ldapd
    22 BuildRequires:  db-devel krb5-devel openldap2-devel
     22BuildRequires:  db4-devel krb5-devel openldap-devel autoconf automake libtool
    2323License:        LGPL v2.1 or later
    2424Group:          Productivity/Networking/LDAP/Clients
    2525AutoReqProv:    on
    2626PreReq:         /bin/chmod
    2727Conflicts:      nss_ldap
    2828Version:        0.6.10
    29 Release:        6.2
     29Release:        6.2.scripts.%{scriptsversion}
    3030Summary:        NSS module and daemon for using LDAP as a naming service
    3131Url:            http://arthurdejong.org/nss-ldapd/
    3232Source:         nss-ldapd-%{version}.tar.bz2
    33 Source1:        rc.nslcd
    3433Source100:      nss-ldapd-0.6.8-rpmlintrc
    3534Patch0:         nslcd-passwd-offbyone.dif
     35Patch1000:      rc.nslcd.patch
    3636BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    3737
    3838%description
     
    5353
    5454%prep
    5555%setup -q
    56 cp -v %{S:1} .
    57 %patch -p1
     56%patch0 -p1
     57%patch1000 -p0 -b .rc
    5858
    5959%build
    6060%{?suse_update_config:%{suse_update_config -f}}
     
    7171mkdir -p $RPM_BUILD_ROOT/etc/init.d/
    7272mkdir -p $RPM_BUILD_ROOT/usr/sbin/
    7373install -m 755 rc.nslcd $RPM_BUILD_ROOT/etc/init.d/nslcd
    74 ln -sf ../../etc/init.d/nslcd $RPM_BUILD_ROOT/usr/sbin/rcnslcd
    7574make DESTDIR=$RPM_BUILD_ROOT install
    7675mkdir -p $RPM_BUILD_ROOT/var/run/nslcd
    7776install -m 644 man/nss-ldapd.conf.5 $RPM_BUILD_ROOT/usr/share/man/man5
     
    8786    /bin/chmod 640 /etc/nss-ldapd.conf
    8887fi
    8988
    90 %preun
    91 %stop_on_removal nslcd
    92 
    9389%postun
    9490/sbin/ldconfig
    95 %restart_on_update nslcd
    96 %insserv_cleanup
    9791
    9892%files
    9993%defattr(-,root,root)
     
    10397%doc %{_mandir}/man8/*
    10498%config(noreplace) %attr(640,root,root) /etc/nss-ldapd.conf
    10599%config /etc/init.d/nslcd
    106 /usr/sbin/rcnslcd
    107100%dir /var/run/nslcd
    108101/usr/sbin/nslcd
    109102
     
    151144- Adjust config file permissions upon update, to fix world-readable
    152145  /etc/nss-ldapd.conf as created by older versions
    153146  (bnc#487737, CVE-2009-1073)
     147* Wed Dec 31 2008  <quentin@mit.edu> - 0.6.4-3.0
     148- add init script for Fedora
     149* Wed Dec 31 2008  <quentin@mit.edu> - 0.6.4-2.4
     150- port from openSUSE to Fedora
    154151* Fri Aug 15 2008 rhafer@suse.de
    155152- Fixed "Required-Stop" Tag to include the same services as
    156153  "Required-Start"
Note: See TracBrowser for help on using the repository browser.