summaryrefslogtreecommitdiff
path: root/network/yate
diff options
context:
space:
mode:
authorMichales Michaloudes <korgie@gmail.com>2017-10-12 23:14:50 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-10-14 14:47:00 +0100
commit51d99d0548c058c7fde7c0e350d9dcf68b07ac2a (patch)
tree41bdb2db0d9ab3c0222ac79acc98839a00191cc1 /network/yate
parent05c9525b0cc432d4b962834e7e19464fd1d724e0 (diff)
downloadslackbuilds-51d99d0548c058c7fde7c0e350d9dcf68b07ac2a.tar.gz
network/yate: Added (Yet Another Telephony Engine).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/yate')
-rw-r--r--network/yate/README11
-rw-r--r--network/yate/doinst.sh3
-rw-r--r--network/yate/slack-desc19
-rw-r--r--network/yate/yate.SlackBuild98
-rw-r--r--network/yate/yate.info10
5 files changed, 141 insertions, 0 deletions
diff --git a/network/yate/README b/network/yate/README
new file mode 100644
index 0000000000..70293624b8
--- /dev/null
+++ b/network/yate/README
@@ -0,0 +1,11 @@
+Yate is a next-generation telephony engine; while currently focused on Voice
+over Internet Protocol (VoIP) and PSTN, its power lies in its ability to be
+easily extended. Voice, video, data and instant messenging can all be unified
+under Yate's flexible routing engine, maximizing communications efficiency
+and minimizing infrastructure costs for businesses.
+
+Optional dependencies: postgresql, speex, amrnb
+
+To build with SSE2 instructions, set the option SSE2=yes:
+
+ SSE2=yes ./yate.SlackBuild
diff --git a/network/yate/doinst.sh b/network/yate/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/network/yate/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/network/yate/slack-desc b/network/yate/slack-desc
new file mode 100644
index 0000000000..9032cabc03
--- /dev/null
+++ b/network/yate/slack-desc
@@ -0,0 +1,19 @@
+# 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------------------------------------------------------|
+yate: yate (Yet Another Telephony Engine)
+yate:
+yate: Yate is a next-generation telephony engine; while currently focused
+yate: on Voice over Internet Protocol (VoIP) and PSTN, its power lies in
+yate: its ability to be easily extended. Voice, video, data and instant
+yate: messenging can all be unified under Yate's flexible routing engine,
+yate: maximizing communications efficiency and minimizing infrastructure
+yate: costs for businesses.
+yate:
+yate:
+yate:
diff --git a/network/yate/yate.SlackBuild b/network/yate/yate.SlackBuild
new file mode 100644
index 0000000000..820212106e
--- /dev/null
+++ b/network/yate/yate.SlackBuild
@@ -0,0 +1,98 @@
+#!/bin/sh
+# Slackware build script for yate
+#
+# Michales (clavisound) Michaloudes korgie@gmail.com <2013, 2017>
+
+PRGNAM=yate
+VERSION=${VERSION:-5.5.0_1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SRCVER=$(echo $VERSION | tr _ -)
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+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
+tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
+cd $PRGNAM
+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 {} \;
+
+if [ "${SSE2:-no}" = "yes" ]; then
+ SSE2FLAG="--enable-sse2"
+else
+ SSE2FLAG="--disable-sse2"
+fi
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ $SSE2FLAG \
+ --build=$ARCH-slackware-linux
+
+make -j1
+make install DESTDIR=$PKG
+
+rm -rf $PKG/usr/lib/menu
+rmdir --ignore-fail-on-non-empty $PKG/usr/lib
+
+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
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/${PRGNAM}-*/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share/doc
+cp -a \
+ COPYING ChangeLog README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+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}
diff --git a/network/yate/yate.info b/network/yate/yate.info
new file mode 100644
index 0000000000..9aa13d48fd
--- /dev/null
+++ b/network/yate/yate.info
@@ -0,0 +1,10 @@
+PRGNAM="yate"
+VERSION="5.5.0_1"
+HOMEPAGE="http://yate.null.ro/"
+DOWNLOAD="http://yate.null.ro/tarballs/yate5/yate-5.5.0-1.tar.gz"
+MD5SUM="c433b3df08a5993e16fadaac279e39a0"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Michales Michaloudes"
+EMAIL="korgie@gmail.com"