diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-10-23 04:57:38 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-10-23 04:57:38 -0300 |
commit | db83c17ba25c263db80a7999254a255b14ef0e37 (patch) | |
tree | 8825488946334cc194a8490ad7944218fe3896a9 /social/asterisk/PKGBUILD | |
parent | 128fec48de2a334c7af257ce0efe3315e5055ba6 (diff) | |
download | abslibre-db83c17ba25c263db80a7999254a255b14ef0e37.tar.gz abslibre-db83c17ba25c263db80a7999254a255b14ef0e37.tar.bz2 abslibre-db83c17ba25c263db80a7999254a255b14ef0e37.zip |
social/{asterisk,dropbear,openswan,poco,sipwitch,spectrum,ucommon}
Diffstat (limited to 'social/asterisk/PKGBUILD')
-rw-r--r-- | social/asterisk/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/social/asterisk/PKGBUILD b/social/asterisk/PKGBUILD new file mode 100644 index 000000000..7318e71dc --- /dev/null +++ b/social/asterisk/PKGBUILD @@ -0,0 +1,41 @@ +# Contributor: Alessio Biancalana <dottorblaster@gmail.com> + +pkgname=asterisk +pkgver=1.8.7.0 +pkgrel=1 +pkgdesc="A complete PBX solution" +arch=('i686' 'x86_64') +url="http://www.asterisk.org" +license=('GPL') +depends=('alsa-lib' 'speex' 'popt' 'libvorbis' 'curl') +makedepends=('postgresql' 'unixodbc' 'sqlite3') +optdepends=('libpri' 'libss7' 'openr2') +backup=(etc/asterisk/asterisk.conf) +source=(http://downloads.digium.com/pub/asterisk/releases/asterisk-$pkgver.tar.gz \ + asterisk \ + asterisk.logrotated) +install=$pkgname.install +md5sums=('5c6616a53fa3f300420ea17fd23abae9' + '59146273738605f1e011d8e7bed3561a' + '486e07a0a1405ea25ec5b1736034653e') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make +} + +package(){ + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + make DESTDIR=${pkgdir} samples + + (cd ${pkgdir}/etc/asterisk +# for i in `ls`; do [ $i = "asterisk.conf" ] || mv $i $i.default; done +ls -I asterisk.conf | xargs -I '{}' mv '{}' '{}.default') +# cp ${srcdir}/modules.conf modules.conf + sed -i -e "s/\/var\/run/\/var\/run\/asterisk/" $startdir/pkg/etc/asterisk/asterisk.conf + + install -D -m 755 ${srcdir}/asterisk ${pkgdir}/etc/rc.d/asterisk + install -D -m 644 ${srcdir}/asterisk.logrotated ${pkgdir}/etc/logrotate.d/asterisk + } |