1 Summary: tinc vpn daemon
7 URL: http://tinc.nl.linux.org/
8 Source0: %{name}-%{version}.tar.gz
9 Buildroot: /var/tmp/%{name}-%{version}-%{release}
14 See http://tinc.nl.linux.org/
18 %setup -q -n %{name}-%{version}
23 ./configure --prefix=/usr --sysconfdir=/etc
27 rm -rf $RPM_BUILD_ROOT
28 make install DESTDIR=$RPM_BUILD_ROOT
30 install -D redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
33 PEER=peer.vpn.ip.number
34 PEEREAL=peer.real.ip.number
36 mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
37 cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tincd.conf
44 cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/local
45 128 0c647a1fd34da9d04c1d340ae9363f31
47 cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/$PEER
48 128 aea5a5d414fea63ee3829b592afc0fba
52 rm -rf $RPM_BUILD_ROOT
57 /sbin/chkconfig --add tinc
59 grep -q '^tinc[[:space:]]' /etc/services || patch -s /etc/services << END
60 *** services.org Tue Apr 18 13:22:22 2000
61 --- services Tue Apr 18 13:24:19 2000
65 hmmp-ind 612/tcp dqs313_intercell# HMMP Indication / DQS
66 hmmp-ind 612/udp dqs313_intercell# HMMP Indication / DQS
67 + tinc 655/tcp TINC # tinc vpn
68 + tinc 655/udp TINC # tinc.nl.linux.org
70 # UNIX specific services
78 %doc AUTHORS ChangeLog NEWS README THANKS TODO
80 #%defattr(-,root,root)
89 * Tue Apr 18 2000 Mads Kiileric <mads@kiilerich.com>