From a438ac911e7e60e54d7d1fc4f84373fab7e055af Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 12 Jul 2003 20:19:22 +0000 Subject: [PATCH] Removing distribution specific files from CVS. --- redhat/.cvsignore | 1 - redhat/README | 14 ---- redhat/tinc | 163 ---------------------------------------------- redhat/tinc.spec | 91 -------------------------- 4 files changed, 269 deletions(-) delete mode 100644 redhat/.cvsignore delete mode 100644 redhat/README delete mode 100644 redhat/tinc delete mode 100644 redhat/tinc.spec diff --git a/redhat/.cvsignore b/redhat/.cvsignore deleted file mode 100644 index 6179e0db..00000000 --- a/redhat/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Makefile Makefile.in diff --git a/redhat/README b/redhat/README deleted file mode 100644 index e8ed0dfa..00000000 --- a/redhat/README +++ /dev/null @@ -1,14 +0,0 @@ -To make tinc RPMs: - -copy tinc-???.tar.gz to /usr/src/redhat/SOURCES/ and run - - rpm -ba tinc.spec - -- and tinc.spec can be found in this directory. - -The rpm's will be placed in /usr/src/redhat/RPMS/i386 (e.g.). - - -Happy Hacking! - -Mads Kiilerich diff --git a/redhat/tinc b/redhat/tinc deleted file mode 100644 index 9fce4174..00000000 --- a/redhat/tinc +++ /dev/null @@ -1,163 +0,0 @@ -#!/bin/sh -# -# tinc tincd VPN setup script -# -# chkconfig: 2345 46 54 -# -# version: 1.0.8 -# authors: Lubomir Bulej -# Mads Kiilerich -# -# description: This script parses tinc configuration files for networks given \ -# in /etc/tinc/nets.boot and for each of the networks it sets up \ -# the interface and static routes and starts the tinc daemon. -# -# processname: tincd - -# Source function library. -. /etc/rc.d/init.d/functions - -# Source networking configuration. -. /etc/sysconfig/network - -# Check that networking is up. -[ ${NETWORKING} = "no" ] && exit 0 - -############################################################################# -# configuration & sanity checks - -TINCD=/usr/sbin/tincd -TCONF=/etc/tinc -TPIDS=/var/run -#DEBUG=-dddd - -NETSFILE=$TCONF/nets.boot - -# Check the daemon -if [ ! -x $TINCD ]; then - echo "**tinc: $TINCD does not exist or is not executable!" >&2 - exit -fi - -# Check the configuration directory -if [ ! -d $TCONF ]; then - echo "**tinc: configuration directory ($TCONF) not found!" >&2 - exit -fi - -# Check nets.boot -if [ ! -f $NETSFILE ]; then - echo "**tinc: file with list of VPNs to start ($NETSFILE) not found!" >&2 - exit -fi - -# Load names of networks to be started -NETS="$(sed -e 's/#.*//; s/[[:space:]]//g; /^$/ d' $NETSFILE)" - - -############################################################################## -# vpn_start () starts specified VPN -# -# $1 ... VPN to start - -vpn_start () { - # start tincd - $TINCD --net="$1" $DEBUG || \ - { MSG="could not start daemon for network $1"; return 3; } - return 0 -} # vpn_start - - -############################################################################## -# vpn_stop () Stops specified VPN -# -# $1 ... VPN to stop - -vpn_stop () { - # kill the tincd daemon - PID="$TPIDS/tinc.$1.pid" - if [ -f $PID ]; then - $TINCD --net="$1" --kill &> /dev/null - RET=$? - - if [ $RET -eq 0 ]; then - dly=0 - while [ $dly -le 5 ]; do - [ -f $PID ] || break - sleep 1; dly=$((dly + 1)) - done - fi - - # remove stale PID file - [ -f $PID ] && rm -f $PID - fi - return 0 -} # vpn_stop - - -# Check if there is anything to start -if [ ! -z "$1" -a "$1" != "status" -a -z "$NETS" ]; then - echo "**tinc: no networks found in $NETSFILE!" >&2 - exit -fi - - -# See how we were called. -case "$1" in - start) - for vpn in $NETS; do - echo -n "Bringing up TINC network $vpn: " - vpn_start $vpn && \ - success "startup of network $vpn" || \ - failure "startup of network $vpn" - echo - - if [ ! -z "$MSG" ]; then - [ ! -z "$ERR" ] && echo "$ERR" >&2 - echo "**tinc: $MSG" >&2 - fi - done - - touch /var/lock/subsys/tinc - ;; - - stop) - for vpn in $NETS; do - echo -n "Shutting down TINC network $vpn: " - vpn_stop $vpn && \ - success "shutdown of network $vpn" || \ - failure "shutdown of network $vpn" - echo - - if [ ! -z "$MSG" ]; then - [ ! -z "$ERR" ] && echo "$ERR" >&2 - echo "**tinc: $MSG" >&2 - fi - done - - rm -f /var/lock/subsys/tinc - ;; - - status) - echo -n "Configured VPNs: " - for vpn in $NETS; do - PID="$TPIDS/tinc.$vpn.pid" - - [ -f $PID ] && PID="$(cat $PID)" || PID="-dead-" - ps ax | grep "^[[:space:]]*$PID" && STS="OK" || STS="DEAD" - echo -n "$vpn:$STS " - done - echo - ;; - - restart) - $0 stop - $0 start - ;; - - *) - echo "Usage: tinc {start|stop|status|restart}" - exit 1 -esac - -exit 0 diff --git a/redhat/tinc.spec b/redhat/tinc.spec deleted file mode 100644 index b7357d93..00000000 --- a/redhat/tinc.spec +++ /dev/null @@ -1,91 +0,0 @@ -Summary: tinc Virtual Private Network daemon -Name: tinc -Version: 1.0 -Release: cvs -Copyright: GPL -Group: System Environment/Daemons -URL: http://tinc.nl.linux.org/ -Source0: %{name}-%{version}-%{release}.tar.gz -Buildroot: /var/tmp/%{name} -#-%{version}-%{release} -#Requires: iproute -# for building the package the following is required: -# /usr/bin/texi2html /usr/bin/patch - -%description -# 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/ - -%prep - -%setup -q -n %{name}-%{version}-%{release} - -%build -./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var -make -/usr/bin/texi2html doc/tinc.texi - -%install -rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT -gzip $RPM_BUILD_ROOT/usr/info/tinc.info - -mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/ -cp redhat/tinc $RPM_BUILD_ROOT/etc/rc.d/init.d/ - -mkdir -p $RPM_BUILD_ROOT/etc/tinc/ -touch $RPM_BUILD_ROOT/etc/tinc/nets.boot - -%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 # http://tinc.nl.linux.org/ - # - # UNIX specific services -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 -alias char-major-10-200 tun -END -/sbin/install-info /usr/info/tinc.info.gz /usr/info/dir - -%preun -/sbin/install-info --delete /usr/info/tinc.info.gz /usr/info/dir - -%postun - -%files -%doc AUTHORS ChangeLog NEWS README THANKS *.html -%config /etc/tinc/ -%attr(0755,root,root) /etc/rc.d/init.d/tinc -/usr/sbin/tincd -/usr/man/man5/tinc.conf.5 -/usr/man/man8/tincd.8 -/usr/info/tinc.info.gz -- 2.20.1