comparison 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
comparison
equal deleted inserted replaced
72:ea7b7a0d0039 73:4685767c0c85
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11 URL: http://www.five-ten-sg.com/%{name}/ 11 URL: http://www.five-ten-sg.com/%{name}/
12 12
13 Requires(post,preun): /sbin/chkconfig 13 Requires(post,preun): /sbin/chkconfig
14 Requires(post,preun): /sbin/service 14 Requires(post,preun): /sbin/service
15 Requires: iptables 15 Requires: iptables, coreutils
16 Requires: coreutils
17 BuildRequires: gcc gcc-c++ 16 BuildRequires: gcc gcc-c++
18 %if "%{?dist}" == ".el7" 17 %if "%{?dist}" == ".el7"
19 Requires(pre): systemd-sysv, shadow-utils 18 Requires(pre): systemd-sysv, shadow-utils
20 Requires(post): systemd-units 19 Requires(post): systemd-units
21 Requires(preun): systemd-units 20 Requires(preun): systemd-units
22 Requires(postun): systemd-units 21 Requires(postun): systemd-units
23 Requires: coreutils 22 Requires: rsyslog, systemd-units
24 Requires: systemd-units
25 BuildRequires: systemd-units 23 BuildRequires: systemd-units
26 %endif 24 %endif
27 25
28 26
29 %description 27 %description
83 81
84 82
85 %postun 83 %postun
86 if [ $1 -ge 1 ]; then 84 if [ $1 -ge 1 ]; then
87 # package upgrade, not uninstall 85 # package upgrade, not uninstall
86 (cd %{_sysconfdir}; ./%{name}.conf.make)
88 %if "%{?dist}" == ".el7" 87 %if "%{?dist}" == ".el7"
89 /bin/systemctl try-restart %{name}.service &>/dev/null || : 88 /bin/systemctl try-restart %{name}.service &>/dev/null || :
90 %else 89 %else
91 /sbin/service %{name} restart || : 90 /sbin/service %{name} restart || :
92 %endif 91 %endif