Don't install the sysvinit script if systemd is used
This commit is contained in:
parent
4a3bbed674
commit
30e3f4b90d
@ -188,8 +188,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
INSTALLMAN3DIR=%buildroot/%{_mandir}/man3 \
|
INSTALLMAN3DIR=%buildroot/%{_mandir}/man3 \
|
||||||
LOCAL_RULES_DIR=%{buildroot}/etc/mail/spamassassin
|
LOCAL_RULES_DIR=%{buildroot}/etc/mail/spamassassin
|
||||||
chmod 755 %buildroot/%{_bindir}/* # allow stripping
|
chmod 755 %buildroot/%{_bindir}/* # allow stripping
|
||||||
|
|
||||||
|
%if %{use_systemd} == 0
|
||||||
install -d %buildroot/%{_initrddir}
|
install -d %buildroot/%{_initrddir}
|
||||||
install -m 0755 spamd/redhat-rc-script.sh %buildroot/%{_initrddir}/spamassassin
|
install -m 0755 spamd/redhat-rc-script.sh %buildroot/%{_initrddir}/spamassassin
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/mail/spamassassin
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
||||||
@ -254,7 +257,9 @@ install -m 0644 %{SOURCE13} $RPM_BUILD_DIR/Mail-SpamAssassin-%{version}/
|
|||||||
%doc LICENSE NOTICE CREDITS Changes README TRADEMARK UPGRADE
|
%doc LICENSE NOTICE CREDITS Changes README TRADEMARK UPGRADE
|
||||||
%doc USAGE sample-nonspam.txt sample-spam.txt
|
%doc USAGE sample-nonspam.txt sample-spam.txt
|
||||||
%doc README.RHEL.Fedora
|
%doc README.RHEL.Fedora
|
||||||
|
%if %{use_systemd} == 0
|
||||||
%{_initrddir}/spamassassin
|
%{_initrddir}/spamassassin
|
||||||
|
%endif
|
||||||
%dir %{_sysconfdir}/mail
|
%dir %{_sysconfdir}/mail
|
||||||
%config(noreplace) %{_sysconfdir}/mail/spamassassin
|
%config(noreplace) %{_sysconfdir}/mail/spamassassin
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/spamassassin
|
%config(noreplace) %{_sysconfdir}/sysconfig/spamassassin
|
||||||
|
Loading…
Reference in New Issue
Block a user