This commit is contained in:
parent
e9e904cbf3
commit
29ebde32d9
13
exim.spec
13
exim.spec
@ -24,6 +24,7 @@ BuildRequires: libXaw-devel libXext-devel libXt-devel openssl-devel tcp_wrapper
|
|||||||
%endif
|
%endif
|
||||||
%if %{?build_with_mysql:1}0
|
%if %{?build_with_mysql:1}0
|
||||||
BuildRequires: mysql-devel
|
BuildRequires: mysql-devel
|
||||||
|
Provides: exim = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
URL: http://www.exim.org/
|
URL: http://www.exim.org/
|
||||||
Conflicts: sendmail sendmail-tls postfix
|
Conflicts: sendmail sendmail-tls postfix
|
||||||
@ -49,6 +50,7 @@ Source30: eximstats-html-update.py
|
|||||||
Source31: eximstats.conf
|
Source31: eximstats.conf
|
||||||
Patch: exim-4.12-tail.patch
|
Patch: exim-4.12-tail.patch
|
||||||
Patch2: exim-4.60-external-pcre.diff
|
Patch2: exim-4.60-external-pcre.diff
|
||||||
|
%if !%{?build_with_mysql:1}0
|
||||||
%package -n eximon
|
%package -n eximon
|
||||||
Summary: Eximon, an graphical frontend to administer Exim's mail queue
|
Summary: Eximon, an graphical frontend to administer Exim's mail queue
|
||||||
Group: Productivity/Networking/Email/Servers
|
Group: Productivity/Networking/Email/Servers
|
||||||
@ -56,6 +58,7 @@ Group: Productivity/Networking/Email/Servers
|
|||||||
Summary: Create HTML reports of exim logs
|
Summary: Create HTML reports of exim logs
|
||||||
Group: Productivity/Networking/Email/Servers
|
Group: Productivity/Networking/Email/Servers
|
||||||
Requires: perl-GD perl-GDGraph perl-GDTextUtil
|
Requires: perl-GD perl-GDGraph perl-GDTextUtil
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Exim is a mail transport agent (MTA) developed at the University of
|
Exim is a mail transport agent (MTA) developed at the University of
|
||||||
@ -73,6 +76,7 @@ Authors:
|
|||||||
Philip Hazel <ph10@cus.cam.ac.uk>
|
Philip Hazel <ph10@cus.cam.ac.uk>
|
||||||
|
|
||||||
|
|
||||||
|
%if !%{?build_with_mysql:1}0
|
||||||
%description -n eximon
|
%description -n eximon
|
||||||
This allows administrators to view the exim agent's mail queue and
|
This allows administrators to view the exim agent's mail queue and
|
||||||
logs, and perform a variety of actions on queued messages, such as
|
logs, and perform a variety of actions on queued messages, such as
|
||||||
@ -103,6 +107,7 @@ once, if at all. The rest is done by logrotate / cron.)
|
|||||||
Authors:
|
Authors:
|
||||||
--------
|
--------
|
||||||
Philip Hazel <ph10@cus.cam.ac.uk>
|
Philip Hazel <ph10@cus.cam.ac.uk>
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n exim-%{version}
|
%setup -q -n exim-%{version}
|
||||||
@ -260,7 +265,11 @@ do
|
|||||||
done
|
done
|
||||||
ln -sf exim $RPM_BUILD_ROOT/usr/sbin/sendmail
|
ln -sf exim $RPM_BUILD_ROOT/usr/sbin/sendmail
|
||||||
ln -sv ../../etc/init.d/exim $RPM_BUILD_ROOT/usr/sbin/rcexim
|
ln -sv ../../etc/init.d/exim $RPM_BUILD_ROOT/usr/sbin/rcexim
|
||||||
|
%if !%{?build_with_mysql:1}0
|
||||||
mv $RPM_BUILD_ROOT/usr/sbin/eximon* $RPM_BUILD_ROOT/usr/X11R6/bin/
|
mv $RPM_BUILD_ROOT/usr/sbin/eximon* $RPM_BUILD_ROOT/usr/X11R6/bin/
|
||||||
|
%else
|
||||||
|
rm $RPM_BUILD_ROOT/usr/sbin/eximon*
|
||||||
|
%endif
|
||||||
cp -p %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.exim
|
cp -p %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.exim
|
||||||
install -m 644 %{S:2} $RPM_BUILD_ROOT/etc/logrotate.d/exim
|
install -m 644 %{S:2} $RPM_BUILD_ROOT/etc/logrotate.d/exim
|
||||||
|
|
||||||
@ -294,10 +303,12 @@ 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
|
install -m 0644 $RPM_SOURCE_DIR/permissions.exim $RPM_BUILD_ROOT/etc/permissions.d/exim
|
||||||
%endif
|
%endif
|
||||||
# eximstats-html files
|
# eximstats-html files
|
||||||
|
%if !%{?build_with_mysql:1}0
|
||||||
mkdir -p $RPM_BUILD_ROOT/srv/www/eximstats
|
mkdir -p $RPM_BUILD_ROOT/srv/www/eximstats
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/apache2/conf.d/
|
mkdir -p $RPM_BUILD_ROOT/etc/apache2/conf.d/
|
||||||
cp -p $RPM_SOURCE_DIR/eximstats.conf $RPM_BUILD_ROOT/etc/apache2/conf.d/
|
cp -p $RPM_SOURCE_DIR/eximstats.conf $RPM_BUILD_ROOT/etc/apache2/conf.d/
|
||||||
install -m 0755 $RPM_SOURCE_DIR/eximstats-html-update.py $RPM_BUILD_ROOT/%{_sbindir}
|
install -m 0755 $RPM_SOURCE_DIR/eximstats-html-update.py $RPM_BUILD_ROOT/%{_sbindir}
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{?suse_version:%suse_version}%{?!suse_version:99999} <= 800
|
%if %{?suse_version:%suse_version}%{?!suse_version:99999} <= 800
|
||||||
|
|
||||||
@ -387,6 +398,7 @@ exit 0
|
|||||||
/var/adm/fillup-templates/sysconfig.exim
|
/var/adm/fillup-templates/sysconfig.exim
|
||||||
%dir %attr(750,root,mail) /var/log/exim
|
%dir %attr(750,root,mail) /var/log/exim
|
||||||
|
|
||||||
|
%if !%{?build_with_mysql:1}0
|
||||||
%files -n eximon
|
%files -n eximon
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/X11R6/bin/eximon
|
/usr/X11R6/bin/eximon
|
||||||
@ -399,6 +411,7 @@ exit 0
|
|||||||
/etc/apache2/conf.d
|
/etc/apache2/conf.d
|
||||||
/etc/apache2/conf.d/eximstats.conf
|
/etc/apache2/conf.d/eximstats.conf
|
||||||
%{_sbindir}/eximstats-html-update.py
|
%{_sbindir}/eximstats-html-update.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog -n exim
|
%changelog -n exim
|
||||||
* Fri Aug 04 2006 - poeml@suse.de
|
* Fri Aug 04 2006 - poeml@suse.de
|
||||||
|
Loading…
x
Reference in New Issue
Block a user