diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-19 09:11:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-19 09:18:46 +0000 |
commit | 4e8b12d3f6298deff7893b9e13673058d029eb62 (patch) | |
tree | 7461a8d02aee51de13bc0233b089ab267198ec06 /testing/sems/APKBUILD | |
parent | bd48ba5d5a0acc9688555721762769d797bda02c (diff) | |
download | aports-4e8b12d3f6298deff7893b9e13673058d029eb62.tar.bz2 aports-4e8b12d3f6298deff7893b9e13673058d029eb62.tar.xz |
testing/sems: remake of sems (1.3.1)
based on fedoras package and patches.
We split it in a similar way as fedora
Diffstat (limited to 'testing/sems/APKBUILD')
-rw-r--r-- | testing/sems/APKBUILD | 208 |
1 files changed, 208 insertions, 0 deletions
diff --git a/testing/sems/APKBUILD b/testing/sems/APKBUILD new file mode 100644 index 0000000000..046df3da48 --- /dev/null +++ b/testing/sems/APKBUILD @@ -0,0 +1,208 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=sems +pkgver=1.3.1 +pkgrel=0 +pkgdesc="SIP Express Media Server, an extensible SIP media server" +url="http://iptel.org/sems/" +arch="all" +license="GPLv2+" +pkgusers="sems" +pkggroups="sems" +install="$pkgname.pre-install" +makedepends="python-dev cmake bash openssl-dev + libsamplerate-dev spandsp-dev flite-dev gsm-dev speex-dev + " +subpackages="$pkgname-doc $pkgname-conf_auth $pkgname-conference + $pkgname-diameter_client $pkgname-dsm $pkgname-early_announce + $pkgname-g722 $pkgname-gsm $pkgname-ivr $pkgname-mailbox + $pkgname-pin_collect $pkgname-speex + $pkgname-xmlrpc2di" + +source="http://ftp.iptel.org/pub/sems/sems-$pkgver.tar.gz + sems-0001-Force-to-use-system-wide-GSM-includes.patch + sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch + sems-0003-Set-CFG_PREFIX-to-empty-string-by-default.patch + sems-0005-Add-sw_prepaid_sip-plugin-to-default-exclude-list-du.patch + sems-0006-last-minute-fix-proper-version.patch + sems-0007-Fix-gateway-module-s-version-passing-in-CMake.patch + sems-0008-Install-email-template.patch + sems-0009-Don-t-start-py_sems-by-default.patch + sems-0010-Move-CMake-defines.patch + sems-0011-Avoid-using-private-Glibc-functions.patch + + sems.initd + " + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" + rm -rf core/plug-in/gsm/gsm-1.0-pl10/ + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + + +build() { + cd "$_builddir" + cmake \ + -DSEMS_USE_SPANDSP=yes \ + -DSEMS_USE_LIBSAMPLERATE=yes \ + -DSEMS_USE_ZRTP=NO \ + -DSEMS_USE_MP3=NO \ + -DSEMS_USE_ILBC=NO \ + -DSEMS_USE_TTS=yes \ + -DSEMS_USE_OPENSSL=yes \ + -DSEMS_USE_MONITORING=yes \ + -DSEMS_USE_IPV6=yes \ + -DSEMS_CFG_PREFIX= \ + -DSEMS_AUDIO_PREFIX=/usr/share \ + -DSEMS_EXEC_PREFIX=/usr \ + -DSEMS_LIBDIR=lib \ + || return 1 + make +} + +package() { + cd "$_builddir" + make install DESTDIR="$pkgdir" + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + # is empty + rm -f "$pkgdir"/etc/sems/etc/conf_auth.conf + + install -o sems -g sems -d "$pkgdir"/var/spool/voicebox +} + +_mv_sub() { + local i + for i in "$@"; do + mkdir -p "$subpkgdir"/${i%/*} + mv "$pkgdir"/$i "$subpkgdir"/$i + done +} + +conf_auth() { + pkgdesc="Conference with authorization for SEMS" + depends="sems sems-ivr" + cd "$pkgdir" + _mv_sub usr/lib/sems/ivr/conf_auth* +} + +conference() { + pkgdesc="Conferencing application for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/conference.conf \ + usr/lib/sems/plug-in/conference.so \ + usr/share/sems/audio/conference +} + +diameter_client() { + pkgdesc="A simple DIAMETER client implementation for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub usr/lib/sems/plug-in/diameter_client.so +} + +dsm() { + pkgdesc="The state machine interpreter for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/dsm* \ + usr/lib/sems/plug-in/dsm.so \ + usr/lib/sems/dsm +} + +early_announce() { + pkgdesc="Early announce application for SEMS" + depends="sems" + cd "$pkgdir" + _mv_sub etc/sems/etc/early_announce.conf \ + usr/lib/sems/plug-in/early_announce.so +} + +g722() { + pkgdesc="G.722 support for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/g722.so +} + +#gateway() { +# pkgdesc="ISDN gateway for SEMS" +# depends="sems" +#} + +gsm() { + pkgdesc="GSM support for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/gsm.so +} + +ivr() { + pkgdesc="IVR functionallity for SEMS" + depends="sems python" + cd "$pkgdir" + _mv_sub etc/sems/etc/ivr.conf \ + usr/lib/sems/plug-in/ivr.so \ + usr/lib/sems/ivr/log.* +} + +mailbox() { + pkgdesc="Mailbox application for SEMS" + depends="sems sems-ivr" + cd "$pkgdir" + _mv_sub etc/sems/etc/mailbox*.conf \ + usr/share/sems/audio/mailbox \ + usr/lib/sems/plug-in/ivr.so \ + usr/lib/sems/ivr/*mailbox* +} + +pin_collect() { + pkgdesc="Collects a PIN for SEMS" + depends="sems sems-ivr" + cd "$pkgdir" + _mv_sub etc/sems/etc/pin_collect.conf \ + usr/share/sems/audio/pin_collect \ + usr/lib/sems/plug-in/ivr.so \ + usr/lib/sems/ivr/pin_collect* +} + +_python() { + pkgdesc="Python bindings for SEMS" + depends="python sems" + cd "$pkgdir" + _mv_sub \ + usr/lib/sems/plug-in/py_sems* +} + +speex() { + pkgdesc="Speex support for SEMS" + depends="sems" + _mv_sub usr/lib/sems/plug-in/speex.so +} + +xmlrpc2di() { + pkgdesc="XMLRPC interface for SEMS" + depends="sems" + _mv_sub \ + etc/sems/etc/xmlrpc2di.conf \ + usr/lib/sems/plug-in/xmlrpc2di.so +} + + +md5sums="2bc516670bd2c743d416160b69281665 sems-1.3.1.tar.gz +5b2fded836b44bda33f39adc37de4de7 sems-0001-Force-to-use-system-wide-GSM-includes.patch +b8efd1a6415afa08f7c676f6976fca36 sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch +331e7529833c906b4738006f32a65fde sems-0003-Set-CFG_PREFIX-to-empty-string-by-default.patch +36dcb80c802008bce3d4e8150dc9de5f sems-0005-Add-sw_prepaid_sip-plugin-to-default-exclude-list-du.patch +655aa414e940cbb6d1cccb412b3e6be0 sems-0006-last-minute-fix-proper-version.patch +2b14acc145c4f6934b8575ffaea68d75 sems-0007-Fix-gateway-module-s-version-passing-in-CMake.patch +5f3cad3b3c4d1c304a179614b3fa73ca sems-0008-Install-email-template.patch +5f3fd79c9fcdb17b29288c215089c288 sems-0009-Don-t-start-py_sems-by-default.patch +b24c336e00671c71e9b96f38c730271d sems-0010-Move-CMake-defines.patch +bf4070f110489ef21540b009347fcd81 sems-0011-Avoid-using-private-Glibc-functions.patch +36c2f993ba874781f5d3974b4f4c1503 sems.initd" |