aboutsummaryrefslogtreecommitdiffstats
path: root/testing/asterisk-dongle/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-07-10 08:41:03 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-07-10 08:41:03 +0300
commita39a3677c072e1a760f29e1654a8622aab913a88 (patch)
tree934d3f9839ece96ff0133215cb41af9458da3cf7 /testing/asterisk-dongle/APKBUILD
parent70e9c90bc331ba852359a8f76adfdb6c3d477fbb (diff)
downloadaports-a39a3677c072e1a760f29e1654a8622aab913a88.tar.bz2
aports-a39a3677c072e1a760f29e1654a8622aab913a88.tar.xz
testing/asterisk-dongle: new aport
asterisk dongle (usb gsm modem) channel driver http://code.google.com/p/asterisk-chan-dongle/
Diffstat (limited to 'testing/asterisk-dongle/APKBUILD')
-rw-r--r--testing/asterisk-dongle/APKBUILD47
1 files changed, 47 insertions, 0 deletions
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 <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+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"