From 69646a8cc504ff506d5be8d7a150d5163fd53d08 Mon Sep 17 00:00:00 2001 From: Michales Michaloudes Date: Sun, 30 Jun 2013 00:00:18 -0500 Subject: network/yate: Added (Yet Another Telephony Engine) Signed-off-by: Erik Hanson --- network/yate/README | 5 +++ network/yate/doinst.sh | 50 ++++++++++++++++++++++++++ network/yate/slack-desc | 19 ++++++++++ network/yate/yate.SlackBuild | 84 ++++++++++++++++++++++++++++++++++++++++++++ network/yate/yate.info | 11 ++++++ 5 files changed, 169 insertions(+) create mode 100644 network/yate/README create mode 100644 network/yate/doinst.sh create mode 100644 network/yate/slack-desc create mode 100644 network/yate/yate.SlackBuild create mode 100644 network/yate/yate.info (limited to 'network/yate') diff --git a/network/yate/README b/network/yate/README new file mode 100644 index 0000000000..14724b1aa3 --- /dev/null +++ b/network/yate/README @@ -0,0 +1,5 @@ +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. diff --git a/network/yate/doinst.sh b/network/yate/doinst.sh new file mode 100644 index 0000000000..cb44d46a56 --- /dev/null +++ b/network/yate/doinst.sh @@ -0,0 +1,50 @@ +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 +} + +schema_install() { + SCHEMA="$1" + GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \ + chroot . gconftool-2 --makefile-install-rule \ + /etc/gconf/schemas/$SCHEMA \ + 1>/dev/null +} + +schema_install blah.schemas +preserve_perms etc/rc.d/rc.INIT.new +config etc/configfile.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/network/yate/slack-desc b/network/yate/slack-desc new file mode 100644 index 0000000000..5d73628b40 --- /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 ':'. + + |-----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..1c2d1ef911 --- /dev/null +++ b/network/yate/yate.SlackBuild @@ -0,0 +1,84 @@ +#!/bin/sh +# Slackware build script for +# +# Michales (clavisound) Michaloudes korgie@gmail.com <2013> + +PRGNAM=yate +VERSION=${VERSION:-4.3.0-1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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 + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +# canonicalize temp folder +mv $PRGNAM $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +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 +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..de98177440 --- /dev/null +++ b/network/yate/yate.info @@ -0,0 +1,11 @@ +PRGNAM="yate" +VERSION="4.3.0-1" +HOMEPAGE="http://yate.null.ro/" +DOWNLOAD="http://yate.null.ro/tarballs/yate4/yate-4.3.0-1.tar.gz" +MD5SUM="be4fc92de4ff48c481b390785ad18c31" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Michales Michaloudes" +EMAIL="korgie@gmail.com" +APPROVED="" -- cgit v1.2.3