# Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=rtpproxy pkgver=1.2.1 pkgrel=2 pkgdesc="RTP proxy" url="http://www.rtpproxy.org" arch="all" license="BSD" depends= depends_dev= makedepends="$depends_dev" install="$pkgname.pre-install" subpackages="$pkgname-doc" source="http://b2bua.org/chrome/site/$pkgname-$pkgver.tar.gz rtpproxy.confd rtpproxy.initd" _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i 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" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } md5sums="b0b5d6cdce3f17cdbbac473c11a2d0e5 rtpproxy-1.2.1.tar.gz aee99ab9f380cd0b43754ae658f26c92 rtpproxy.confd b0f8894794b3f24af21ed050477851b1 rtpproxy.initd"