]> git.pld-linux.org Git - packages/openvpn.git/commitdiff
restore openvpn-update-resolv-conf proper content and other contrib scripts auto/th/openvpn-2.3.6-2
authorElan Ruusamäe <glen@delfi.ee>
Thu, 7 May 2015 08:08:37 +0000 (11:08 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 7 May 2015 08:12:57 +0000 (11:12 +0300)
broken with commit d073bea73c9547d0e54ebcc4fd5343fad9b19840

openvpn.spec

index 518bcad7b0b49438b196dd679dc203373c59a3b0..ad1e88444376042c3a10901cb130e8b3a3ad1476 100644 (file)
@@ -17,6 +17,7 @@ Source3:      %{name}.tmpfiles
 Source4:       %{name}-service-generator
 Source5:       %{name}.target
 Source6:       %{name}@.service
+Source7:       %{name}-update-resolv-conf
 Patch0:                %{name}-pam.patch
 URL:           http://www.openvpn.net/
 BuildRequires: autoconf >= 2.59
@@ -102,7 +103,7 @@ Ten pakiet zawiera pliki nagłówkowe do tworzenia wtyczek OpenVPN.
 %setup -q
 %patch0 -p1
 
-sed -e 's,/''usr/lib/openvpn,%{_libdir}/%{name},' %{SOURCE3} > contrib/update-resolv-conf
+sed -e 's,/''usr/lib/openvpn,%{_libdir}/%{name},' %{SOURCE7} > contrib/update-resolv-conf
 
 %build
 %{__aclocal} -I m4
@@ -142,6 +143,11 @@ install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/openvpn.target
 install -p %{SOURCE6} $RPM_BUILD_ROOT%{systemdunitdir}/openvpn@.service
 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/openvpn.service
 
+# we use "cp", not "install", not to pull /bin/bash dependency
+cp -p contrib/pull-resolv-conf/client.down $RPM_BUILD_ROOT%{_libdir}/%{name}
+cp -p contrib/pull-resolv-conf/client.up $RPM_BUILD_ROOT%{_libdir}/%{name}
+cp -p contrib/update-resolv-conf $RPM_BUILD_ROOT%{_libdir}/%{name}
+
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
 
@@ -184,6 +190,9 @@ exit 0
 %{systemdunitdir}/%{name}.target
 %{systemdunitdir}/%{name}@.service
 %dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/client.down
+%attr(755,root,root) %{_libdir}/%{name}/client.up
+%attr(755,root,root) %{_libdir}/%{name}/update-resolv-conf
 %dir %{_libdir}/%{name}/plugins
 %{_mandir}/man8/openvpn.8*
 %dir /var/run/openvpn
This page took 0.156406 seconds and 4 git commands to generate.