Accepting request 233447 from home:coolo:branches:openSUSE:Factory
- use %_rundir for %ghost directory - leaving /var/run everywhere else OBS-URL: https://build.opensuse.org/request/show/233447 OBS-URL: https://build.opensuse.org/package/show/network:vpn/openvpn?expand=0&rev=75
This commit is contained in:
parent
01bef909c4
commit
0943a7a494
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun May 11 07:58:52 UTC 2014 - coolo@suse.com
|
||||
|
||||
- use %_rundir for %ghost directory - leaving /var/run everywhere
|
||||
else
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 14 10:43:19 UTC 2014 - mt@suse.de
|
||||
|
||||
|
@ -21,6 +21,9 @@
|
||||
%else
|
||||
%define with_systemd 0
|
||||
%endif
|
||||
%if ! %{defined _rundir}
|
||||
%define _rundir %{_localstatedir}/run
|
||||
%endif
|
||||
|
||||
Name: openvpn
|
||||
Url: http://openvpn.net/
|
||||
@ -153,7 +156,7 @@ make
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/openvpn
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/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
|
||||
@ -178,7 +181,7 @@ install -m 755 $RPM_SOURCE_DIR/client-netconfig.down sample/sample-scripts/clien
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/{OpenVPN,%name}
|
||||
|
||||
%post
|
||||
%__mkdir_p -m750 %{_localstatedir}/run/openvpn
|
||||
%__mkdir_p -m750 %{_rundir}/openvpn
|
||||
%if %{with_systemd}
|
||||
%service_add_post %{name}.target
|
||||
# try to migrate openvpn.service autostart to openvpn@<CONF>.service
|
||||
@ -255,7 +258,7 @@ rm -f /etc/sysconfig/openvpn || :
|
||||
%endif
|
||||
%{_sbindir}/rcopenvpn
|
||||
%{_sbindir}/openvpn
|
||||
%attr(0750,root,root) %dir %ghost %{_localstatedir}/run/openvpn
|
||||
%attr(0750,root,root) %dir %ghost %{_rundir}/openvpn
|
||||
%{_includedir}/%{name}-plugin.h
|
||||
|
||||
%files down-root-plugin
|
||||
|
Loading…
Reference in New Issue
Block a user