Mercurial > syslog2iptables
diff syslog2iptables.spec.in @ 73:4685767c0c85 stable-1-0-17
RHEL7 systemd and /var/run on tmpfs
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 09 Feb 2017 15:01:05 -0800 |
parents | 79f310d1bc46 |
children | c6c8a2102a3e |
line wrap: on
line diff
--- a/syslog2iptables.spec.in Thu Feb 09 12:58:21 2017 -0800 +++ b/syslog2iptables.spec.in Thu Feb 09 15:01:05 2017 -0800 @@ -12,16 +12,14 @@ Requires(post,preun): /sbin/chkconfig Requires(post,preun): /sbin/service -Requires: iptables -Requires: coreutils +Requires: iptables, coreutils BuildRequires: gcc gcc-c++ %if "%{?dist}" == ".el7" Requires(pre): systemd-sysv, shadow-utils Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units -Requires: coreutils -Requires: systemd-units +Requires: rsyslog, systemd-units BuildRequires: systemd-units %endif @@ -85,6 +83,7 @@ %postun if [ $1 -ge 1 ]; then # package upgrade, not uninstall + (cd %{_sysconfdir}; ./%{name}.conf.make) %if "%{?dist}" == ".el7" /bin/systemctl try-restart %{name}.service &>/dev/null || : %else