forked from pool/openvpn
Accepting request 161209 from home:a_jaeger:FactoryFix
Cleanup spec file. OBS-URL: https://build.opensuse.org/request/show/161209 OBS-URL: https://build.opensuse.org/package/show/network:vpn/openvpn?expand=0&rev=54
This commit is contained in:
parent
99af153f49
commit
07dd246387
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 26 14:38:48 UTC 2013 - aj@suse.com
|
||||
|
||||
- Remove _unitdir definition, it is provided by systemd.
|
||||
- Install service file without x permissions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 25 14:55:35 UTC 2013 - p.drouand@gmail.com
|
||||
|
||||
|
@ -16,12 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} < 1230
|
||||
%define _unitdir /lib/systemd/system
|
||||
%else
|
||||
%define _unitdir /usr/lib/systemd/system
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} > 1210
|
||||
%define with_systemd 1
|
||||
%else
|
||||
@ -156,7 +150,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/openvpn
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/openvpn
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/openvpn
|
||||
%if %{with_systemd}
|
||||
install -D -m 755 $RPM_SOURCE_DIR/%{name}.service %{buildroot}/%{_unitdir}/%{name}.service
|
||||
install -D -m 644 $RPM_SOURCE_DIR/%{name}.service %{buildroot}/%{_unitdir}/%{name}.service
|
||||
# tmpfiles.d
|
||||
mkdir -p %{buildroot}%{_libexecdir}/tmpfiles.d
|
||||
install -m 0644 $RPM_SOURCE_DIR/%{name}-tmpfile.conf %{buildroot}%{_libexecdir}/tmpfiles.d/%{name}.conf
|
||||
|
Loading…
Reference in New Issue
Block a user