# HG changeset patch # User Carl Byington # Date 1486681265 28800 # Node ID 4685767c0c8559a43fabca098f24068f085c3db3 # Parent ea7b7a0d0039ec22a7dfc38f669014ad8d6572f3 RHEL7 systemd and /var/run on tmpfs diff -r ea7b7a0d0039 -r 4685767c0c85 Makefile.am --- a/Makefile.am Thu Feb 09 12:58:21 2017 -0800 +++ b/Makefile.am Thu Feb 09 15:01:05 2017 -0800 @@ -15,7 +15,7 @@ sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>syslog2iptables syslog2iptables.service: syslog2iptables.service.rc - cat syslog2iptables.rc | \ + cat syslog2iptables.service.rc | \ sed -e "s,SBINDIR,$(sbindir),g" | \ sed -e "s,SYSCONFDIR,$(sysconfdir),g" >>syslog2iptables.service diff -r ea7b7a0d0039 -r 4685767c0c85 syslog2iptables.spec.in --- 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