SHA256
1
0
forked from pool/openvpn

- 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
This commit is contained in:
Marius Tomaschewski 2015-12-04 08:02:06 +00:00 committed by Git OBS Bridge
parent e18eab1a94
commit 39b88922eb
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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