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