~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

1 by Alberto Gonzalez Iniesta
Import upstream version 1.6.0
1
Summary:	A Secure UDP Tunneling Daemon
2
Name:		@PACKAGE@
3
Version:	@VERSION@
4
Release:	1
5
URL:		http://sourceforge.net/projects/openvpn/
6
Source0:	http://prdownloads.sourceforge.net/openvpn/%{name}-%{version}.tar.gz
7
8
License:	GPL
9
Group:		Networking/Tunnels
10
Vendor:		James Yonan <jim@yonan.net>
11
Packager:	bishop clark (LC957) <bishop@platypus.bc.ca>
12
BuildRoot:	%{_tmppath}/%{name}-%(id -un)
13
14
%description
15
OpenVPN is a robust and highly flexible tunneling application that
16
uses all of the encryption, authentication, and certification features
17
of the OpenSSL library to securely tunnel IP networks over a single
18
UDP port. It can use the Marcus Franz Xaver Johannes Oberhumer's LZO
19
library for compression.
20
21
%define debug_package %{nil}
22
23
%prep
24
%setup -q
25
26
%build
27
%configure --enable-pthread
28
%__make
29
30
%install
31
[ %{buildroot} != "/" ] && rm -rf %{buildroot}
32
33
%__install -c -d -m 755 %{buildroot}%{_mandir}/man8
34
%__install -c -m 755 %{name}.8 %{buildroot}%{_mandir}/man8
35
%__install -c -d -m 755 %{buildroot}%{_sbindir}
36
%__install -c -m 755 %{name} %{buildroot}%{_sbindir}
37
%__install -c -d -m 755 %{buildroot}/etc/rc.d/init.d
38
%__install -c -m 755 sample-scripts/%{name}.init %{buildroot}/etc/rc.d/init.d/%{name}
39
%__install -c -d -m 755 %{buildroot}/etc/%{name}
40
41
%__mkdir_p %{buildroot}%{_datadir}/%{name}
42
%__cp -pr contrib easy-rsa sample-{config-file,key,script}s %{buildroot}%{_datadir}/%{name}
43
44
%clean
45
[ %{buildroot} != "/" ] && rm -rf %{buildroot}
46
47
%post
48
case "`uname -r`" in
49
2.4*)
50
	/bin/mkdir /dev/net >/dev/null 2>&1
51
	/bin/mknod /dev/net/tun c 10 200 >/dev/null 2>&1
52
	;;
53
esac
54
/sbin/chkconfig --add %{name}
55
/sbin/service %{name} condrestart
56
57
%preun
58
if [ "$1" = 0 ]
59
then
60
	/sbin/service %{name} stop
61
	/sbin/chkconfig --del %{name}
62
fi
63
64
%files
65
%defattr(-,root,root)
66
%doc AUTHORS COPYING COPYRIGHT.GPL INSTALL NEWS PORTS README 
67
%{_mandir}/man8/%{name}.8*
68
%{_sbindir}/%{name}
69
%{_datadir}/%{name}
70
/etc
71
72
%changelog
73
* Sun Feb 23 2003 Matthias Andree <matthias.andree@gmx.de> 1.3.2.14-1.
74
- Have the version number filled in by autoconf.
75
76
* Wed Jul 10 2002 James Yonan <jim@yonan.net> 1.3.1-1
77
- Fixed %preun to only remove service on final uninstall
78
79
* Mon Jun 17 2002 bishop clark (LC957) <bishop@platypus.bc.ca> 1.2.2-1
80
- Added condrestart to openvpn.spec & openvpn.init.
81
82
* Wed May 22 2002 James Yonan <jim@yonan.net> 1.2.0-1
83
- Added mknod for Linux 2.4.
84
85
* Wed May 15 2002 Doug Keller <dsk@voidstar.dyndns.org> 1.1.1.16-2
86
- Added init scripts
87
- Added conf file support
88
89
* Mon May 13 2002 bishop clark (LC957) <bishop@platypus.bc.ca> 1.1.1.14-1
90
- Added new directories for config examples and such
91
92
* Sun May 12 2002 bishop clark (LC957) <bishop@platypus.bc.ca> 1.1.1.13-1
93
- Updated buildroot directive and cleanup command
94
- added easy-rsa utilities
95
96
* Mon Mar 25 2002 bishop clark (LC957) <bishop@platypus.bc.ca> 1.0-1
97
- Initial build.