summaryrefslogtreecommitdiffstats
path: root/network/t38modem/t38modem.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/t38modem/t38modem.SlackBuild')
-rw-r--r--network/t38modem/t38modem.SlackBuild35
1 files changed, 17 insertions, 18 deletions
diff --git a/network/t38modem/t38modem.SlackBuild b/network/t38modem/t38modem.SlackBuild
index b0690134e9..489b096299 100644
--- a/network/t38modem/t38modem.SlackBuild
+++ b/network/t38modem/t38modem.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for t38modem
-# Copyright 2015 Christopher Walker Copperas Cove, TX
+# Copyright 2015-2020 Chris Walker Kempner, TX
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=t38modem
-VERSION=${VERSION:-2.0.0}
+VERSION=${VERSION:-3.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -61,8 +61,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz
-tar xvf $CWD/${PRGNAM}_${VERSION}-4.debian.tar.gz
+unzip $CWD/$PRGNAM-$VERSION.zip
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -71,23 +70,21 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-#
-# Apply patches
-#
-patch -p1 <$TMP/debian/patches/t38modem-opal3.10-patch
-patch -p1 <$TMP/debian/patches/spelling-error-fix
-patch -p1 <$TMP/debian/patches/opal-3.10.7.patch
-patch -p1 <$TMP/debian/patches/opal-3.10.9.patch
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
PTLIBDIR=/usr/share/ptlib \
-OPALDIR=$TMP/opal-${OPALVER:-3.10.10} \
- make USE_UNIX98_PTY=1 USE_LEGACY_PTY=1 USE_OPAL=1 opt
+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 obj_linux_*_opal/t38modem $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 \
@@ -99,12 +96,14 @@ cp -a \
$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:-tgz}