From cafeeebf5eddf86b703e238261393a618fa1bb31 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Thu, 1 Mar 2012 13:41:34 +0100 Subject: [PATCH] Use unitdir macro when creating directory for systemd units --- mrtg.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mrtg.spec b/mrtg.spec index 9d20c6a..02b736f 100644 --- a/mrtg.spec +++ b/mrtg.spec @@ -82,7 +82,7 @@ install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/mrtg.conf %endif # install systemd files -mkdir -p $RPM_BUILD_ROOT/lib/systemd/system +mkdir -p $RPM_BUILD_ROOT%{_unitdir} install -p -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_unitdir}/mrtg.service install -p -m 644 %{SOURCE9} $RPM_BUILD_ROOT%{_unitdir}/mrtg.timer @@ -138,6 +138,7 @@ fi %changelog * Thu Mar 01 2012 Vitezslav Crhonek - 2.17.4-1 - Update to mrtg-2.17.4 +- Use unitdir macro when creating directory for systemd units * Mon Jan 09 2012 Vitezslav Crhonek - 2.17.3-2 - Fix 'undefined subroutine &SNMP_Session::inet_ntop called at