auto-import cyrus-sasl-2.1.6-1 from cyrus-sasl-2.1.6-1.src.rpm
This commit is contained in:
parent
46febc3587
commit
7772258ec0
|
@ -1 +1,3 @@
|
||||||
cyrus-sasl-1.5.24.tar.gz
|
cyrus-sasl-1.5.24.tar.gz
|
||||||
|
cyrus-sasl-1.5.28-BETA.tar.gz
|
||||||
|
cyrus-sasl-2.1.6.tar.gz
|
||||||
|
|
294
cyrus-sasl.spec
294
cyrus-sasl.spec
|
@ -1,34 +1,35 @@
|
||||||
# These define which plugins are built as subpackages. The gssapi definition
|
%define cs1_version 1.5.28
|
||||||
# also controls whether the plugin is even built.
|
%define _plugindir %{_libdir}/sasl
|
||||||
# For RHL 6.2, gssapi = 1, md5 = 0, plain = 0.
|
%define _plugindir2 %{_libdir}/sasl2
|
||||||
# For RHL 7, gssapi = 1, md5 = 0, plain = 0.
|
|
||||||
# For RHL 7.1, gssapi = 1, md5 = 0, plain = 0.
|
|
||||||
# For RHL 7.2, gssapi = 1, md5 = 1, plain = 1.
|
|
||||||
%define gssapi 1
|
|
||||||
%define md5 1
|
|
||||||
%define plain 1
|
|
||||||
|
|
||||||
Summary: The Cyrus SASL library.
|
Summary: The Cyrus SASL library.
|
||||||
Name: cyrus-sasl
|
Name: cyrus-sasl
|
||||||
Version: 1.5.24
|
Version: 2.1.6
|
||||||
Release: 25
|
Release: 1
|
||||||
License: Freely Distributable
|
License: Freely Distributable
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-%{version}.tar.gz
|
Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-%{version}.tar.gz
|
||||||
|
Source1: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-%{cs1_version}-BETA.tar.gz
|
||||||
|
Source2: saslauthd.init
|
||||||
|
Source3: README.RPM
|
||||||
|
Source4: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-1.5.24.tar.gz
|
||||||
URL: http://asg.web.cmu.edu/sasl/sasl-library.html
|
URL: http://asg.web.cmu.edu/sasl/sasl-library.html
|
||||||
Patch0: cyrus-sasl-1.5.21-des.patch
|
Patch0: cyrus-sasl-1.5.21-des.patch
|
||||||
Patch1: cyrus-sasl-1.5.24-external.patch
|
Patch1: cyrus-sasl-1.5.24-external.patch
|
||||||
Patch2: cyrus-sasl-1.5.24-syslog.patch
|
Patch2: cyrus-sasl-1.5.24-syslog.patch
|
||||||
Patch3: cyrus-sasl-1.5.24-rpath.patch
|
Patch3: cyrus-sasl-1.5.24-autoconf.patch
|
||||||
Patch4: cyrus-sasl-1.5.24-autoconf.patch
|
Patch4: cyrus-sasl-1.5.24-rpath.patch
|
||||||
|
Patch5: cyrus-sasl-2.1.6-automake.patch
|
||||||
|
Patch6: cyrus-sasl-2.1.4-autoconf.patch
|
||||||
|
Patch7: cyrus-sasl-2.1.4-ipctype.patch
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-root
|
||||||
BuildPrereq: autoconf, automake, libtool
|
BuildPrereq: autoconf213, automake15, libtool
|
||||||
BuildPrereq: gdbm-devel, krb5-devel, openssl-devel, pam-devel
|
# Note: berkeley db for sasl2, gdbm for sasl1.
|
||||||
Requires: pam
|
BuildPrereq: db4-devel, gdbm-devel, krb5-devel, openssl-devel, pam-devel
|
||||||
Prereq: /sbin/ldconfig
|
Prereq: /sbin/ldconfig, chkconfig, /sbin/service
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The cyrus-sasl package contains the Cyrus implementation of SASL.
|
The %{name} package contains the Cyrus implementation of SASL.
|
||||||
SASL is the Simple Authentication and Security Layer, a method for
|
SASL is the Simple Authentication and Security Layer, a method for
|
||||||
adding authentication support to connection-based protocols.
|
adding authentication support to connection-based protocols.
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ Group: Development/Libraries
|
||||||
Summary: Files needed for developing applications with Cyrus SASL.
|
Summary: Files needed for developing applications with Cyrus SASL.
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The cyrus-sasl-devel package contains files needed for developing and
|
The %{name}-devel package contains files needed for developing and
|
||||||
compiling applications which use the Cyrus SASL library.
|
compiling applications which use the Cyrus SASL library.
|
||||||
|
|
||||||
%package gssapi
|
%package gssapi
|
||||||
|
@ -47,7 +48,7 @@ Group: System Environment/Libraries
|
||||||
Summary: GSSAPI support for Cyrus SASL.
|
Summary: GSSAPI support for Cyrus SASL.
|
||||||
|
|
||||||
%description gssapi
|
%description gssapi
|
||||||
The cyrus-sasl-gssapi package contains the Cyrus SASL plugins which
|
The %{name}-gssapi package contains the Cyrus SASL plugins which
|
||||||
support GSSAPI authentication. GSSAPI is commonly used for Kerberos
|
support GSSAPI authentication. GSSAPI is commonly used for Kerberos
|
||||||
authentication.
|
authentication.
|
||||||
|
|
||||||
|
@ -57,7 +58,7 @@ Group: System Environment/Libraries
|
||||||
Summary: PLAIN and LOGIN support for Cyrus SASL.
|
Summary: PLAIN and LOGIN support for Cyrus SASL.
|
||||||
|
|
||||||
%description plain
|
%description plain
|
||||||
The cyrus-sasl-plain package contains the Cyrus SASL plugins which support
|
The %{name}-plain package contains the Cyrus SASL plugins which support
|
||||||
PLAIN and LOGIN authentication schemes.
|
PLAIN and LOGIN authentication schemes.
|
||||||
|
|
||||||
%package md5
|
%package md5
|
||||||
|
@ -66,105 +67,266 @@ Group: System Environment/Libraries
|
||||||
Summary: CRAM-MD5 and DIGEST-MD5 support for Cyrus SASL.
|
Summary: CRAM-MD5 and DIGEST-MD5 support for Cyrus SASL.
|
||||||
|
|
||||||
%description md5
|
%description md5
|
||||||
The cyrus-sasl-md5 package contains the Cyrus SASL plugins which support
|
The %{name}-md5 package contains the Cyrus SASL plugins which support
|
||||||
CRAM-MD5 and DIGEST-MD5 authentication schemes.
|
CRAM-MD5 and DIGEST-MD5 authentication schemes.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q -c -a 1
|
||||||
%patch0 -p1 -b .des
|
pushd cyrus-sasl-%{cs1_version}
|
||||||
%patch1 -p1 -b .external
|
# These patches are not needed for 1.5.28, but are needed in 1.5.24.
|
||||||
%patch2 -p1 -b .syslog
|
#%patch0 -p1 -b .des
|
||||||
%patch3 -p1 -b .rpath
|
#%patch1 -p1 -b .external
|
||||||
%patch4 -p1 -b .autoconf
|
#%patch2 -p1 -b .syslog
|
||||||
|
#%patch3 -p1 -b .autoconf
|
||||||
|
%patch4 -p1 -b .rpath
|
||||||
libtoolize -f
|
libtoolize -f
|
||||||
aclocal -I ./cmulocal
|
aclocal-1.5 -I ./config -I ./cmulocal
|
||||||
automake -a
|
automake-1.5 -a
|
||||||
autoconf
|
autoheader-2.13
|
||||||
|
autoconf-2.13
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd cyrus-sasl-%{version}
|
||||||
|
%patch5 -p1 -b .automake
|
||||||
|
%patch6 -p1 -b .autoconf
|
||||||
|
%patch7 -p1 -b .ipctype
|
||||||
|
libtoolize -f
|
||||||
|
aclocal-1.5 -I ./config -I ./cmulocal
|
||||||
|
automake-1.5 -a --include-deps
|
||||||
|
autoheader-2.13
|
||||||
|
autoconf-2.13
|
||||||
|
|
||||||
|
pushd saslauthd
|
||||||
|
libtoolize -f
|
||||||
|
aclocal-1.5 -I ../config -I ../cmulocal
|
||||||
|
automake-1.5 -a --include-deps
|
||||||
|
autoheader-2.13
|
||||||
|
autoconf-2.13
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Sort of merge the docs.
|
||||||
|
mkdir cyrus-sasl-%{version}/%{cs1_version}
|
||||||
|
mkdir cyrus-sasl-%{version}/%{cs1_version}-devel
|
||||||
|
cp %{name}-%{cs1_version}/{AUTHORS,COPYING,NEWS,README,doc/*.html} cyrus-sasl-%{version}/%{cs1_version}
|
||||||
|
cp %{name}-%{cs1_version}/doc/*.txt cyrus-sasl-%{version}/%{cs1_version}-devel
|
||||||
|
# Remove duplicate RFCs.
|
||||||
|
pushd cyrus-sasl-%{version}/%{cs1_version}-devel
|
||||||
|
for file in * ; do
|
||||||
|
if [ -f ../doc/${file} ] ; then
|
||||||
|
rm -f ${file}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
|
pushd cyrus-sasl-%{cs1_version}
|
||||||
%configure \
|
%configure \
|
||||||
--enable-static --enable-shared \
|
--enable-static --with-pic --enable-shared \
|
||||||
--with-plugindir=%{_libdir}/sasl \
|
--with-plugindir=%{_plugindir} \
|
||||||
--with-dblib=gdbm \
|
|
||||||
--disable-krb4 \
|
--disable-krb4 \
|
||||||
%if %{gssapi}
|
|
||||||
--enable-gssapi=/usr/kerberos \
|
--enable-gssapi=/usr/kerberos \
|
||||||
%endif
|
|
||||||
--with-rc4 \
|
--with-rc4 \
|
||||||
|
--with-dblib=gdbm \
|
||||||
--enable-anon \
|
--enable-anon \
|
||||||
--enable-cram \
|
--enable-cram \
|
||||||
--enable-digest \
|
--enable-digest \
|
||||||
--enable-plain \
|
--enable-plain \
|
||||||
--enable-login
|
--enable-login
|
||||||
make
|
make
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd cyrus-sasl-%{version}
|
||||||
|
LIBS=-lcrypt; export LIBS
|
||||||
|
%configure \
|
||||||
|
--enable-static --with-pic --enable-shared --disable-java \
|
||||||
|
--with-plugindir=%{_plugindir2} \
|
||||||
|
--disable-krb4 \
|
||||||
|
--enable-gssapi=/usr/kerberos \
|
||||||
|
--with-rc4 \
|
||||||
|
--with-dblib=berkeley \
|
||||||
|
--with-saslauthd=/var/run/saslauthd --without-pwcheck \
|
||||||
|
--enable-anon \
|
||||||
|
--enable-cram \
|
||||||
|
--enable-digest \
|
||||||
|
--enable-plain \
|
||||||
|
--enable-login
|
||||||
|
make -C sasldb allockey.o allockey.lo db_berkeley.o db_berkeley.lo
|
||||||
|
make JAV=
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
pushd cyrus-sasl-%{cs1_version}
|
||||||
%makeinstall
|
%makeinstall
|
||||||
install -m755 -d $RPM_BUILD_ROOT%{_bindir}
|
install -m755 -d $RPM_BUILD_ROOT%{_bindir}
|
||||||
./libtool --mode=install \
|
./libtool --mode=install \
|
||||||
install -m755 sample/sample-client $RPM_BUILD_ROOT%{_bindir}/sasl-sample-client
|
install -m755 sample/client $RPM_BUILD_ROOT%{_bindir}/sasl-sample-client
|
||||||
./libtool --mode=install \
|
./libtool --mode=install \
|
||||||
install -m755 sample/sample-server $RPM_BUILD_ROOT%{_bindir}/sasl-sample-server
|
install -m755 sample/server $RPM_BUILD_ROOT%{_bindir}/sasl-sample-server
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd cyrus-sasl-%{version}
|
||||||
|
%makeinstall JAV=
|
||||||
|
install -m755 -d $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
|
||||||
|
./libtool --mode=install \
|
||||||
|
install -m755 sample/client $RPM_BUILD_ROOT%{_bindir}/sasl2-sample-client
|
||||||
|
./libtool --mode=install \
|
||||||
|
install -m755 sample/server $RPM_BUILD_ROOT%{_bindir}/sasl2-sample-server
|
||||||
|
|
||||||
|
# Install the saslauthd man page in the expected location, even if it's
|
||||||
|
# pre-formatted.
|
||||||
|
install -m755 -d $RPM_BUILD_ROOT%{_mandir}/man8/
|
||||||
|
install -m644 saslauthd/*.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
||||||
|
|
||||||
|
# Create the saslauthd listening directory.
|
||||||
|
install -m755 -d $RPM_BUILD_ROOT/var/run/saslauthd
|
||||||
|
install -m755 -d $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
|
install -m755 $RPM_SOURCE_DIR/saslauthd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
|
||||||
|
popd
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
/sbin/chkconfig --add saslauthd
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%preun
|
||||||
|
if [ $1 = 0 ] ; then
|
||||||
|
/sbin/chkconfig --del saslauthd
|
||||||
|
fi
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
if [ $1 != 0 ] ; then
|
||||||
|
/sbin/service saslauthd condrestart 2>&1 > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING NEWS README TODO doc/*.html doc/*.txt
|
%doc %{name}-%{version}/%{cs1_version}
|
||||||
|
%doc %{name}-%{version}/{AUTHORS,COPYING,NEWS,README,doc/*.html}
|
||||||
|
%doc $RPM_SOURCE_DIR/README.RPM
|
||||||
%{_libdir}/libsasl*.so.*
|
%{_libdir}/libsasl*.so.*
|
||||||
%dir %{_libdir}/sasl/
|
%dir %{_plugindir}/
|
||||||
%{_libdir}/sasl/*anonymous*.so*
|
%dir %{_plugindir2}/
|
||||||
|
%{_plugindir}/*anonymous*.so*
|
||||||
|
%{_plugindir}/*anonymous*.la
|
||||||
|
%{_plugindir2}/*anonymous*.so*
|
||||||
|
%{_plugindir2}/*anonymous*.la
|
||||||
|
%{_plugindir2}/*sasldb*.so*
|
||||||
|
%{_plugindir2}/*sasldb*.la
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%{_sbindir}/saslpasswd
|
%{_sbindir}/saslpasswd
|
||||||
%{_sbindir}/sasldblistusers
|
%{_sbindir}/sasldblistusers
|
||||||
|
%{_sbindir}/saslpasswd2
|
||||||
|
%{_sbindir}/sasldblistusers2
|
||||||
|
%{_sbindir}/saslauthd
|
||||||
|
%config /etc/rc.d/init.d/saslauthd
|
||||||
|
/var/run/saslauthd
|
||||||
|
|
||||||
%if %{plain}
|
|
||||||
%files plain
|
%files plain
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%endif
|
%{_plugindir}/*plain*.so*
|
||||||
%{_libdir}/sasl/*plain*.so*
|
%{_plugindir}/*plain*.la
|
||||||
%{_libdir}/sasl/*login*.so*
|
%{_plugindir}/*login*.so*
|
||||||
|
%{_plugindir}/*login*.la
|
||||||
|
%{_plugindir2}/*plain*.so*
|
||||||
|
%{_plugindir2}/*plain*.la
|
||||||
|
%{_plugindir2}/*login*.so*
|
||||||
|
%{_plugindir2}/*login*.la
|
||||||
|
|
||||||
%if %{md5}
|
|
||||||
%files md5
|
%files md5
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%endif
|
%{_plugindir}/*crammd5*.so*
|
||||||
%{_libdir}/sasl/*crammd5*.so*
|
%{_plugindir}/*crammd5*.la
|
||||||
%{_libdir}/sasl/*digestmd5*.so*
|
%{_plugindir}/*digestmd5*.so*
|
||||||
|
%{_plugindir}/*digestmd5*.la
|
||||||
|
%{_plugindir2}/*crammd5*.so*
|
||||||
|
%{_plugindir2}/*crammd5*.la
|
||||||
|
%{_plugindir2}/*digestmd5*.so*
|
||||||
|
%{_plugindir2}/*digestmd5*.la
|
||||||
|
|
||||||
%if %{gssapi}
|
|
||||||
%files gssapi
|
%files gssapi
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/sasl/*gssapi*.so*
|
%{_plugindir}/*gssapi*.so*
|
||||||
%endif
|
%{_plugindir}/*gssapi*.la
|
||||||
|
%{_plugindir2}/*gssapi*.so*
|
||||||
|
%{_plugindir2}/*gssapi*.la
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc %{name}-%{version}/%{cs1_version}-devel
|
||||||
|
%doc %{name}-%{version}/doc/*.txt
|
||||||
%{_bindir}/sasl-sample-client
|
%{_bindir}/sasl-sample-client
|
||||||
%{_bindir}/sasl-sample-server
|
%{_bindir}/sasl-sample-server
|
||||||
%{_includedir}/*.h
|
%{_bindir}/sasl2-sample-client
|
||||||
|
%{_bindir}/sasl2-sample-server
|
||||||
|
%{_includedir}/*
|
||||||
%{_libdir}/libsasl*.*a
|
%{_libdir}/libsasl*.*a
|
||||||
%{_libdir}/libsasl*.*so
|
%{_libdir}/libsasl*.*so
|
||||||
%{_libdir}/sasl/*anonymous*.*a
|
%{_plugindir}/*anonymous*.a
|
||||||
%{_libdir}/sasl/*crammd5*.*a
|
%{_plugindir}/*crammd5*.a
|
||||||
%{_libdir}/sasl/*digestmd5*.*a
|
%{_plugindir}/*digestmd5*.a
|
||||||
%{_libdir}/sasl/*gssapi*.*a
|
%{_plugindir}/*gssapi*.a
|
||||||
%{_libdir}/sasl/*login*.*a
|
%{_plugindir}/*login*.a
|
||||||
%{_libdir}/sasl/*plain*.*a
|
%{_plugindir}/*plain*.a
|
||||||
|
%{_plugindir2}/*anonymous*.a
|
||||||
|
%{_plugindir2}/*crammd5*.a
|
||||||
|
%{_plugindir2}/*digestmd5*.a
|
||||||
|
%{_plugindir2}/*gssapi*.a
|
||||||
|
%{_plugindir2}/*login*.a
|
||||||
|
%{_plugindir2}/*plain*.a
|
||||||
|
%{_plugindir2}/*sasldb*.a
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 21 2002 Nalin Dahyabhai <nalin@redhat.com> 1.5.24-25
|
* Wed Jul 17 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.6-1
|
||||||
- one more time!
|
- update to 2.1.6 and 1.5.28
|
||||||
|
|
||||||
* Wed Feb 20 2002 Nalin Dahyabhai <nalin@redhat.com> 1.5.24-24
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
|
* Thu Jun 13 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.5-1
|
||||||
|
- update to 2.1.5
|
||||||
|
|
||||||
|
* Mon Jun 10 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.4-1
|
||||||
|
- update to 2.1.4
|
||||||
|
|
||||||
|
* Sun May 26 2002 Tim Powers <timp@redhat.com>
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
|
* Thu May 16 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.2-1
|
||||||
|
- modify to build with db 4.x
|
||||||
|
|
||||||
|
* Thu Apr 18 2002 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
|
- update cyrus-sasl 2 to 2.1.2
|
||||||
|
- change buildreq to db3-devel
|
||||||
|
|
||||||
|
* Tue Feb 12 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.1-3
|
||||||
|
- suppress output to stdout/stderr in %%postun
|
||||||
|
|
||||||
|
* Sun Feb 10 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.1-2
|
||||||
|
- configure sasldb2 to use berkeley DB instead of gdbm
|
||||||
|
|
||||||
|
* Wed Feb 6 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.1-1
|
||||||
|
- update to 2.1.1
|
||||||
|
|
||||||
|
* Thu Jan 31 2002 Nalin Dahyabhai <nalin@redhat.com> 2.1.0-1
|
||||||
|
- marge 1.5.24 back in, making a note that it should be removed at some
|
||||||
|
point in the future
|
||||||
|
|
||||||
|
* Wed Jan 30 2002 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
|
- update to 2.1.0, which is designed to be installed in parallel with cyrus sasl
|
||||||
|
1.x, so fork the package and rename it to cyrus-sasl2
|
||||||
|
- add the sasldb auxprop plugin to the main package
|
||||||
|
- add disabled-by-default saslauthd init script
|
||||||
|
- move the .la files for plugins into their respective packages -- they're
|
||||||
|
needed by the library
|
||||||
|
|
||||||
|
* Wed Jan 23 2002 Nalin Dahyabhai <nalin@redhat.com> 1.5.24-24
|
||||||
- free ride through the build system
|
- free ride through the build system
|
||||||
|
|
||||||
* Fri Nov 2 2001 Nalin Dahyabhai <nalin@redhat.com> 1.5.24-23
|
* Fri Nov 2 2001 Nalin Dahyabhai <nalin@redhat.com> 1.5.24-23
|
||||||
|
|
|
@ -0,0 +1,72 @@
|
||||||
|
#! /bin/bash
|
||||||
|
#
|
||||||
|
# saslauthd Start/Stop the SASL authentication daemon.
|
||||||
|
#
|
||||||
|
# chkconfig: - 95 05
|
||||||
|
# description: saslauthd is a server process which handles plaintext \
|
||||||
|
# authentication requests on behalf of the cyrus-sasl library.
|
||||||
|
# processname: saslauthd
|
||||||
|
|
||||||
|
# Source function library.
|
||||||
|
. /etc/init.d/functions
|
||||||
|
|
||||||
|
# Source our configuration file for these variables.
|
||||||
|
SOCKET=/var/run/saslauthd/mux
|
||||||
|
MECH=shadow
|
||||||
|
FLAGS=
|
||||||
|
if [ -f /etc/sysconfig/saslauthd ] ; then
|
||||||
|
. /etc/sysconfig/saslauthd
|
||||||
|
fi
|
||||||
|
|
||||||
|
RETVAL=0
|
||||||
|
|
||||||
|
# Set up some common variables before we launch into what might be
|
||||||
|
# considered boilerplate by now.
|
||||||
|
prog=saslauthd
|
||||||
|
path=/usr/sbin/saslauthd
|
||||||
|
|
||||||
|
start() {
|
||||||
|
echo -n $"Starting $prog: "
|
||||||
|
daemon $path -m $SOCKET -a $MECH $FLAGS
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
|
||||||
|
return $RETVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
echo -n $"Stopping $prog: "
|
||||||
|
killproc $path
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
|
||||||
|
return $RETVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
restart() {
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
start
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
stop
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
restart
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
status $path
|
||||||
|
;;
|
||||||
|
condrestart)
|
||||||
|
[ -f /var/lock/subsys/$prog ] && restart || :
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $?
|
Loading…
Reference in New Issue