2000-05-01 19:17:09 +00:00
|
|
|
Summary: tinc Virtual Private Network daemon
|
2000-04-18 15:09:11 +00:00
|
|
|
Name: tinc
|
2001-06-29 15:33:18 +00:00
|
|
|
Version: 1.0
|
|
|
|
Release: cvs
|
2000-04-18 15:09:11 +00:00
|
|
|
Copyright: GPL
|
2000-04-29 13:56:06 +00:00
|
|
|
Group: System Environment/Daemons
|
2000-04-18 15:09:11 +00:00
|
|
|
URL: http://tinc.nl.linux.org/
|
2001-06-29 15:33:18 +00:00
|
|
|
Source0: %{name}-%{version}-%{release}.tar.gz
|
|
|
|
Buildroot: /var/tmp/%{name}
|
|
|
|
#-%{version}-%{release}
|
|
|
|
#Requires: iproute
|
2000-05-01 19:17:09 +00:00
|
|
|
# for building the package the following is required:
|
|
|
|
# /usr/bin/texi2html /usr/bin/patch
|
2000-04-18 15:09:11 +00:00
|
|
|
|
|
|
|
%description
|
2000-05-01 19:17:09 +00:00
|
|
|
# taken from doc/tinc.texi
|
|
|
|
tinc is a Virtual Private Network (VPN) daemon that uses tunneling and
|
|
|
|
encryption to create a secure private network between hosts on the
|
|
|
|
Internet.
|
|
|
|
|
|
|
|
Because the tunnel appears to the IP level network code as a normal
|
|
|
|
network device, there is no need to adapt any existing software.
|
|
|
|
|
|
|
|
This tunneling allows VPN sites to share information with each other
|
|
|
|
over the Internet without exposing any information to others.
|
|
|
|
|
2000-04-18 15:09:11 +00:00
|
|
|
See http://tinc.nl.linux.org/
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2001-06-29 15:33:18 +00:00
|
|
|
%setup -q -n %{name}-%{version}-%{release}
|
2000-04-18 15:09:11 +00:00
|
|
|
|
|
|
|
%build
|
2001-06-29 15:33:18 +00:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
2000-04-18 15:09:11 +00:00
|
|
|
make
|
2000-04-29 13:56:06 +00:00
|
|
|
/usr/bin/texi2html doc/tinc.texi
|
2000-04-18 15:09:11 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2000-05-01 19:17:09 +00:00
|
|
|
gzip $RPM_BUILD_ROOT/usr/info/tinc.info
|
2000-04-18 15:09:11 +00:00
|
|
|
|
2000-05-01 19:17:09 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
|
|
|
cp redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
2000-04-18 20:43:24 +00:00
|
|
|
|
2001-06-29 15:33:18 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/tinc/
|
|
|
|
touch $RPM_BUILD_ROOT/etc/tinc/nets.boot
|
2000-04-18 15:09:11 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%post
|
|
|
|
|
|
|
|
/sbin/chkconfig --add tinc
|
|
|
|
|
|
|
|
grep -q '^tinc[[:space:]]' /etc/services || patch -s /etc/services << END
|
|
|
|
*** services.org Tue Apr 18 13:22:22 2000
|
|
|
|
--- services Tue Apr 18 13:24:19 2000
|
|
|
|
***************
|
|
|
|
*** 145,148 ****
|
|
|
|
--- 145,150 ----
|
|
|
|
hmmp-ind 612/tcp dqs313_intercell# HMMP Indication / DQS
|
|
|
|
hmmp-ind 612/udp dqs313_intercell# HMMP Indication / DQS
|
|
|
|
+ tinc 655/tcp TINC # tinc vpn
|
2000-05-01 21:47:12 +00:00
|
|
|
+ tinc 655/udp TINC # http://tinc.nl.linux.org/
|
2000-04-18 15:09:11 +00:00
|
|
|
#
|
|
|
|
# UNIX specific services
|
|
|
|
END
|
|
|
|
|
2000-05-01 19:17:09 +00:00
|
|
|
grep -q '^alias tap0' /etc/conf.modules || cat >> /etc/conf.modules << END
|
|
|
|
# tinc uses ethertap/netlink
|
|
|
|
alias tap0 ethertap
|
|
|
|
alias char-major-36 netlink_dev
|
2001-06-29 15:33:18 +00:00
|
|
|
alias char-major-10-200 tun
|
2000-05-01 19:17:09 +00:00
|
|
|
END
|
2000-05-03 15:01:54 +00:00
|
|
|
/sbin/install-info /usr/info/tinc.info.gz /usr/info/dir
|
2000-05-01 19:17:09 +00:00
|
|
|
|
2000-04-18 15:09:11 +00:00
|
|
|
%preun
|
2000-05-03 15:01:54 +00:00
|
|
|
/sbin/install-info --delete /usr/info/tinc.info.gz /usr/info/dir
|
2000-05-01 21:31:17 +00:00
|
|
|
|
2000-04-18 15:09:11 +00:00
|
|
|
%postun
|
|
|
|
|
|
|
|
%files
|
2001-06-29 15:33:18 +00:00
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS *.html
|
2000-05-01 19:17:09 +00:00
|
|
|
%config /etc/tinc/
|
2000-05-03 15:01:54 +00:00
|
|
|
%attr(0755,root,root) /etc/rc.d/init.d/tinc
|
2000-05-01 19:17:09 +00:00
|
|
|
/usr/sbin/tincd
|
2000-05-01 21:47:12 +00:00
|
|
|
/usr/man/man5/tinc.conf.5
|
2000-05-01 19:17:09 +00:00
|
|
|
/usr/man/man8/tincd.8
|
|
|
|
/usr/info/tinc.info.gz
|