aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtpproxy/APKBUILD
blob: 30629c0a5376421d4a2cd1dbbfdef37edb416550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rtpproxy
pkgver=1.2.1
pkgrel=1
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 --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	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"