More updates wrt. the change from tincd->tinc.

This commit is contained in:
Ivo Timmermans 2000-04-29 13:56:06 +00:00
parent 2371551014
commit 4dbf7022a2
3 changed files with 22 additions and 25 deletions

View file

@ -328,12 +328,12 @@ to this daemon.
The effect of this is that the daemon will set its configuration The effect of this is that the daemon will set its configuration
``root'' to /etc/tinc/nn/, where nn is your argument to the -n ``root'' to /etc/tinc/nn/, where nn is your argument to the -n
option. You'll notice that it appears in syslog as ``tincd.nn''. option. You'll notice that it appears in syslog as ``tinc.nn''.
However, it is not strictly necessary that you call tinc with the -n However, it is not strictly necessary that you call tinc with the -n
option. In this case, the network name would just be empty, and it will option. In this case, the network name would just be empty, and it will
be used as such. tinc now looks for files in /etc/tinc/, instead of be used as such. tinc now looks for files in /etc/tinc/, instead of
/etc/tinc/nn/; the configuration file should be /etc/tinc/tincd.conf, /etc/tinc/nn/; the configuration file should be /etc/tinc/tinc.conf,
and the passphrases are now expected to be in /etc/tinc/passphrases/. and the passphrases are now expected to be in /etc/tinc/passphrases/.
But it is highly recommended that you use this feature of tinc, because But it is highly recommended that you use this feature of tinc, because
@ -357,7 +357,7 @@ will try to connect to it, on the given port. If this fails, tinc exits.
@section Configuration file @section Configuration file
The actual configuration of the daemon is done in the file The actual configuration of the daemon is done in the file
@file{/etc/tinc/nn/tincd.conf}. @file{/etc/tinc/nn/tinc.conf}.
This file consists of comments (lines started with a #) or assignments This file consists of comments (lines started with a #) or assignments
in the form of in the form of
@ -481,7 +481,7 @@ ifconfig tap0 10.1.54.1 netmask 255.0.0.0
ifconfig eth0 10.1.54.1 netmask 255.255.0.0 broadcast 10.1.255.255 ifconfig eth0 10.1.54.1 netmask 255.255.0.0 broadcast 10.1.255.255
@end example @end example
and in /etc/tinc/tincd.conf: and in /etc/tinc/tinc.conf:
@example @example
TapDevice = /dev/tap0 TapDevice = /dev/tap0
@ -496,7 +496,7 @@ ifconfig tap0 10.2.1.12 netmask 255.0.0.0
ifconfig eth0 10.2.43.8 netmask 255.255.0.0 broadcast 10.2.255.255 ifconfig eth0 10.2.43.8 netmask 255.255.0.0 broadcast 10.2.255.255
@end example @end example
and in /etc/tinc/tincd.conf: and in /etc/tinc/tinc.conf:
@example @example
TapDevice = /dev/tap0 TapDevice = /dev/tap0
@ -517,7 +517,7 @@ ifconfig tap0 10.3.69.254 netmask 255.0.0.0
ifconfig eth0 10.3.69.254 netmask 255.255.0.0 broadcast 10.3.255.255 ifconfig eth0 10.3.69.254 netmask 255.255.0.0 broadcast 10.3.255.255
@end example @end example
and in /etc/tinc/A/tincd.conf: and in /etc/tinc/A/tinc.conf:
@example @example
MyVirtualIP = 10.3.69.254/16 MyVirtualIP = 10.3.69.254/16
@ -537,7 +537,7 @@ ifconfig tap0 10.4.3.32 netmask 255.0.0.0
ifconfig tap0 10.4.3.32 netmask 255.255.0.0 broadcast 10.4.255.255 ifconfig tap0 10.4.3.32 netmask 255.255.0.0 broadcast 10.4.255.255
@end example @end example
and in /etc/tinc/tincd.conf: and in /etc/tinc/tinc.conf:
@example @example
MyVirtualIP = 10.4.3.32/16 MyVirtualIP = 10.4.3.32/16
@ -645,7 +645,7 @@ generated automatically, so may be more up-to-date.
@table @asis @table @asis
@item -c, --config=FILE @item -c, --config=FILE
Read configuration options from FILE. The default is Read configuration options from FILE. The default is
@file{/etc/tinc/nn/tincd.conf}. @file{/etc/tinc/nn/tinc.conf}.
@item -d @item -d
Increase debug level. The higher it gets, the more gets Increase debug level. The higher it gets, the more gets
@ -660,7 +660,7 @@ packets themselves.
@item -k, --kill @item -k, --kill
Attempt to kill a running tincd and exit. A TERM signal (15) gets sent Attempt to kill a running tincd and exit. A TERM signal (15) gets sent
to the daemon that his its PID in /var/run/tincd.nn.pid. to the daemon that his its PID in /var/run/tinc.nn.pid.
Because it kills only one tincd, you should use -n here if you use it Because it kills only one tincd, you should use -n here if you use it
normally. normally.

View file

@ -44,7 +44,7 @@ fi
# $1 ... VPN to load # $1 ... VPN to load
vpn_load () { vpn_load () {
CFG="$TCONF/$1/tincd.conf" CFG="$TCONF/$1/tinc.conf"
[ -f $CFG ] || { echo "Error: $CFG does not exist" >&2 ; return 1 } [ -f $CFG ] || { echo "Error: $CFG does not exist" >&2 ; return 1 }
# load TINCD config # load TINCD config
@ -153,7 +153,7 @@ vpn_stop () {
ip route flush dev $TAP &> /dev/null ip route flush dev $TAP &> /dev/null
# kill the tincd daemon # kill the tincd daemon
PID="$TPIDS/tincd.$1.pid" PID="$TPIDS/tinc.$1.pid"
if [ -f $PID ]; then if [ -f $PID ]; then
$TINCD --net="$1" --kill &> /dev/null $TINCD --net="$1" --kill &> /dev/null
RET=$? RET=$?
@ -204,7 +204,7 @@ case "$1" in
status) status)
echo -n "Currently running VPNs: " echo -n "Currently running VPNs: "
for vpn in `ls -1 $TCONF`; do for vpn in `ls -1 $TCONF`; do
PID="$TPIDS/tincd.$vpn.pid" PID="$TPIDS/tinc.$vpn.pid"
echo -n "$vpn " echo -n "$vpn "
if [ -f $PID -a `ps ax | grep "^ *$(cat $PID)" | wc -l` -eq 1 ] if [ -f $PID -a `ps ax | grep "^ *$(cat $PID)" | wc -l` -eq 1 ]
then then

View file

@ -1,13 +1,14 @@
Summary: tinc vpn daemon Summary: tinc vpn daemon
Name: tinc Name: tinc
Version: 1.0 Version: 1.0pre1
Release: pre1 Release: 1
Copyright: GPL Copyright: GPL
Group: Networking 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}
Requires: /usr/bin/texi2html /usr/bin/install /usr/bin/patch #for building the package the following is required:
# /usr/bin/texi2html /usr/bin/install /usr/bin/patch
%description %description
tinc is cool! tinc is cool!
@ -18,24 +19,23 @@ See http://tinc.nl.linux.org/
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%build %build
#autoconf
#automake
./configure --prefix=/usr --sysconfdir=/etc ./configure --prefix=/usr --sysconfdir=/etc
make make
texi2html doc/tinc.texi /usr/bin/texi2html doc/tinc.texi
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
install -D redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/ /usr/bin/install -D 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
PEEREAL=peer.real.ip.number PEEREAL=peer.real.ip.number
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/tincd.conf cat <<END >$RPM_BUILD_ROOT/etc/tinc/$PEER/tinc.conf
#sample #sample
TapDevice = /dev/tap0 TapDevice = /dev/tap0
ConnectTo = $PEEREAL ConnectTo = $PEEREAL
@ -75,16 +75,13 @@ END
%postun %postun
%files %files
%doc AUTHORS ChangeLog NEWS README THANKS *.html %doc AUTHORS ChangeLog NEWS README THANKS *.html
#%defattr(-,root,root)
%config /etc/tinc %config /etc/tinc
/etc/rc.d /etc/rc.d
/usr/sbin /usr/sbin
/usr/lib/tinc /usr/lib/tinc
/usr/man /usr/man
/usr/info /usr/info/tinc.info
%changelog %changelog
* Tue Apr 18 2000 Mads Kiileric <mads@kiilerich.com> * Tue Apr 18 2000 Mads Kiileric <mads@kiilerich.com>