# # Copyright 2005-2010 Double Precision, Inc. See COPYING for # distribution information. Name: courier-authlib Version: @VERSION@ Release: 1 License: GPLv3 URL: http://www.courier-mta.org ################################################################################ Source: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2 ################################################################################ BuildRequires: libtool BuildRequires: openldap-devel BuildRequires: mysql-devel zlib-devel sqlite-devel BuildRequires: postgresql-devel BuildRequires: gdbm-devel BuildRequires: pam-devel BuildRequires: expect BuildRequires: gcc-c++ BuildRequires: courier-unicode-devel BuildRequires: /usr/include/ltdl.h %{?repository: Repository(pgpkeys.txt): http://download.lpmtool.com/@REPOSITORY@/courier-authlib} %package Summary: Courier authentication library Group: System Environment/Daemons Requires: /bin/systemctl The Courier authentication library provides authentication services for other Courier applications. %package devel Summary: Development libraries for the Courier authentication library Group: Development/Libraries Requires: courier-authlib = %{__version}-%{__release} This package contains the development libraries and files needed to compile Courier packages that use this authentication library. Install this package in order to build the rest of the Courier packages. After they are built and installed this package can be removed. Files in this package are not needed at runtime. ################################################################################ %package userdb Summary: userdb support for the Courier authentication library Group: System Environment/Daemons Requires: courier-authlib = %{__version}-%{__release} This package installs the userdb support for the Courier authentication library. Userdb is a simple way to manage virtual mail accounts using a GDBM-based database file.
Install this package in order to be able to authenticate with userdb.
################################################################################
%package ldap
Summary: LDAP support for the Courier authentication library
Group: System Environment/Daemons
Requires: courier-authlib = %{__version}-%{__release}
This package installs LDAP support for the Courier authentication library.
Install this package in order to be able to authenticate using LDAP.
################################################################################
%package mysql
Summary: MySQL support for the Courier authentication library
Group: System Environment/Daemons
Requires: courier-authlib = %{__version}-%{__release}
This package installs MySQL support for the Courier authentication library.
Install this package in order to be able to authenticate using MySQL.
%package sqlite
Summary: SQLite support for the Courier authentication library
Group: System Environment/Daemons
Requires: courier-authlib = %{__version}-%{__release}
This package installs SQLite support for the Courier authentication library.
Install this package in order to be able to authenticate using an SQLite-based
database file.
################################################################################
%package pgsql
Summary: PostgreSQL support for the Courier authentication library
Group: System Environment/Daemons
Requires: courier-authlib = %{__version}-%{__release}
This package installs PostgreSQL support for the Courier authentication
library.
Install this package in order to be able to authenticate using PostgreSQL.
%begin
%setup
%configure --with-redhat -C
%begin build
%{__make} -s %{_smp_mflags}
%begin install
rm -rf $__installdir
MAKEFLAGS= %{__make} -j 1 install DESTDIR=$__installdir
%{__rm} -f $__installdir%{_libdir}/courier-authlib/*.a
%{__install} -m 555 sysconftool $__installdir%{_libexecdir}/courier-authlib
./courierauthconfig --configfiles >configtmp
. ./configtmp
d=`pwd`
cd $RPM_BUILD_ROOT%{_localstatedir}/spool/authdaemon || exit 1
$d/authmksock ./socket || exit 1
cd $d || exit 1
touch $__installdir%{_localstatedir}/spool/authdaemon/pid.lock || exit 1
touch $__installdir%{_localstatedir}/spool/authdaemon/pid || exit 1
%{__chmod} 777 $__installdir%{_localstatedir}/spool/authdaemon/socket || exit 1
cat >configfiles.base <