summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
author Matteo Bernardini2022-02-04 08:41:41 +0100
committer Willy Sudiarto Raharjo2022-02-04 11:53:44 +0100
commit1b6c3dcb4ab37d5e520e1b7ca16aecea888b42b2 (patch)
tree2bc37836a3172e7f73f3770913799189bdb6eb52 /network
parenteca3efeef7aead4c6b3515d9167129744def6f08 (diff)
downloadslackbuilds-1b6c3dcb4ab37d5e520e1b7ca16aecea888b42b2.tar.gz
network/t38modem: Removed (missing dependency).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/t38modem/README21
-rw-r--r--network/t38modem/doinst.sh26
-rw-r--r--network/t38modem/rc.t38modem152
-rw-r--r--network/t38modem/rc.t38modem.conf40
-rw-r--r--network/t38modem/resetmodem28
-rw-r--r--network/t38modem/slack-desc19
-rw-r--r--network/t38modem/t38modem.SlackBuild119
-rw-r--r--network/t38modem/t38modem.info10
8 files changed, 0 insertions, 415 deletions
diff --git a/network/t38modem/README b/network/t38modem/README
deleted file mode 100644
index d9f5eb211b..0000000000
--- a/network/t38modem/README
+++ /dev/null
@@ -1,21 +0,0 @@
-What is t38modem?
-
- * From your fax or voice application view point it's a fax/voice modem pool.
- * From IP network view point it's a H.323/SIP endpoint with T.38 fax support.
- * From your view point it's a gateway between an application and IP network.
-
-After installation update the /etc/rc.d/rc.t38modem.conf file with your SIP
-account details and add the following to your /etc/rc.d/rc.local script:
-
- if [ -x /etc/rc.d/rc.t38modem ]; then
- /etc/rc.d/rc.t38modem start
- fi
-
-Optionally, you can add the following to your /etc/rc.d/rc.local_shutdown:
-
- if [ -x /etc/rc.d/rc.t38modem ]; then
- /etc/rc.d/rc.t38modem stop
- fi
-
-If you are using this package with Asterisk there is a sample resetmodem script
-that can be placed in the your /var/spool/hylafax/etc directory.
diff --git a/network/t38modem/doinst.sh b/network/t38modem/doinst.sh
deleted file mode 100644
index 29b7e602de..0000000000
--- a/network/t38modem/doinst.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-config() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- # If there's no config file by that name, mv it over:
- if [ ! -r $OLD ]; then
- mv $NEW $OLD
- elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
- rm $NEW
- fi
- # Otherwise, we leave the .new copy for the admin to consider...
-}
-
-preserve_perms() {
- NEW="$1"
- OLD="$(dirname $NEW)/$(basename $NEW .new)"
- if [ -e $OLD ]; then
- cp -a $OLD ${NEW}.incoming
- cat $NEW > ${NEW}.incoming
- mv ${NEW}.incoming $NEW
- fi
- config $NEW
-}
-
-preserve_perms etc/rc.d/rc.t38modem.new
-config etc/rc.d/rc.t38modem.conf.new
-
diff --git a/network/t38modem/rc.t38modem b/network/t38modem/rc.t38modem
deleted file mode 100644
index 158debc2ef..0000000000
--- a/network/t38modem/rc.t38modem
+++ /dev/null
@@ -1,152 +0,0 @@
-#!/bin/sh
-
-#############################
-# READ T38MODEM CONFIG FILE #
-#############################
-
-# Get the configuration information from /etc/rc.d/rc.t38modem.conf:
-. /etc/rc.d/rc.t38modem.conf
-
-###########
-# LOGGING #
-###########
-
-# If possible, log events in /var/log/messages:
-if [ -f /var/run/syslogd.pid -a -x /usr/bin/logger ]; then
- LOGGER=/usr/bin/logger
-else # output to stdout/stderr:
- LOGGER=/bin/cat
-fi
-
-MAXMODEMS=6
-
-# Function to return PID of modem instance:
-modem_pid() {
- PID=$(ps -C t38modem -o pid,cmd | grep ${1} | grep -v grep | awk '{print $1}')
- echo "$PID"
-}
-
-# Function to start modem interface:
-modem_up() {
- i=0
- while [ $i -lt $MAXMODEMS ]; do
- if [ "${MODEMNAME[$i]}" = "${1}" ]; then
- PID=$(modem_pid "${1}")
- if [ -n "$PID" ]; then
- echo "Modem "${1}" already up..."
- else
- echo "Starting t38modem on ${1}..."
- # Build PTTY name
- PTTY=${PTTY[$i]}
- if [ -z "${PTTY}" ]; then
- PTTY="+/dev/${MODEMNAME[$i]}"
- fi
- # Start t38modem
- nohup \
- /usr/bin/t38modem \
- --no-h323 \
- --sip-t38-udptl-redundancy ${T38_REDUNDANCY[$i]} \
- --sip-listen udp\$*:${LISTEN_PORT[$i]} \
- --sip-register ${SIP_ACCOUNT[$i]}@${SIP_SERVER[$i]},${SIP_PASSWORD[$i]} \
- --ptty ${PTTY} \
- --force-fax-mode \
- --route "modem:.*=sip:<dn>@${SIP_SERVER[$i]}" \
- --route "sip:.*=modem:<dn>" \
- > /dev/null 2>&1 &
- fi
- break
- fi
- i=$(($i+1))
- done
-}
-
-# Function to stop modem interface:
-modem_down() {
- PID=$(modem_pid "${1}")
- if [ -n "$PID" ]; then
- echo "Stopping t38modem for modem ${1}..."
- kill $PID
- fi
-}
-
-# Function to report status on modem interface:
-modem_status() {
- PID=$(modem_pid "${1}")
- echo -n "Modem ${1}: "
- if [ -n "$PID" ]; then
- echo "up"
- else
- echo "down"
- fi
-}
-
-# Function to bring modems up:
-start() {
- for i in ${MODEMNAME[@]} ; do
- modem_up $i
- done
-}
-
-# Function to take modems down:
-stop() {
- for i in ${MODEMNAME[@]} ; do
- modem_down $i
- done
-}
-
-# Function to query modem states:
-status() {
- for i in ${MODEMNAME[@]} ; do
- modem_status $i
- done
-}
-
-############
-### MAIN ###
-############
-
-case "$1" in
-'start')
- start
- ;;
-'stop')
- stop
- ;;
-'restart')
- stop
- sleep 5
- start
- ;;
-'status')
- status
- ;;
-*_start)
- MODEM=$(echo $1 | /bin/cut -d '_' -f 1)
- modem_up $MODEM
- ;;
-*_stop)
- MODEM=$(echo $1 | /bin/cut -d '_' -f 1)
- modem_down $MODEM
- ;;
-*_restart)
- MODEM=$(echo $1 | /bin/cut -d '_' -f 1)
- modem_down $MODEM
- sleep 5
- modem_up $MODEM
- ;;
-*_status)
- MODEM=$(echo $1 | /bin/cut -d '_' -f 1)
- modem_status $MODEM
- ;;
-*_up)
- MODEM=$(echo $1 | /bin/cut -d '_' -f 1)
- modem_up $MODEM
- ;;
-*_down)
- MODEM=$(echo $1 | /bin/cut -d '_' -f 1)
- modem_down $MODEM
- ;;
-*)
- echo "usage: $0 start|stop|restart|status"
-esac
-
diff --git a/network/t38modem/rc.t38modem.conf b/network/t38modem/rc.t38modem.conf
deleted file mode 100644
index bb05c85527..0000000000
--- a/network/t38modem/rc.t38modem.conf
+++ /dev/null
@@ -1,40 +0,0 @@
-#####################################################
-# Must be set to the number of modems in the config #
-#####################################################
-
-# Config information for modem0:
-MODEMNAME[0]="ttyx0"
-PTTY[0]=""
-SIP_SERVER[0]=
-SIP_ACCOUNT[0]=
-SIP_PASSWORD[0]=
-LISTEN_PORT[0]=5060
-T38_REDUNDANCY[0]=3
-
-# Config information for modem1:
-MODEMNAME[1]="ttyx1"
-PTTY[1]=""
-SIP_SERVER[1]=
-SIP_ACCOUNT[1]=
-SIP_PASSWORD[1]=
-LISTEN_PORT[1]=5061
-T38_REDUNDANCY[1]=3
-
-# Config information for modem2:
-MODEMNAME[2]="ttyx2"
-PTTY[2]=""
-SIP_SERVER[2]=
-SIP_ACCOUNT[2]=
-SIP_PASSWORD[2]=
-LISTEN_PORT[2]=5062
-T38_REDUNDANCY[2]=3
-
-# Config information for modem3:
-MODEMNAME[3]="ttyx3"
-PTTY[3]=""
-SIP_SERVER[3]=
-SIP_ACCOUNT[3]=
-SIP_PASSWORD[3]=
-LISTEN_PORT[3]=5063
-T38_REDUNDANCY[3]=3
-
diff --git a/network/t38modem/resetmodem b/network/t38modem/resetmodem
deleted file mode 100644
index 661cec143c..0000000000
--- a/network/t38modem/resetmodem
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/bash
-
-# This script can be used to unwedge a stuck t38modem virtual modem. In order
-# to use this script, you'll need to do the following:
-#
-# Use the /etc/rc.d/rc.t38modem script provided to start/stop t38modem. This
-# will allow you to start up multiple virtual modems using a separate t38modem
-# process for each line. You can then start/stop/restart an individual modem
-# line without interrupting the other ongoing faxes.
-#
-# Using visudo, add the following to /etc/sudoers:
-#
-# # Hylafax system commands
-# uucp ALL=(ALL) NOPASSWD: /etc/rc.d/rc.t38modem
-#
-# Copy this file to the /var/spool/hylafax/etc and set its execute bit:
-#
-# cp /usr/doc/hylafax-3.15/Hylafax/resetmodem /var/spool/hylafax/etc
-# chmod +x /var/spool/hylafax/etc/resetmodem
-#
-
-DEV=$(basename $1)
-
-if [ "$DEV" = "ttyx0" -o "$DEV" = "ttyx1" -o "$DEV" = "ttyx2" -o "$DEV" = "ttyx3" ]; then
- sudo /etc/rc.d/rc.t38modem "${DEV}_restart"
-fi
-
-
diff --git a/network/t38modem/slack-desc b/network/t38modem/slack-desc
deleted file mode 100644
index 032acfd2f1..0000000000
--- a/network/t38modem/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description.
-# Line up the first '|' above the ':' following the base package name, and
-# the '|' on the right side marks the last column you can put a character in.
-# You must make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':' except on otherwise blank lines.
-
- |-----handy-ruler------------------------------------------------------|
-t38modem: t38modem (H.323/SIP endpoint with T.38 fax support)
-t38modem:
-t38modem: What is t38modem?
-t38modem: * From your fax or voice application view point it's a fax/voice
-t38modem: modem pool
-t38modem: * From IP network view point it's a H.323/SIP endpoint with T.38 fax
-t38modem: support
-t38modem: * From your view point it's a gateway between an application and IP
-t38modem: network
-t38modem:
-t38modem: Homepage: https://github.com/T38Modem/t38modem
diff --git a/network/t38modem/t38modem.SlackBuild b/network/t38modem/t38modem.SlackBuild
deleted file mode 100644
index 35ee4ee0d5..0000000000
--- a/network/t38modem/t38modem.SlackBuild
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/bash
-
-# Slackware build script for t38modem
-
-# Copyright 2015-2020 Chris Walker Kempner, TX
-# All rights reserved.
-#
-# Redistribution and use of this script, with or without modification, is
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of this script must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-cd $(dirname $0) ; CWD=$(pwd)
-
-PRGNAM=t38modem
-VERSION=${VERSION:-3.15}
-BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo}
-PKGTYPE=${PKGTYPE:-tgz}
-
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
-if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
- echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
- exit 0
-fi
-
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
-set -e
-
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-
-rm -rf $PRGNAM-$VERSION
-unzip $CWD/$PRGNAM-$VERSION.zip
-cd $PRGNAM-$VERSION
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-PTLIBDIR=/usr/share/ptlib \
-OPALDIR=$TMP/opal-${OPALVER:-3.10.15} \
- make USE_UNIX98_PTY=1 USE_LEGACY_PTY=1 USE_OPAL=1
-
-# Install binaries, READMEs, etc.,
-mkdir -p $PKG/usr/bin
-install -o root -g root t38modem $PKG/usr/bin
-
-mkdir -p $PKG/etc/rc.d
-install -o root -g root $CWD/rc.t38modem \
- $PKG/etc/rc.d/rc.t38modem.new
-install -o root -g root -m 600 $CWD/rc.t38modem.conf \
- $PKG/etc/rc.d/rc.t38modem.conf.new
-
-# Strip binaries and libraries
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/HylaFAX
-cp -a \
- $TMP/$PRGNAM-$VERSION/Changes.txt \
- $TMP/$PRGNAM-$VERSION/ReadMe.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- $CWD/resetmodem \
- $TMP/$PRGNAM-$VERSION/HylaFAX/config.ttyx \
- $PKG/usr/doc/$PRGNAM-$VERSION/HylaFAX
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
-
-cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/t38modem/t38modem.info b/network/t38modem/t38modem.info
deleted file mode 100644
index 09a7c9dc50..0000000000
--- a/network/t38modem/t38modem.info
+++ /dev/null
@@ -1,10 +0,0 @@
-PRGNAM="t38modem"
-VERSION="3.15"
-HOMEPAGE="https://github.com/T38Modem/t38modem"
-DOWNLOAD="https://github.com/T38Modem/t38modem/archive/3.15/t38modem-3.15.zip"
-MD5SUM="c340d2b6657ba81eaaab4a816367bbe0"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-REQUIRES="t38modem-opal"
-MAINTAINER="Chris Walker"
-EMAIL="kris240376@gmail.com"