2006-12-19 00:15:33 +01:00
|
|
|
#
|
2011-09-20 09:30:55 +02:00
|
|
|
# spec file for package cyrus-sasl-saslauthd
|
2006-12-19 00:15:33 +01:00
|
|
|
#
|
2012-01-18 16:43:19 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:33 +01:00
|
|
|
#
|
2008-08-18 18:24:22 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:15:33 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cyrus-sasl-saslauthd
|
2012-05-25 08:25:56 +02:00
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: krb5-devel
|
2011-10-03 13:31:53 +02:00
|
|
|
BuildRequires: libtool
|
2012-05-25 08:25:56 +02:00
|
|
|
BuildRequires: mysql-devel
|
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: opie
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: postgresql-devel
|
2007-10-26 20:32:16 +02:00
|
|
|
Url: http://asg.web.cmu.edu/sasl/
|
2006-12-19 00:15:33 +01:00
|
|
|
Summary: The SASL Authentication Server
|
2012-05-25 08:25:56 +02:00
|
|
|
License: BSD-4-Clause
|
|
|
|
Group: Productivity/Networking/Other
|
2011-11-18 15:39:07 +01:00
|
|
|
Version: 2.1.25
|
2012-05-25 08:25:56 +02:00
|
|
|
Release: 0
|
2006-12-19 00:15:33 +01:00
|
|
|
Source: cyrus-sasl-%{version}.tar.bz2
|
2007-10-26 20:32:16 +02:00
|
|
|
Source1: cyrus-sasl-rc.tar.bz2
|
2011-11-18 15:39:07 +01:00
|
|
|
Source2: README.Source
|
|
|
|
Source3: baselibs.conf
|
2009-05-19 00:46:09 +02:00
|
|
|
Patch: cyrus-sasl.dif
|
2006-12-19 00:15:33 +01:00
|
|
|
Patch1: shared_link_on_ppc.patch
|
|
|
|
Patch2: cyrus-sasl-gcc4.patch
|
2011-11-18 15:39:07 +01:00
|
|
|
Patch3: cyrus-sasl-gs2-not-overwrite-minor-error-code.dif
|
|
|
|
Patch4: gssapi-null-deref.dif
|
2012-04-23 09:04:49 +02:00
|
|
|
Patch5: cyrus-sasl-no_rpath.patch
|
2012-05-25 08:25:56 +02:00
|
|
|
Patch6: cyrus-sasl-lfs.patch
|
2012-08-13 09:57:57 +02:00
|
|
|
Patch7: Fix-abort_if_no_fqdn-behavior.patch
|
2007-10-26 20:32:16 +02:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
2006-12-19 00:15:33 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This daemon is required when using cyrus-sasl in server software that
|
2007-10-26 20:32:16 +02:00
|
|
|
should authenticate with PAM, for example.
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%package -n cyrus-sasl-ldap-auxprop
|
|
|
|
Summary: The cyrus-sasl LDAP auxprop plugin
|
|
|
|
Group: Productivity/Networking/Other
|
2011-11-18 15:39:07 +01:00
|
|
|
Requires: cyrus-sasl = %{version}
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%description -n cyrus-sasl-ldap-auxprop
|
|
|
|
The LDAP auxprop plugin allows for tighter application/directory
|
|
|
|
integration.
|
|
|
|
|
|
|
|
%package -n cyrus-sasl-sqlauxprop
|
2010-04-28 22:43:18 +02:00
|
|
|
Summary: SQL auxprop plugin for cyrus-sasl
|
2006-12-19 00:15:33 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-11-18 15:39:07 +01:00
|
|
|
Requires: cyrus-sasl = %{version}
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%description -n cyrus-sasl-sqlauxprop
|
|
|
|
The SQL auxprop plugin supports PostgreSQL and MySQL
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n cyrus-sasl-%{version} -a 1
|
|
|
|
%patch
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3 -p1
|
2011-11-18 15:39:07 +01:00
|
|
|
%patch4 -p1
|
2012-04-23 09:04:49 +02:00
|
|
|
%patch5 -p1
|
2012-05-25 08:25:56 +02:00
|
|
|
%patch6
|
2012-08-13 09:57:57 +02:00
|
|
|
%patch7 -p1
|
2006-12-19 00:15:33 +01:00
|
|
|
%build
|
|
|
|
find . -name \*.cvsignore -print0 | xargs -0 rm -vf
|
2011-11-18 15:39:07 +01:00
|
|
|
autoreconf -f -i
|
2006-12-19 00:15:33 +01:00
|
|
|
export CFLAGS="-fno-strict-aliasing $RPM_OPT_FLAGS -DLDAP_DEPRECATED"
|
2011-11-18 15:39:07 +01:00
|
|
|
%configure --with-plugindir=%{_libdir}/sasl2 \
|
|
|
|
--with-configdir=/etc/sasl2/:%{_libdir}/sasl2 \
|
|
|
|
--with-saslauthd=/var/run/sasl2/ \
|
|
|
|
--enable-checkapop=no \
|
|
|
|
--enable-cram=no \
|
|
|
|
--enable-digest=no \
|
|
|
|
--enable-otp=no \
|
|
|
|
--enable-srp=no \
|
|
|
|
--enable-plain=no \
|
|
|
|
--enable-anon=no \
|
|
|
|
--enable-ntlm=no \
|
|
|
|
--enable-passdss=no \
|
|
|
|
--enable-sample=no \
|
|
|
|
--enable-login=no \
|
|
|
|
--enable-gssapi=no \
|
|
|
|
--enable-gs2=no \
|
|
|
|
--enable-scram=no \
|
|
|
|
--enable-krb4=no \
|
|
|
|
--enable-sql \
|
|
|
|
--with-mysql=/usr/include/mysql \
|
|
|
|
--with-pgsql=/usr/include/pgsql \
|
|
|
|
--enable-ldapdb=yes \
|
|
|
|
--with-pam \
|
|
|
|
--with-ldap
|
2011-09-20 09:30:55 +02:00
|
|
|
make sasldir=%{_libdir}/sasl2 %{?_smp_mflags}
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
cd plugins
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT sasldir=%{_libdir}/sasl2 install
|
|
|
|
cd ..
|
|
|
|
cd saslauthd
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT sasldir=%{_libdir}/sasl2 install
|
2010-04-28 22:43:18 +02:00
|
|
|
install -m 755 -d $RPM_BUILD_ROOT/var/run/sasl2
|
2006-12-19 00:15:33 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
install -m 644 saslauthd.mdoc $RPM_BUILD_ROOT/%{_mandir}/man8/saslauthd.8
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
|
|
|
install -m 755 testsaslauthd $RPM_BUILD_ROOT/usr/bin/testsaslauthd
|
|
|
|
cd -
|
|
|
|
install -D -m 755 SuSE/rc.saslauthd $RPM_BUILD_ROOT/etc/init.d/saslauthd
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -sf ../etc/init.d/saslauthd $RPM_BUILD_ROOT/sbin/rcsaslauthd
|
|
|
|
install -D -m 644 SuSE/sysconfig.saslauthd $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.saslauthd
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_mandir}/cat?/*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/sasl2/libsasldb*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/sasl2/libldapdb.la
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/sasl2/libsql.la
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal saslauthd
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update saslauthd
|
|
|
|
%insserv_cleanup
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_and_insserv -n saslauthd}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/var/adm/fillup-templates/sysconfig.saslauthd
|
2010-05-10 14:54:10 +02:00
|
|
|
%dir %attr(0755, root, root) %ghost /var/run/sasl2
|
2006-12-19 00:15:33 +01:00
|
|
|
%config /etc/init.d/saslauthd
|
|
|
|
/sbin/rcsaslauthd
|
|
|
|
/usr/sbin/*
|
|
|
|
/usr/bin/*
|
|
|
|
%doc %{_mandir}/man8/*.gz
|
2012-01-18 16:43:19 +01:00
|
|
|
%doc saslauthd/AUTHORS saslauthd/COPYING saslauthd/ChangeLog saslauthd/LDAP_SASLAUTHD saslauthd/NEWS saslauthd/README
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%files -n cyrus-sasl-sqlauxprop
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/sasl2/libsql.so*
|
|
|
|
|
|
|
|
%files -n cyrus-sasl-ldap-auxprop
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/sasl2/libldapdb.so*
|
2008-03-28 00:30:32 +01:00
|
|
|
|
2007-03-20 11:34:39 +01:00
|
|
|
%changelog
|