From a39a3677c072e1a760f29e1654a8622aab913a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Tue, 10 Jul 2012 08:41:03 +0300 Subject: testing/asterisk-dongle: new aport asterisk dongle (usb gsm modem) channel driver http://code.google.com/p/asterisk-chan-dongle/ --- testing/asterisk-dongle/APKBUILD | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 testing/asterisk-dongle/APKBUILD (limited to 'testing/asterisk-dongle/APKBUILD') diff --git a/testing/asterisk-dongle/APKBUILD b/testing/asterisk-dongle/APKBUILD new file mode 100644 index 0000000000..4a7e12bbf2 --- /dev/null +++ b/testing/asterisk-dongle/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Timo Teräs +# Maintainer: Timo Teräs +SVNREV=27 +pkgname=asterisk-dongle +pkgver=1.1.$SVNREV +pkgrel=0 +pkgdesc="GSM modem dongle channel driver" +url="http://code.google.com/p/asterisk-chan-dongle/" +arch="all" +license="GPLv2" +depends="asterisk" +depends_dev="" +makedepends="$depends_dev asterisk-dev subversion automake autoconf" +install="" +subpackages="" +source="issue46.patch" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + + svn checkout http://asterisk-chan-dongle.googlecode.com/svn/trunk/@$REV "$_builddir" + + cd "$_builddir" + + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + aclocal && autoconf && automake -a + ./configure || exit 1 + make +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/usr/lib/asterisk/modules "$pkgdir"/etc/asterisk + install -m644 etc/dongle.conf "$pkgdir"/etc/asterisk/dongle.conf.sample + install -m755 chan_dongle.so "$pkgdir"/usr/lib/asterisk/modules +} + +md5sums="73321cca36d8f25f8de687b5600e7b73 issue46.patch" -- cgit v1.2.3