This commit is contained in:
parent
c9a0466346
commit
357b5c6790
27
exim.spec
27
exim.spec
@ -11,7 +11,7 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: exim
|
||||
BuildRequires: db-devel openldap2-devel pcre-devel pwdutils
|
||||
BuildRequires: db-devel openldap2-devel pcre-devel
|
||||
%if %{?suse_version:1}%{?!suse_version:0}
|
||||
BuildRequires: tcpd-devel
|
||||
%if %suse_version > 910
|
||||
@ -233,9 +233,6 @@ touch Local/eximon.conf
|
||||
rm -f doc/*.{orig,txt~}
|
||||
|
||||
%build
|
||||
%if %{?suse_version:%suse_version}%{?!suse_version:99999} <= 800
|
||||
/usr/sbin/useradd -o -g mail -u 8 -s /bin/false -c "Mailer daemon" -d /var/spool/clientmqueue mail 2> /dev/null || :
|
||||
%endif
|
||||
make
|
||||
|
||||
%install
|
||||
@ -314,12 +311,6 @@ install -m 0755 $RPM_SOURCE_DIR/eximstats-html-update.py $RPM_BUILD_ROOT/%{_sbin
|
||||
# apparmor profile
|
||||
install -D -m 0644 $RPM_SOURCE_DIR/apparmor.usr.sbin.exim $RPM_BUILD_ROOT/etc/apparmor.d/usr.sbin.exim
|
||||
|
||||
%if %{?suse_version:%suse_version}%{?!suse_version:99999} <= 800
|
||||
|
||||
%pre
|
||||
/usr/sbin/useradd -o -g mail -u 8 -s /bin/false -c "Mailer daemon" -d /var/spool/clientmqueue mail 2> /dev/null || :
|
||||
%endif
|
||||
|
||||
%post
|
||||
%run_permissions
|
||||
if ! test -s etc/exim/exim.conf; then
|
||||
@ -335,21 +326,7 @@ fi
|
||||
for i in var/log/exim/main.log var/log/exim/panic.log var/log/exim/reject.log; do
|
||||
if ! test -e $i; then touch $i; chown mail:mail $i; chmod 640 $i ; fi
|
||||
done
|
||||
%if %{?suse_version:%suse_version}%{?!suse_version:99999} < 800
|
||||
echo "Updating /etc/rc.config..."
|
||||
bin/cat > var/adm/fillup-templates/rc.config.exim <<-EOF
|
||||
#
|
||||
# Start the exim mail transfer agent? (yes|no)
|
||||
#
|
||||
START_EXIM=no
|
||||
EOF
|
||||
bin/fillup -q etc/rc.config var/adm/fillup-templates/rc.config.exim
|
||||
bin/rm var/adm/fillup-templates/rc.config.exim
|
||||
bin/fillup -q etc/rc.config var/adm/fillup-templates/sysconfig.exim
|
||||
sbin/insserv etc/init.d/exim
|
||||
%else
|
||||
%{fillup_and_insserv exim}
|
||||
%endif
|
||||
%{fillup_and_insserv exim}
|
||||
exit 0
|
||||
%if %{?suse_version:%suse_version}%{?!suse_version:0} > 820
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user