1 Summary: Virtual tunnel over TCP/IP networks
6 Group: Networking/Daemons
7 Group(de): Netzwerkwesen/Server
8 Group(pl): Sieciowe/Serwery
9 Vendor: Maxim Krasnyansky <max_mk@yahoo.com>
10 Source0: ftp://vtun.sourceforge.net/pub/vtun/%{name}-%{version}.tar.gz
12 Patch0: %{name}-makefile.patch
13 URL: http://vtun.sourceforge.net/
14 BuildRequires: lzo-devel
15 BuildRequires: openssl-devel
16 BuildRequires: zlib-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _localstatedir /var
23 VTun provides the method for creating Virtual Tunnels over TCP/IP
24 networks and allows to shape, compress, encrypt traffic in that
25 tunnels. Supported type of tunnels are: PPP, IP, Ethernet and most of
26 other serial protocols and programs. VTun is easily and highly
27 configurable, it can be used for various network task like VPN, Mobil
28 IP, Shaped Internet access, IP address saving, etc. It is completely
29 user space implementation and does not require modification to any
30 kernel parts. You need SSLeay-devel and lzo-devel to build it.
37 --with-crypto-headers=%{_includedir}/openssl \
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
44 $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_localstatedir}/log/vtun}
46 %{__make} install DESTDIR=$RPM_BUILD_ROOT
48 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/vtund
50 gzip -9nf ChangeLog Credits README README.Setup README.Shaper FAQ TODO
53 /sbin/chkconfig --add vtund
54 if [ -f /var/lock/subsys/vtund ]; then
55 /etc/rc.d/init.d/vtund restart >&2
57 echo "Run \"/etc/rc.d/init.d/vtund start\" to start vtun daemons."
61 if [ "$1" = "0" ]; then
62 if [ -f /var/lock/subsys/vtund ]; then
63 /etc/rc.d/init.d/vtund stop >&2
65 /sbin/chkconfig --del vtund
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc {ChangeLog,Credits,README,README.Setup,README.Shaper,FAQ,TODO}.gz
74 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/vtund
75 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/vtund.conf
76 %attr(755,root,root) %{_sbindir}/vtund
77 %attr(755,root,root) %dir /var/log/vtund