aboutsummaryrefslogtreecommitdiffstats
path: root/main/sems/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-19 06:52:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-19 09:18:46 +0000
commitc99eef8cb1fde2cba4768857bb894610b30fd746 (patch)
tree7a1036476b533638cfc260f2b9b96fcc991fc61f /main/sems/APKBUILD
parentd74a067929c230b551de365a59a3293d94648d62 (diff)
downloadaports-c99eef8cb1fde2cba4768857bb894610b30fd746.tar.bz2
aports-c99eef8cb1fde2cba4768857bb894610b30fd746.tar.xz
main/sems: moved from testing
on request. I think this still needs some work...
Diffstat (limited to 'main/sems/APKBUILD')
-rw-r--r--main/sems/APKBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/main/sems/APKBUILD b/main/sems/APKBUILD
new file mode 100644
index 0000000000..04ab8bc5b8
--- /dev/null
+++ b/main/sems/APKBUILD
@@ -0,0 +1,72 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=sems
+pkgver=1.2.1
+pkgrel=1
+pkgdesc="High performance, extensible media server for SIP (RFC3261) based VoIP services"
+url="http://iptel.org/sems/"
+arch="all"
+license="GPL-2"
+install="$pkgname.pre-install $pkgname.post-install"
+makedepends="python-dev openssl-dev cmake bash"
+source="http://ftp.iptel.org/pub/sems/sems-$pkgver.tar.gz
+ 0003-cc-and-cflags.patch
+ sems.conf
+ sems.initd
+ "
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ for i in "$srcdir"/*.patch; do
+ [ -f "$i" ] || continue
+ msg "Applying $i"
+ patch -p1 -i $i || return 1
+ done
+
+ sed -i -e 's:^cfg-prefix.*:cfg-prefix = $(basedir):' \
+ -e 's:^cfg-target.*:cfg-target = $(cfg-dir):' \
+ Makefile.defs \
+ || return 1
+
+ # Patch for fixin unistd.h
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' core/AmArg.cpp
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' core/AmMediaProcessor.cpp
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' core/AmRtpReceiver.cpp
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' core/plug-in/sipctrl/udp_trsp.cpp
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' core/plug-in/stats/query_stats.cxx
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' apps/annrecorder/AnnRecorder.cpp
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' apps/callback/CallBack.cpp
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' apps/diameter_client/ServerConnection.cpp
+ sed -i -e 's:\*\/:\n*\/\n#include <unistd.h>:' apps/dsm/mods/mod_sys/ModSys.cpp
+}
+
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ make PREFIX=/usr \
+ cfg-target=/etc/sems/ \
+ exclude_modules+="ivr examples py_sems speex gateway mp3 echo g722" \
+ WITH_MPG123DECODER=no \
+ all || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ make PREFIX=/usr \
+ DESTDIR="$pkgdir" \
+ cfg-target=/etc/sems/ \
+ cfg-prefix="$pkgdir" \
+ exclude_modules+="ivr examples py_sems speex gateway mp3 echo g722" \
+ WITH_MPG123DECODER=no \
+ install || return 1
+
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -m644 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/sems/$pkgname.conf
+}
+
+md5sums="f0545c0708849e1a723d453244c2a79e sems-1.2.1.tar.gz
+0054e6ed7e11393e71204876179d3199 0003-cc-and-cflags.patch
+8b74528c8605b7adb01a0133fcd0c247 sems.conf
+14aee84a05afc347b6e6b34889ed9504 sems.initd"