1 Summary: tinc vpn daemon
6 Group: System Environment/Daemons
7 URL: http://tinc.nl.linux.org/
8 Source0: %{name}-%{version}.tar.gz
9 Buildroot: /var/tmp/%{name}-%{version}-%{release}
10 #for building the package the following is required:
11 # /usr/bin/texi2html /usr/bin/install /usr/bin/patch
15 See http://tinc.nl.linux.org/
19 %setup -q -n %{name}-%{version}
22 ./configure --prefix=/usr --sysconfdir=/etc
24 /usr/bin/texi2html doc/tinc.texi
27 rm -rf $RPM_BUILD_ROOT
28 make install DESTDIR=$RPM_BUILD_ROOT
30 /usr/bin/install -D redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
33 PEER=peer.vpn.ip.number
34 PEEREAL=peer.real.ip.number
37 mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
38 cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tinc.conf
45 cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/local
46 128 0c647a1fd34da9d04c1d340ae9363f31
48 cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/$PEER
49 128 aea5a5d414fea63ee3829b592afc0fba
53 rm -rf $RPM_BUILD_ROOT
58 /sbin/chkconfig --add tinc
60 grep -q '^tinc[[:space:]]' /etc/services || patch -s /etc/services << END
61 *** services.org Tue Apr 18 13:22:22 2000
62 --- services Tue Apr 18 13:24:19 2000
66 hmmp-ind 612/tcp dqs313_intercell# HMMP Indication / DQS
67 hmmp-ind 612/udp dqs313_intercell# HMMP Indication / DQS
68 + tinc 655/tcp TINC # tinc vpn
69 + tinc 655/udp TINC # tinc.nl.linux.org
71 # UNIX specific services
78 %doc AUTHORS ChangeLog NEWS README THANKS *.html
87 * Tue Apr 18 2000 Mads Kiileric <mads@kiilerich.com>