Updates by Mads Kiilerich.
This commit is contained in:
parent
ca6abd41ea
commit
a92604fa5d
1 changed files with 41 additions and 18 deletions
|
@ -1,17 +1,27 @@
|
||||||
Summary: tinc vpn daemon
|
Summary: tinc Virtual Private Network daemon
|
||||||
Name: tinc
|
Name: tinc
|
||||||
Version: 1.0pre1
|
Version: 1.0pre1
|
||||||
Release: 1
|
Release: 2
|
||||||
Copyright: GPL
|
Copyright: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://tinc.nl.linux.org/
|
URL: http://tinc.nl.linux.org/
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Buildroot: /var/tmp/%{name}-%{version}-%{release}
|
Buildroot: /var/tmp/%{name}-%{version}-%{release}
|
||||||
#for building the package the following is required:
|
# for building the package the following is required:
|
||||||
# /usr/bin/texi2html /usr/bin/install /usr/bin/patch
|
# /usr/bin/texi2html /usr/bin/patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
tinc is cool!
|
# 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.
|
||||||
|
|
||||||
See http://tinc.nl.linux.org/
|
See http://tinc.nl.linux.org/
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
@ -26,8 +36,10 @@ make
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
gzip $RPM_BUILD_ROOT/usr/info/tinc.info
|
||||||
|
|
||||||
/usr/bin/install -D redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
||||||
|
cp redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
||||||
|
|
||||||
ME=my.vpn.ip.number
|
ME=my.vpn.ip.number
|
||||||
PEER=peer.vpn.ip.number
|
PEER=peer.vpn.ip.number
|
||||||
|
@ -36,7 +48,11 @@ PEEREAL=peer.real.ip.number
|
||||||
umask 077
|
umask 077
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
|
mkdir -p $RPM_BUILD_ROOT/etc/tinc/$PEER/passphrases
|
||||||
cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tinc.conf
|
cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tinc.conf
|
||||||
#sample
|
# Sample tinc configuration.
|
||||||
|
# Insert your own ip numbers instead of the placeholders,
|
||||||
|
# and be sure to use your own passphrases.
|
||||||
|
# See man tinc.conf(5) tincd(8) genauth(8), info tinc and
|
||||||
|
# /usr/doc/%{name}-%{version}/tinc.conf.sample
|
||||||
TapDevice = /dev/tap0
|
TapDevice = /dev/tap0
|
||||||
ConnectTo = $PEEREAL
|
ConnectTo = $PEEREAL
|
||||||
MyVirtualIP = $ME/32
|
MyVirtualIP = $ME/32
|
||||||
|
@ -71,18 +87,25 @@ grep -q '^tinc[[:space:]]' /etc/services || patch -s /etc/services << END
|
||||||
# UNIX specific services
|
# UNIX specific services
|
||||||
END
|
END
|
||||||
|
|
||||||
|
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
|
||||||
|
END
|
||||||
|
/sbin/install-info /usr/info/tinc.info.gz /usr/info/dir --entry= \
|
||||||
|
"* tinc: (tinc). The tinc Manual."
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%postun
|
%postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS ChangeLog NEWS README THANKS *.html
|
%doc AUTHORS ChangeLog NEWS README THANKS *.html doc/tincd.conf.sample
|
||||||
%config /etc/tinc
|
%config /etc/tinc/
|
||||||
/etc/rc.d
|
/etc/rc.d/init.d/tinc
|
||||||
/usr/sbin
|
/usr/sbin/genauth
|
||||||
/usr/lib/tinc
|
/usr/sbin/tincd
|
||||||
/usr/man
|
/usr/lib/tinc/
|
||||||
/usr/info/tinc.info
|
/usr/man/man5/tincd.conf.5
|
||||||
|
/usr/man/man8/genauth.8
|
||||||
%changelog
|
/usr/man/man8/tincd.8
|
||||||
* Tue Apr 18 2000 Mads Kiileric <mads@kiilerich.com>
|
/usr/info/tinc.info.gz
|
||||||
- initial rpm
|
|
||||||
|
|
Loading…
Reference in a new issue