2000-04-18 15:09:11 +00:00
|
|
|
Summary: tinc vpn daemon
|
|
|
|
Name: tinc
|
2000-04-18 20:43:24 +00:00
|
|
|
Version: 1.0
|
|
|
|
Release: pre1
|
2000-04-18 15:09:11 +00:00
|
|
|
Copyright: GPL
|
|
|
|
Group: Networking
|
|
|
|
URL: http://tinc.nl.linux.org/
|
2000-04-18 20:43:24 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
Buildroot: /var/tmp/%{name}-%{version}-%{release}
|
2000-04-25 10:27:44 +00:00
|
|
|
Requires: /usr/bin/texi2html /usr/bin/install /usr/bin/patch
|
2000-04-18 15:09:11 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
tinc is cool!
|
|
|
|
See http://tinc.nl.linux.org/
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2000-04-18 20:43:24 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2000-04-18 15:09:11 +00:00
|
|
|
|
|
|
|
%build
|
2000-04-18 20:43:24 +00:00
|
|
|
#autoconf
|
|
|
|
#automake
|
2000-04-18 15:09:11 +00:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc
|
|
|
|
make
|
2000-04-25 10:27:44 +00:00
|
|
|
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-04-18 20:43:24 +00:00
|
|
|
install -D redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
|
|
|
|
|
|
|
ME=my.vpn.ip.number
|
|
|
|
PEER=peer.vpn.ip.number
|
|
|
|
PEEREAL=peer.real.ip.number
|
2000-04-18 15:09:11 +00:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
|
|
|
|
cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tincd.conf
|
|
|
|
#sample
|
|
|
|
TapDevice = /dev/tap0
|
|
|
|
ConnectTo = $PEEREAL
|
|
|
|
MyVirtualIP = $ME/32
|
|
|
|
AllowConnect = no
|
|
|
|
END
|
|
|
|
cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/local
|
|
|
|
128 0c647a1fd34da9d04c1d340ae9363f31
|
|
|
|
END
|
|
|
|
cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases/$PEER
|
|
|
|
128 aea5a5d414fea63ee3829b592afc0fba
|
|
|
|
END
|
|
|
|
|
|
|
|
%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
|
|
|
|
+ tinc 655/udp TINC # tinc.nl.linux.org
|
|
|
|
#
|
|
|
|
# UNIX specific services
|
|
|
|
END
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
2000-04-25 10:27:44 +00:00
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO *.html
|
2000-04-18 15:09:11 +00:00
|
|
|
|
|
|
|
#%defattr(-,root,root)
|
|
|
|
%config /etc/tinc
|
|
|
|
/etc/rc.d
|
|
|
|
/usr/sbin
|
|
|
|
/usr/lib/tinc
|
|
|
|
/usr/man
|
|
|
|
/usr/info
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Tue Apr 18 2000 Mads Kiileric <mads@kiilerich.com>
|
|
|
|
- initial rpm
|