rpms/nss-ldapd/devel import.log, NONE, 1.1 nslcd.init, NONE, 1.1 nss-ldapd-0.6.10.tar.gz.sig, NONE, 1.1 nss-ldapd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Nalin Dahyabhai
nalin at fedoraproject.org
Tue Jun 23 18:18:01 UTC 2009
- Previous message (by thread): rpms/php-pecl-geoip/F-10 import.log, NONE, 1.1 php-pecl-geoip.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/php-pecl-geoip/F-11 import.log, NONE, 1.1 php-pecl-geoip.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nalin
Update of /cvs/pkgs/rpms/nss-ldapd/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6745/devel
Modified Files:
.cvsignore sources
Added Files:
import.log nslcd.init nss-ldapd-0.6.10.tar.gz.sig
nss-ldapd.spec
Log Message:
- initial import (#491767)
--- NEW FILE import.log ---
nss-ldapd-0_6_10-3:HEAD:nss-ldapd-0.6.10-3.src.rpm:1245781001
--- NEW FILE nslcd.init ---
#!/bin/sh
#
# chkconfig: - 12 88
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nss-ldapd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#
### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: naming services LDAP client daemon
# Description: The nslcd service provides naming services by using a directory server.
### END INIT INFO
program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid
if [ -f /etc/init.d/functions ]; then
. /etc/init.d/functions
fi
RETVAL=0
start() {
echo -n $"Starting $prog: "
daemon $program
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc $program
RETVAL=$?
echo
if [ $RETVAL -eq 0 ]; then
rm -f /var/lock/subsys/$prog
fi
}
restart() {
stop
start
}
# See how we were called.
case "$1" in
start|stop|restart)
$1
;;
status)
status $program
RETVAL=$?
;;
condrestart)
[ -f /var/lock/subsys/$prog ] && restart || :
;;
reload)
echo "can't reload configuration, you have to restart it"
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
exit 1
;;
esac
exit $RETVAL
--- NEW FILE nss-ldapd-0.6.10.tar.gz.sig ---
F
U§ß§Âb
--- NEW FILE nss-ldapd.spec ---
# Define to provide a link from 'libnss_ldap.so' to the right file, so that
# applications can link using '-lnss_ldap', following the pattern that glibc
# uses. Currently disabled to avoid a file conflict with nss_ldap.
%define provide_so_link 0
Name: nss-ldapd
Version: 0.6.10
Release: 3%{?dist}
Summary: An nsswitch module which uses directory servers
Group: System Environment/Base
License: LGPLv2+
URL: http://arthurdejong.org/nss-ldapd/
Source0: http://arthurdejong.org/nss-ldapd/nss-ldapd-%{version}.tar.gz
Source1: http://arthurdejong.org/nss-ldapd/nss-ldapd-%{version}.tar.gz.sig
Source2: nslcd.init
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openldap-devel, krb5-devel
# Pull in the pam_ldap module, which is currently bundled with nss_ldap, to
# keep keep upgrades from removing the module. When nss-ldapd grows its own
# pam_ldap.so, we'll have to revisit this.
Requires: /%{_lib}/security/pam_ldap.so
Requires(post): /sbin/ldconfig, chkconfig, grep, sed
Requires(preun): chkconfig, initscripts
Requires(postun): /sbin/ldconfig, initscripts
%description
The nss-ldapd daemon, nslcd, uses a directory server to look up name
service information (users, groups, etc.) on behalf of a lightweight
nsswitch module.
%prep
%setup -q
%build
%configure --libdir=/%{_lib}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/{%{_initrddir},%{_libdir}}
install -p -m755 %{SOURCE2} $RPM_BUILD_ROOT/%{_initrddir}/nslcd
%if %{provide_so_link}
if test %{_libdir} != /%{_lib} ; then
touch $RPM_BUILD_ROOT/topdir
relroot=
while ! test -s $RPM_BUILD_ROOT/%{_libdir}/$relroot/libnss_ldap.so.2 ; do
if test -z "$relroot" ; then
relroot=../%{_lib}
else
relroot=../$relroot
fi
done
ln -s $relroot/libnss_ldap.so.2 $RPM_BUILD_ROOT/%{_libdir}/libnss_ldap.so
rm $RPM_BUILD_ROOT/topdir
fi
%endif
cat >> $RPM_BUILD_ROOT/%{_sysconfdir}/nss-ldapd.conf << EOF
uid nslcd
gid ldap
EOF
mkdir -p 0755 $RPM_BUILD_ROOT/var/run/nslcd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO
%{_sbindir}/*
%if %{provide_so_link}
/%{_libdir}/*.so
%endif
/%{_lib}/*.so.*
%{_mandir}/*/*
%attr(0600,root,root) %config(noreplace) /etc/nss-ldapd.conf
%attr(0755,root,root) %{_initrddir}/nslcd
%attr(0755,nslcd,root) /var/run/nslcd
%pre
getent group ldap > /dev/null || \
/usr/sbin/groupadd -r -g 55 ldap
getent passwd nslcd > /dev/null || \
/usr/sbin/useradd -r -g ldap -c 'LDAP client user' \
-u 65 -d / -s /sbin/nologin nslcd 2> /dev/null || :
%post
# The usual stuff.
/sbin/chkconfig --add nslcd
/sbin/ldconfig
# Pull in important non-default settings from /etc/ldap.conf, but only the
# first time this package is installed.
comment="This comment prevents repeated auto-migration of settings from /etc/ldap.conf."
target=/etc/nss-ldapd.conf
if ! grep -q -F "# $comment" $target 2> /dev/null ; then
# Try to make sure we only do this the first time.
echo "# $comment" >> $target
if egrep -q '^uri[[:blank:]]' /etc/ldap.conf 2> /dev/null ; then
# Comment out the packaged default host/uri and replace it...
sed -i -r -e 's,^((host|uri)[[:blank:]].*),# \1,g' $target
# ... with the uri.
egrep '^uri[[:blank:]]' /etc/ldap.conf >> $target
elif egrep -q '^host[[:blank:]]' /etc/ldap.conf 2> /dev/null ; then
# Comment out the packaged default host/uri and replace it...
sed -i -r -e 's,^((host|uri)[[:blank:]].*),# \1,g' $target
# ... with the "host" reformatted as a URI.
scheme=ldap
# check for 'ssl on', which means we want to use ldaps://
if egrep -q '^ssl[[:blank:]]+on$' /etc/ldap.conf 2> /dev/null ; then
scheme=ldaps
fi
egrep '^host[[:blank:]]' /etc/ldap.conf |\
sed -r -e "s,^host[[:blank:]](.*),uri ${scheme}://\1/,g" >> $target
fi
# Base doesn't require any special logic.
if egrep -q '^base[[:blank:]]' /etc/ldap.conf 2> /dev/null ; then
# Comment out the packaged default base and replace it.
sed -i -r -e 's,^(base[[:blank:]].*),# \1,g' $target
egrep '^base[[:blank:]]' /etc/ldap.conf >> $target
fi
# Pull in these settings, if they're set, directly.
egrep '^(binddn|bindpw|port|scope|ssl|pagesize)[[:blank:]]' /etc/ldap.conf >> $target
egrep '^(tls_)' /etc/ldap.conf >> $target
egrep '^(timelimit|bind_timelimit|idle_timelimit|reconnect_sleeptime|reconnect_maxsleeptime)[[:blank:]]' /etc/ldap.conf >> $target
fi
# If the system is already configured to use LDAP as a naming service, enable
# the daemon, but don't start it since we can never know if that's a safe thing
# to do.
if egrep -q '^USELDAP=yes$' /etc/sysconfig/authconfig 2> /dev/null ; then
/sbin/chkconfig nslcd on
fi
exit 0
%preun
if [ "$1" -eq "0" ]; then
/sbin/service nslcd stop >/dev/null 2>&1
/sbin/chkconfig --del nslcd
fi
exit 0
%postun
if [ "$1" -ge "1" ]; then
/etc/rc.d/init.d/nslcd condrestart >/dev/null 2>&1
fi
/sbin/ldconfig
exit 0
%changelog
* Thu Jun 18 2009 Nalin Dahyabhai <nalin at redhat.com> 0.6.10-3
- update URL: and Source:
* Mon Jun 15 2009 Nalin Dahyabhai <nalin at redhat.com> 0.6.10-2
- add and own /var/run/nslcd
- convert hosts to uri during migration
* Thu Jun 11 2009 Nalin Dahyabhai <nalin at redhat.com> 0.6.10-1
- update to 0.6.10
* Fri Apr 17 2009 Nalin Dahyabhai <nalin at redhat.com> 0.6.8-1
- bump release number to 1 (part of #491767)
- fix which group we check for during %%pre (part of #491767)
* Tue Mar 24 2009 Nalin Dahyabhai <nalin at redhat.com>
- require chkconfig by package rather than path (Jussi Lehtola, part of #491767)
* Mon Mar 23 2009 Nalin Dahyabhai <nalin at redhat.com> 0.6.8-0.1
- update to 0.6.8
* Mon Mar 23 2009 Nalin Dahyabhai <nalin at redhat.com> 0.6.7-0.1
- start using a dedicated user
* Wed Mar 18 2009 Nalin Dahyabhai <nalin at redhat.com> 0.6.7-0.0
- initial package (#445965)
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/nss-ldapd/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 23 Jun 2009 18:07:22 -0000 1.1
+++ .cvsignore 23 Jun 2009 18:17:30 -0000 1.2
@@ -0,0 +1 @@
+nss-ldapd-0.6.10.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/nss-ldapd/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 23 Jun 2009 18:07:23 -0000 1.1
+++ sources 23 Jun 2009 18:17:31 -0000 1.2
@@ -0,0 +1 @@
+4b351954d94aceadb74ce589640fc93b nss-ldapd-0.6.10.tar.gz
- Previous message (by thread): rpms/php-pecl-geoip/F-10 import.log, NONE, 1.1 php-pecl-geoip.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/php-pecl-geoip/F-11 import.log, NONE, 1.1 php-pecl-geoip.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list