- postgresql-enabled build when build_with_pgsql is defined (which is done in a
linked package named server:mail/exim-postgresql) OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=102
This commit is contained in:
parent
2ae5632d35
commit
f7af4bf393
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 10 18:30:11 UTC 2011 - poeml@cmdline.net
|
||||
|
||||
- postgresql-enabled build when build_with_pgsql is defined (which is done in a
|
||||
linked package named server:mail/exim-postgresql)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 4 22:13:39 UTC 2011 - lars@samba.org
|
||||
|
||||
|
23
exim.spec
23
exim.spec
@ -41,11 +41,15 @@ Requires: logrotate
|
||||
PreReq: %insserv_prereq %fillup_prereq /usr/sbin/useradd fileutils textutils
|
||||
%endif
|
||||
Version: 4.74
|
||||
Release: 3
|
||||
Release: 1
|
||||
%if %{?build_with_mysql:1}0
|
||||
BuildRequires: mysql-devel
|
||||
Provides: exim = %version
|
||||
%endif
|
||||
%if %{?build_with_pgsql:1}0
|
||||
BuildRequires: postgresql-devel
|
||||
Provides: exim = %version
|
||||
%endif
|
||||
Summary: The Exim Mail Transfer Agent, a Replacement for sendmail
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: exim-%{version}.tar.bz2
|
||||
@ -59,7 +63,7 @@ Source30: eximstats-html-update.py
|
||||
Source31: eximstats.conf
|
||||
Patch: exim-4.12-tail.patch
|
||||
Patch1: aa097c4c00f62487128d74f65c521f9e877b184f.diff
|
||||
%if !%{?build_with_mysql:1}0
|
||||
%if !%{?build_with_mysql:1}0 && !%{?build_with_pgsql:1}0
|
||||
|
||||
%package -n eximon
|
||||
License: GPLv2+
|
||||
@ -88,7 +92,7 @@ Authors:
|
||||
--------
|
||||
Philip Hazel <ph10@cus.cam.ac.uk>
|
||||
|
||||
%if !%{?build_with_mysql:1}0
|
||||
%if !%{?build_with_mysql:1}0 && !%{?build_with_pgsql:1}0
|
||||
|
||||
%description -n eximon
|
||||
This allows administrators to view the exim agent's mail queue and
|
||||
@ -161,6 +165,9 @@ cat <<-EOF > Local/Makefile
|
||||
LOOKUP_LDAP=yes
|
||||
%if %{?build_with_mysql:1}0
|
||||
LOOKUP_MYSQL=yes
|
||||
%endif
|
||||
%if %{?build_with_pgsql:1}0
|
||||
LOOKUP_PGSQL=yes
|
||||
%endif
|
||||
LOOKUP_NIS=yes
|
||||
# LOOKUP_NISPLUS=yes
|
||||
@ -176,6 +183,10 @@ cat <<-EOF > Local/Makefile
|
||||
%if %{?build_with_mysql:1}0
|
||||
LOOKUP_INCLUDE=-I /usr/include/mysql
|
||||
LOOKUP_LIBS=-lldap -llber -lmysqlclient
|
||||
%endif
|
||||
%if %{?build_with_pgsql:1}0
|
||||
LOOKUP_INCLUDE=-I /usr/include/pgsql
|
||||
LOOKUP_LIBS=-lldap -llber -lpq
|
||||
%endif
|
||||
EXIM_MONITOR=eximon.bin
|
||||
WITH_CONTENT_SCAN=yes
|
||||
@ -267,7 +278,7 @@ do
|
||||
done
|
||||
ln -sf exim $RPM_BUILD_ROOT/usr/sbin/sendmail
|
||||
ln -sv ../../etc/init.d/exim $RPM_BUILD_ROOT/usr/sbin/rcexim
|
||||
%if !%{?build_with_mysql:1}0
|
||||
%if !%{?build_with_mysql:1}0 && !%{?build_with_pgsql:1}0
|
||||
mv $RPM_BUILD_ROOT/usr/sbin/eximon* $RPM_BUILD_ROOT/usr/bin/
|
||||
%else
|
||||
rm $RPM_BUILD_ROOT/usr/sbin/eximon*
|
||||
@ -307,7 +318,7 @@ install -m 0755 -d $RPM_BUILD_ROOT/etc/permissions.d
|
||||
install -m 0644 $RPM_SOURCE_DIR/permissions.exim $RPM_BUILD_ROOT/etc/permissions.d/exim
|
||||
%endif
|
||||
# eximstats-html files
|
||||
%if !%{?build_with_mysql:1}0
|
||||
%if !%{?build_with_mysql:1}0 && !%{?build_with_pgsql:1}0
|
||||
mkdir -p $RPM_BUILD_ROOT/srv/www/eximstats
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/apache2/conf.d/
|
||||
cp -p $RPM_SOURCE_DIR/eximstats.conf $RPM_BUILD_ROOT/etc/apache2/conf.d/
|
||||
@ -386,7 +397,7 @@ exit 0
|
||||
/usr/lib/sendmail
|
||||
/var/adm/fillup-templates/sysconfig.exim
|
||||
%dir %attr(750,root,mail) /var/log/exim
|
||||
%if !%{?build_with_mysql:1}0
|
||||
%if !%{?build_with_mysql:1}0 && !%{?build_with_pgsql:1}0
|
||||
|
||||
%files -n eximon
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user