You are not logged in.

#1 2009-02-16 21:12:50

adyxax
Member
Registered: 2009-02-16
Posts: 2

[Request] Asterisk-1.6

Hi everybody.

I have seen that asterisk-1.4 is on AUR for quite a long time now, but I wanted to work with the next version. That's why I wrote a PKGBUILD and install file for asterisk-1.6 by inspiring myself with the former one :

Here is the PKGBUILD :

pkgname=asterisk
packager=adyxax
pkgver=1.6.0.5
pkgrel=1
pkgdesc="A complete PBX solution"
arch=('i686' 'x86_64')
url="http://www.asterisk.org"
license=('GPL')
groups=()
depends=('curl' 'libcap' 'libldap' 'libvorbis' 'net-snmp' 'popt' 'portaudio' 'sdl_image' 'speex' 'termcap-compat')
makedepends=('postgresql' 'unixodbc' 'sqlite3')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=() #etc/asterisk/asterisk.conf)
options=()
install=$pkgname.install
source=(http://downloads.digium.com/pub/asterisk/releases/asterisk-$pkgver.tar.gz \
asterisk)
noextract=()
md5sums=('3a5461059738ef745b9c3161c1ffaba8'
         '3c63e63d85a6fcd9e31d9f1f82ca04a5')

build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr/ --sysconfdir=/etc
    make || return 1
    make DESTDIR=$startdir/pkg install || return 1
    make DESTDIR=$startdir/pkg samples || return 1
    (cd $startdir/pkg/etc/asterisk
    ls -I asterisk.conf | xargs -I '{}' mv '{}' '{}.default')

    mkdir -m 750 $startdir/pkg/var/run/asterisk
    install -D -m 755 $startdir/src/asterisk $startdir/pkg/etc/rc.d/asterisk
    #install -D -m 644 $startdir/src/asterisk.logrotated $startdir/pkg/etc/logrotate.d/asterisk
}

The PKGBUILD and the asterisk.install can be downloaded from there. In fact this topic is less a request for a package than a request to share it. I would be glad to make a contribution to the AUR community, but don't know where to start.

Hope this helps,
Adyxax

Offline

Board footer

Powered by FluxBB