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

Last change on this file since 2825 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
  • 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
     23Conflicts:      nss_ldap
    2324License:        LGPL v2.1 or later
    2425Group:          Productivity/Networking/LDAP/Clients
    2526AutoReqProv:    on
    2627PreReq:         /bin/chmod
    2728Conflicts:      nss_ldap
    2829Version:        0.6.8
    29 Release:        2.1
     30Release:        2.1.scripts.%{scriptsversion}
    3031Summary:        NSS module and daemon for using LDAP as a naming service
    3132Url:            http://ch.tudelft.nl/~arthur/nss-ldapd/
    3233Source:         nss-ldapd-%{version}.tar.bz2
    33 Source1:        rc.nslcd
     34Patch1000:      rc.nslcd.patch
    3435Source100:      nss-ldapd-0.6.8-rpmlintrc
    3536BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    3637
     
    5253
    5354%prep
    5455%setup -q
    55 cp -v %{S:1} .
     56%patch1000 -p0 -b .rc
    5657
    5758%build
    5859%{?suse_update_config:%{suse_update_config -f}}
     
    7273mkdir -p $RPM_BUILD_ROOT/etc/init.d/
    7374mkdir -p $RPM_BUILD_ROOT/usr/sbin/
    7475install -m 755 rc.nslcd $RPM_BUILD_ROOT/etc/init.d/nslcd
    75 ln -sf ../../etc/init.d/nslcd $RPM_BUILD_ROOT/usr/sbin/rcnslcd
    7676make DESTDIR=$RPM_BUILD_ROOT install
    7777mkdir -p $RPM_BUILD_ROOT/var/run/nslcd
    7878install -m 644 man/nss-ldapd.conf.5 $RPM_BUILD_ROOT/usr/share/man/man5
     
    8888    /bin/chmod 640 /etc/nss-ldapd.conf
    8989fi
    9090
    91 %preun
    92 %stop_on_removal nslcd
    93 
    9491%postun
    9592/sbin/ldconfig
    96 %restart_on_update nslcd
    97 %insserv_cleanup
    9893
    9994%files
    10095%defattr(-,root,root)
     
    10499%doc %{_mandir}/man8/*
    105100%config(noreplace) %attr(640,root,root) /etc/nss-ldapd.conf
    106101%config /etc/init.d/nslcd
    107 /usr/sbin/rcnslcd
    108102%dir /var/run/nslcd
    109103/usr/sbin/nslcd
    110104
     
    129123- Adjust config file permissions upon update, to fix world-readable
    130124  /etc/nss-ldapd.conf as created by older versions
    131125  (bnc#487737, CVE-2009-1073)
     126* Wed Dec 31 2008  <quentin@mit.edu> - 0.6.4-3.0
     127- add init script for Fedora
     128* Wed Dec 31 2008  <quentin@mit.edu> - 0.6.4-2.4
     129- port from openSUSE to Fedora
    132130* Fri Aug 15 2008 rhafer@suse.de
    133131- Fixed "Required-Stop" Tag to include the same services as
    134132  "Required-Start"
Note: See TracBrowser for help on using the repository browser.