]> git.pld-linux.org Git - packages/openvpn.git/commitdiff
- created -devel package with openvpn-plugin.h header
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 3 Oct 2005 16:01:06 +0000 (16:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- compile and package auth-pam and down-root plugins

Changed files:
    openvpn.spec -> 1.97

openvpn.spec

index 2a4d48de913351321a026e1c797833e0f3b4c863..54791c585476c33fe698b3c8dccae99f54a61db4 100644 (file)
@@ -1,8 +1,13 @@
+# TODO
+# - RFC: currently plugins were installed to /usr/lib/openvpn/plugins,
+#   perhaps just /usr/lib as they're prefixed with openvpn-? pros from
+#   this is that then you don't need to specify full path to plugins
+#   in openvpn.conf
 Summary:       VPN Daemon
 Summary(pl):   Serwer VPN
 Name:          openvpn
 Version:       2.0.2
-Release:       2
+Release:       2.4
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://openvpn.net/release/%{name}-%{version}.tar.gz
@@ -10,13 +15,14 @@ Source0:    http://openvpn.net/release/%{name}-%{version}.tar.gz
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Patch0:                %{name}-2.0_rc16MH.patch
+Patch1:                %{name}-optflags.patch
 URL:           http://openvpn.net/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: lzo-devel
 BuildRequires: openssl-devel >= 0.9.7d
 Conflicts:     kernel < 2.4
-PreReq:                rc-scripts >= 0.4.0.19
+Requires:      rc-scripts >= 0.4.0.19
 Requires(post,preun):  /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,9 +39,18 @@ Sieci Prywatne), kt
 lub wiêcej prywatnych sieci u¿ywaj±c zaszyfrowanego tunelu poprzez
 internet.
 
+%package devel
+Summary:       Development libraries and header files for OpenVPN
+Group:         Development/Libraries
+
+%description devel
+This is the package containing the development header files for
+OpenVPN.
+
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__aclocal}
@@ -48,16 +63,21 @@ internet.
        --enable-iproute2
 %{__make}
 
+%{__make} -C plugin/auth-pam
+%{__make} -C plugin/down-root
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/openvpn,%{_sbindir},%{_mandir}/man8} \
-       $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},/var/run/openvpn}
+       $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},/var/run/openvpn,%{_includedir},%{_libdir}/%{name}/plugins}
 
 install openvpn $RPM_BUILD_ROOT%{_sbindir}
 install *.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+install openvpn-plugin.h $RPM_BUILD_ROOT%{_includedir}
+install plugin/{auth-pam,down-root}/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -81,9 +101,17 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS README ChangeLog sample-config-files sample-keys easy-rsa sample-scripts
-%attr(755,root,root) %{_sbindir}/*
 %dir %{_sysconfdir}/openvpn
-%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%attr(755,root,root) %{_sbindir}/*
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/plugins
+%attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
 %{_mandir}/man?/*
 %dir /var/run/openvpn
+
+%files devel
+%defattr(644,root,root,755)
+%doc plugin/{README,examples/}
+%{_includedir}/*.h
This page took 0.090541 seconds and 4 git commands to generate.