SPECS: openvpn.spec - add update-resolv-conf from debian; rel 5

glen glen at pld-linux.org
Tue Nov 27 23:18:40 CET 2007


Author: glen                         Date: Tue Nov 27 22:18:40 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add update-resolv-conf from debian; rel 5

---- Files affected:
SPECS:
   openvpn.spec (1.131 -> 1.132) 

---- Diffs:

================================================================
Index: SPECS/openvpn.spec
diff -u SPECS/openvpn.spec:1.131 SPECS/openvpn.spec:1.132
--- SPECS/openvpn.spec:1.131	Tue Nov 27 23:02:36 2007
+++ SPECS/openvpn.spec	Tue Nov 27 23:18:35 2007
@@ -1,6 +1,6 @@
 # $Revision$, $Date$
 %define		snap	rc4
-%define		_rel	4
+%define		_rel	5
 Summary:	VPN Daemon
 Summary(pl.UTF-8):	Serwer VPN
 Name:		openvpn
@@ -12,6 +12,7 @@
 # Source0-md5:	9fffc0aa0f797b612fa4f52b1e92197b
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
+Source3:	%{name}-update-resolv-conf
 Patch0:		%{name}-optflags.patch
 Patch1:		easy-rsa2.patch
 Patch2:		%{name}-pam.patch
@@ -85,6 +86,8 @@
 mv plugin/auth-pam/README README.auth-pam
 mv plugin/down-root/README README.down-root
 
+sed -e 's,/''usr/lib/openvpn,%{_libdir}/%{name},' %{SOURCE3} > contrib/update-resolv-conf
+
 %build
 %{__aclocal}
 %{__autoheader}
@@ -125,6 +128,7 @@
 # we use cp -a, not to pull /bin/bash dependency
 cp -a contrib/pull-resolv-conf/client.down $RPM_BUILD_ROOT%{_libdir}/%{name}
 cp -a contrib/pull-resolv-conf/client.up $RPM_BUILD_ROOT%{_libdir}/%{name}
+cp -a contrib/update-resolv-conf $RPM_BUILD_ROOT%{_libdir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -150,6 +154,7 @@
 %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
 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
 %{_mandir}/man?/*
@@ -178,6 +183,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.132  2007-11-27 22:18:35  glen
+- add update-resolv-conf from debian; rel 5
+
 Revision 1.131  2007-11-27 22:02:36  glen
 - add pam patch
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/openvpn.spec?r1=1.131&r2=1.132&f=u



More information about the pld-cvs-commit mailing list