Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jun 21, 2020
0 parents commit c1052ac
Show file tree
Hide file tree
Showing 101 changed files with 51,137 additions and 0 deletions.
340 changes: 340 additions & 0 deletions COPYING

Large diffs are not rendered by default.

1,281 changes: 1,281 additions & 0 deletions ChangeLog

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions Debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
#
# description: install thebridge startup scripts on Debian Linux (LSB System)
# $Id: install,v 1.1 2012/12/10 06:00:13 wb6ymh Exp $

set -x
cd ..
make install
cd Debian

ln -s /usr/local/libexec/tbd /usr/sbin
cp tbd /etc/init.d/

update-rc.d tbd defaults
54 changes: 54 additions & 0 deletions Debian/tbd
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/sh
# tbd - Start/Stop thebridge Radio-Over-IP software
# by VE7LTD - Nov 29, 2012

### BEGIN INIT INFO
# Provides: tbd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts/Stops thebridge daemon
### END INIT INFO

set -e

TBD="/usr/sbin/tbd"
OPTIONS="-s"

# Check for daemon presence
[ -x "$TBD" ] || exit 0

# Get lsb functions
. /lib/lsb/init-functions

case "$1" in
start)
log_begin_msg "Starting thebridge ... "
start-stop-daemon --start --quiet --oknodo --exec "$TBD" -- "$OPTIONS"
log_end_msg $?
;;
stop)
log_begin_msg "Stopping thebridge ... "
start-stop-daemon --stop --quiet --oknodo --retry 2 --exec "$TBD" -- "$OPTIONS"
log_end_msg $?
;;
restart)
$0 stop
sleep 1
$0 start
;;
reload|force-reload)
log_begin_msg "Reloading tbd.conf ... "
start-stop-daemon --stop --signal HUP --exec "$TBD"
log_end_msg $?
;;
status)
status_of_proc "$TBD" tbd
;;
*)
log_success_msg "Usage: /etc/init.d/tbd {start|stop|restart|reload|force-reload|status}"
exit 1
esac
12 changes: 12 additions & 0 deletions Debian/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
#
# description: remove thebridge startup scripts on Debian Linux (LSB System)
# $Id: uninstall,v 1.1 2012/12/10 06:00:13 wb6ymh Exp $

set -x
update-rc.d -f tbd remove
rm /usr/sbin/tbd
rm /etc/rc.d/init.d/tbd
cd ..
make uninstall
cd Debian
11 changes: 11 additions & 0 deletions FreeBSD/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# description: install thebridge startup scripts on FreeBSD
# $Id: install,v 1.1.1.1 2002/08/10 20:33:40 wb6ymh Exp $

set -x
cd ..
make install
cd FreeBSD
cp tbd.sh /usr/local/etc/rc.d

18 changes: 18 additions & 0 deletions FreeBSD/tbd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Start thebridge
# $Id: tbd.sh,v 1.1.1.1 2002/08/10 20:33:40 wb6ymh Exp $

pidfiledir=/var/run
tbd=/usr/local/libexec/tbd

# start
if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
if [ -f $tbd ]; then
echo -n ' thebridge'
$tbd -s
fi

# stop
elif [ "x$1" = "xstop" ]; then
kill `cat $pidfiledir/tbd.pid`
fi

11 changes: 11 additions & 0 deletions FreeBSD/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# description: remove thebridge startup scripts from FreeBSD
# $Id: uninstall,v 1.1.1.1 2002/08/10 20:33:40 wb6ymh Exp $

set -x
rm /usr/local/etc/rc.d
cd ..
make uninstall
cd FreeBSD

44 changes: 44 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# $Log: Makefile.am,v $
# Revision 1.8 2008/03/05 15:29:43 wb6ymh
# Updated for 0.95 release.
#
# Revision 1.7 2007/06/29 16:52:25 wb6ymh
# Removed config from EXTRA_DIST so make distcheck works for non-root user.
# This automake/autoconfig stuff makes my head hurt!
#
# Revision 1.6 2004/11/22 01:05:55 wb6ymh
# Changed tbd.conf to tbd.conf.sample to prevent accidents.
#
# Revision 1.5 2003/09/01 00:32:17 wb6ymh
# Added zlib and tbdcmd to SUBDIRS.
# Added SCRIPTING.txt to EXTRA_DIST.
#
# Revision 1.4 2002/12/29 20:16:52 wb6ymh
# Removed config from EXTRA_DIST, it doesn't belong there and it prevented make distcheck
# from working correctly unless make was run as root.
#
# Revision 1.3 2002/11/02 19:10:37 wb6ymh
# Added common and inc subdirectories.
#
# Revision 1.2 2002/08/31 23:26:32 wb6ymh
# README.WIN32 -> README.txt
#
# Revision 1.1.1.1 2002/08/10 20:33:40 wb6ymh
# initial import
#

SUBDIRS = common zlib src inc tbdcmd addons
EXTRA_DIST = theBridge.dsp tbd.conf.sample README.txt FreeBSD RedHat \
SCRIPTING.txt Debian

sysconf_DATA = tbd.conf.sample

dist-hook:
echo "// This file is automatically generated by configure" > $(distdir)/config.h.win32
echo "// DO NOT EDIT" >> $(distdir)/config.h.win32
echo "" >> $(distdir)/config.h.win32
grep PACKAGE config.h >> $(distdir)/config.h.win32
grep VERSION config.h >> $(distdir)/config.h.win32
rm -rf $(distdir)/FreeBSD/CVS
rm -rf $(distdir)/RedHat/CVS
rm -rf $(distdir)/Debian/CVS
Loading

0 comments on commit c1052ac

Please sign in to comment.