More updates wrt. the change from tincd->tinc.
This commit is contained in:
parent
2371551014
commit
4dbf7022a2
3 changed files with 22 additions and 25 deletions
|
@ -44,7 +44,7 @@ fi
|
|||
# $1 ... VPN to load
|
||||
|
||||
vpn_load () {
|
||||
CFG="$TCONF/$1/tincd.conf"
|
||||
CFG="$TCONF/$1/tinc.conf"
|
||||
[ -f $CFG ] || { echo "Error: $CFG does not exist" >&2 ; return 1 }
|
||||
|
||||
# load TINCD config
|
||||
|
@ -153,7 +153,7 @@ vpn_stop () {
|
|||
ip route flush dev $TAP &> /dev/null
|
||||
|
||||
# kill the tincd daemon
|
||||
PID="$TPIDS/tincd.$1.pid"
|
||||
PID="$TPIDS/tinc.$1.pid"
|
||||
if [ -f $PID ]; then
|
||||
$TINCD --net="$1" --kill &> /dev/null
|
||||
RET=$?
|
||||
|
@ -204,7 +204,7 @@ case "$1" in
|
|||
status)
|
||||
echo -n "Currently running VPNs: "
|
||||
for vpn in `ls -1 $TCONF`; do
|
||||
PID="$TPIDS/tincd.$vpn.pid"
|
||||
PID="$TPIDS/tinc.$vpn.pid"
|
||||
echo -n "$vpn "
|
||||
if [ -f $PID -a `ps ax | grep "^ *$(cat $PID)" | wc -l` -eq 1 ]
|
||||
then
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
Summary: tinc vpn daemon
|
||||
Name: tinc
|
||||
Version: 1.0
|
||||
Release: pre1
|
||||
Version: 1.0pre1
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Group: Networking
|
||||
Group: System Environment/Daemons
|
||||
URL: http://tinc.nl.linux.org/
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
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
|
||||
tinc is cool!
|
||||
|
@ -18,24 +19,23 @@ See http://tinc.nl.linux.org/
|
|||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
#autoconf
|
||||
#automake
|
||||
./configure --prefix=/usr --sysconfdir=/etc
|
||||
make
|
||||
texi2html doc/tinc.texi
|
||||
/usr/bin/texi2html doc/tinc.texi
|
||||
|
||||
%install
|
||||
rm -rf $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
|
||||
PEER=peer.vpn.ip.number
|
||||
PEEREAL=peer.real.ip.number
|
||||
|
||||
umask 077
|
||||
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
|
||||
TapDevice = /dev/tap0
|
||||
ConnectTo = $PEEREAL
|
||||
|
@ -75,16 +75,13 @@ END
|
|||
%postun
|
||||
|
||||
%files
|
||||
|
||||
%doc AUTHORS ChangeLog NEWS README THANKS *.html
|
||||
|
||||
#%defattr(-,root,root)
|
||||
%config /etc/tinc
|
||||
/etc/rc.d
|
||||
/usr/sbin
|
||||
/usr/lib/tinc
|
||||
/usr/man
|
||||
/usr/info
|
||||
/usr/info/tinc.info
|
||||
|
||||
%changelog
|
||||
* Tue Apr 18 2000 Mads Kiileric <mads@kiilerich.com>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue