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

Last change on this file since 1119 was 950, checked in by quentin, 16 years ago
Add a scripts version number to the nss-ldapd package
File size: 2.0 KB
  • nss-ldapd.spec

    old new  
    1111# norootforbuild
    1212
    1313Name:           nss-ldapd
    14 BuildRequires:  db-devel krb5-devel openldap2-devel
     14BuildRequires:  db4-devel krb5-devel openldap-devel autoconf automake libtool
     15Conflicts:      nss_ldap
    1516License:        LGPL v2.1 or later
    1617Group:          Productivity/Networking/LDAP/Clients
    1718Autoreqprov:    on
    1819Version:        0.6.4
    19 Release:        2.4
     20Release:        3.1.scripts.%{scriptsversion}
    2021Summary:        NSS LDAP Daemon and Module
    2122URL:            http://ch.tudelft.nl/~arthur/nss-ldapd/
    2223Source:         nss-ldapd-%{version}.tar.bz2
    23 Source1:        rc.nslcd
     24Patch1000:      rc.nslcd.patch
    2425BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    2526
    2627%description
     
    3435    West Consulting <info@west.nl>
    3536    Arthur de Jong <arthur@ch.tudelft.nl>
    3637
    37 %debug_package
    38 
    3938%prep
    4039%setup -q
    41 cp -v %{S:1} .
     40%patch1000 -p0 -b .rc
    4241
    4342%build
    4443%{?suse_update_config:%{suse_update_config -f}}
     
    5857mkdir -p $RPM_BUILD_ROOT/etc/init.d/
    5958mkdir -p $RPM_BUILD_ROOT/usr/sbin/
    6059install -m 755 rc.nslcd $RPM_BUILD_ROOT/etc/init.d/nslcd
    61 ln -sf ../../etc/init.d/nslcd $RPM_BUILD_ROOT/usr/sbin/rcnslcd
    6260make DESTDIR=$RPM_BUILD_ROOT install
    6361mkdir -p $RPM_BUILD_ROOT/var/run/nslcd
    6462install -m 644 man/nss-ldapd.conf.5 $RPM_BUILD_ROOT/usr/share/man/man5
     
    7068%post
    7169/sbin/ldconfig
    7270
    73 %preun
    74 %stop_on_removal nslcd
    75 
    7671%postun
    7772/sbin/ldconfig
    78 %restart_on_update nslcd
    79 %insserv_cleanup
    8073
    8174%files
    8275%defattr(-,root,root)
     
    8679%doc %{_mandir}/man8/*
    8780%config(noreplace) /etc/nss-ldapd.conf
    8881%config /etc/init.d/nslcd
    89 /usr/sbin/rcnslcd
    9082%dir /var/run/nslcd
    9183/usr/sbin/nslcd
    9284
    9385%changelog
     86* Wed Dec 31 2008  <quentin@mit.edu> - 0.6.4-3.0
     87- add init script for Fedora
     88* Wed Dec 31 2008  <quentin@mit.edu> - 0.6.4-2.4
     89- port from openSUSE to Fedora
    9490* Wed Aug  6 2008 rhafer@suse.de
    9591- rename init script to nslcd to match the name of the daemon
    9692  binary
Note: See TracBrowser for help on using the repository browser.