]> git.puffer.fish Git - matthieu/frr.git/commitdiff
redhat: replace hardcoded path with variable
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 20 Jun 2018 14:02:32 +0000 (16:02 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 21 Jun 2018 15:05:41 +0000 (17:05 +0200)
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
redhat/frr.spec.in

index 85f7ed5f27dc4f6569f59875ba8aaee5502750cc..85695c4c71a839fef0702395f483a62c4eafc5e0 100644 (file)
@@ -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}