From 39b88922eb1c2725a5dcbe14618b09871fce14625cca5b5c4d1c884e9b89a507 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski Date: Fri, 4 Dec 2015 08:02:06 +0000 Subject: [PATCH] - Adjust /var/run to _rundir macro value in openvpn@.service too. OBS-URL: https://build.opensuse.org/package/show/network:vpn/openvpn?expand=0&rev=101 --- openvpn.changes | 5 +++++ openvpn.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/openvpn.changes b/openvpn.changes index d80ae0a..9379406 100644 --- a/openvpn.changes +++ b/openvpn.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 3 14:07:17 UTC 2015 - mt@suse.com + +- Adjust /var/run to _rundir macro value in openvpn@.service too. + ------------------------------------------------------------------- Thu Aug 20 08:43:33 UTC 2015 - mt@suse.com diff --git a/openvpn.spec b/openvpn.spec index f88c61b..5619cef 100644 --- a/openvpn.spec +++ b/openvpn.spec @@ -144,6 +144,8 @@ sed -e "s|\" __DATE__|$(date '+%b %e %Y' -r version.m4)\"|g" \ sed -e "s|@PLUGIN_LIBDIR@|%{_libdir}/openvpn/plugins|g" \ -e "s|@PLUGIN_DOCDIR@|%{_defaultdocdir}/%{name}|g" \ -i doc/openvpn.8 +sed -e "s|/var/run|%{_rundir}|g" < \ + $RPM_SOURCE_DIR/%{name}.service > %{name}.service # %%doc items shouldn't be executable. find contrib sample -type f -exec chmod a-x \{\} \; @@ -172,7 +174,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/openvpn mkdir -p $RPM_BUILD_ROOT/%{_rundir}/openvpn mkdir -p $RPM_BUILD_ROOT/%{_datadir}/openvpn %if %{with_systemd} -install -D -m 644 $RPM_SOURCE_DIR/%{name}.service %{buildroot}/%{_unitdir}/%{name}@.service +install -D -m 644 %{name}.service %{buildroot}/%{_unitdir}/%{name}@.service install -D -m 644 $RPM_SOURCE_DIR/%{name}.target %{buildroot}/%{_unitdir}/%{name}.target install -D -m 755 $RPM_SOURCE_DIR/rc%{name} %{buildroot}%{_sbindir}/rc%{name} # tmpfiles.d