diff options
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2018-06-20 16:02:32 +0200 |
---|---|---|
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2018-06-21 17:05:41 +0200 |
commit | 4f20eab14cc9e44fcc93fa87156444606c665e33 (patch) | |
tree | 7ded52e89c83160292e850a46eb3ccb1e9ddca3b /redhat | |
parent | redhat: remove some superflous %attr calls (diff) | |
download | frr-4f20eab14cc9e44fcc93fa87156444606c665e33.tar.xz frr-4f20eab14cc9e44fcc93fa87156444606c665e33.zip |
redhat: replace hardcoded path with variable
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Diffstat (limited to 'redhat')
-rw-r--r-- | redhat/frr.spec.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index 85f7ed5f2..85695c4c7 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -340,7 +340,7 @@ popd %install mkdir -p %{buildroot}%{_sysconfdir}/{frr,sysconfig,logrotate.d,pam.d,default} \ - %{buildroot}/var/log/frr %{buildroot}%{_infodir} + %{buildroot}%{_localstatedir}/log/frr %{buildroot}%{_infodir} make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" SPHINXBUILD=%{sphinx} install # Remove this file, as it is uninstalled and causes errors when building on RH9 @@ -541,11 +541,11 @@ fi %doc ChangeLog NEWS README %if 0%{?frr_user:1} %dir %attr(751,%{frr_user},%{frr_user}) %{configdir} - %dir %attr(750,%{frr_user},%{frr_user}) /var/log/frr + %dir %attr(750,%{frr_user},%{frr_user}) %{_localstatedir}/log/frr %dir %attr(751,%{frr_user},%{frr_user}) %{rundir} %else %dir %attr(750,root,root) %{configdir} - %dir %attr(750,root,root) /var/log/frr + %dir %attr(750,root,root) %{_localstatedir}/log/frr %dir %attr(750,root,root) %{rundir} %endif %if 0%{?vty_group:1} |