]> git.pld-linux.org Git - packages/vtun.git/blame - vtun.spec
- release 2
[packages/vtun.git] / vtun.spec
CommitLineData
a0153d5e 1## $Revision: 1.78 $, $Date: 2009-02-08 17:05:53 $
c2ef35e0 2#
df2a14e1 3# Conditional build:
c2ef35e0 4%bcond_without ssl # build without encryption ability
5#
8e6b0ccb 6Summary: Virtual tunnel over TCP/IP networks
b5b28518 7Summary(pl.UTF-8): Wirtualne tunele poprzez sieci TCP/IP
1dc48ba5 8Name: vtun
21a643ed 9Version: 3.0.2
a0153d5e 10Release: 2
91d79fbf 11Epoch: 2
1dc48ba5 12License: GPL
13Group: Networking/Daemons
9cc026ff 14Source0: http://dl.sourceforge.net/vtun/%{name}-%{version}.tar.gz
21a643ed 15# Source0-md5: d3d8bc4d58886498a1c338670eab9315
1dc48ba5 16Source1: %{name}.init
b32c5512 17Source2: %{name}.sysconfig
3b89ce95 18Patch1: %{name}-autoheader.patch
19Patch2: %{name}-sslauth.patch
20Patch3: %{name}-linking.patch
a21572dc 21URL: http://vtun.sourceforge.net/
3fd96c97 22BuildRequires: autoconf
59c6eeff 23BuildRequires: automake
9cc026ff
JB
24BuildRequires: bison
25BuildRequires: flex
2d4baaf0 26BuildRequires: lzo-devel >= 2.0.1
3a6d8a84 27%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
dbe44cd3 28BuildRequires: rpmbuild(macros) >= 1.268
c3d615ff 29BuildRequires: zlib-devel
9cc026ff 30Requires(post,preun): /sbin/chkconfig
23c4c207 31Requires: rc-scripts
1dc48ba5 32Obsoletes: vppp
c2ef35e0 33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1dc48ba5 34
35%define _localstatedir /var
36
37%description
f9b827b2 38VTun provides the method for creating Virtual Tunnels over TCP/IP
39networks and allows to shape, compress, encrypt traffic in that
40tunnels. Supported type of tunnels are: PPP, IP, Ethernet and most of
41other serial protocols and programs. VTun is easily and highly
42configurable, it can be used for various network task like VPN, Mobil
43IP, Shaped Internet access, IP address saving, etc. It is completely
44user space implementation and does not require modification to any
45kernel parts. You need SSLeay-devel and lzo-devel to build it.
1dc48ba5 46
49f82e4a
JR
47%description -l pl.UTF-8
48VTun umożliwia tworzenie tuneli poprzez sieci TCP/IP wraz z
49przydzielaniem pasma, kompresją, szyfrowaniem danych w tunelach.
50Wspierane typy tuneli to: PPP, IP, Ethernet i większość pozostałych
51protokołów szeregowych. VTun jest łatwy i elastyczny w konfiguracji.
52Może zostać wykorzystany do takich sieciowych zastosowań jak VPN,
53Mobil IP, łącza o określonym paśmie oraz innych. Działa w warstwie
54user space, więc nie wymaga dodatkowego wsparcia w jądrze.
8aa2c96b 55
1dc48ba5 56%prep
cecb1bd4 57%setup -q
3b89ce95 58%patch1 -p1
0ce71b67 59%patch2 -p1
3b89ce95 60%patch3 -p1
280204c6 61
1dc48ba5 62%build
59c6eeff 63cp -f /usr/share/automake/config.* .
34eb26dd 64# aclocal.m4 is only local, don't try to rebuild
cecb1bd4 65#%{__autoheader}
61e7a59f 66%{__autoconf}
1dc48ba5 67%configure \
c2ef35e0 68 %{?with_ssl:--with-crypto-headers=%{_includedir}/openssl} \
69 %{!?with_ssl:--disable-ssl} \
d8ba586c 70 --enable-lzo
d5c1d2f4 71%{__make}
1dc48ba5 72
73%install
74rm -rf $RPM_BUILD_ROOT
c3d615ff 75install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
ba516adb 76 $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_localstatedir}/log/vtun}
1dc48ba5 77
34eb26dd
JB
78%{__make} install \
79 DESTDIR=$RPM_BUILD_ROOT \
80 INSTALL_OWNER=""
1dc48ba5 81
2b4a6e71 82install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/vtund
83install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/vtun
5e120748 84touch $RPM_BUILD_ROOT%{_sysconfdir}/vtund.conf
d99e70ff 85rm -f $RPM_BUILD_ROOT%{_mandir}/man8/vtun.8
57bbd873 86echo ".so vtund.8" > $RPM_BUILD_ROOT%{_mandir}/man8/vtun.8
1dc48ba5 87
2896b950
JB
88%clean
89rm -rf $RPM_BUILD_ROOT
90
1dc48ba5 91%post
ac498ad8 92/sbin/chkconfig --add vtund
dbe44cd3 93%service vtund restart "vtun daemons"
1dc48ba5 94
95%preun
ac498ad8 96if [ "$1" = "0" ]; then
dbe44cd3 97 %service vtund stop
ac498ad8 98 /sbin/chkconfig --del vtund
99fi
1dc48ba5 100
1dc48ba5 101%files
102%defattr(644,root,root,755)
5e120748 103%doc ChangeLog Credits README README.Setup README.Shaper FAQ TODO vtund.conf
2b4a6e71 104%attr(754,root,root) /etc/rc.d/init.d/vtund
23c4c207
ER
105%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vtun
106%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vtund.conf
1dc48ba5 107%attr(755,root,root) %{_sbindir}/vtund
108%attr(755,root,root) %dir /var/log/vtund
d8ba586c 109%{_mandir}/man*/*
This page took 0.109643 seconds and 4 git commands to generate.