blob: 1e892b2c3a07229f2be720deef17c9a77081fba7 (
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
49
50
51
52
53
54
55
56
57
58
59
|
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rtpproxy
pkgver=1.2.1
pkgrel=3
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
update_config_sub || return 1
}
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"
sha256sums="aba667136420adfc6dbf6ff94a778e1e2484116ed13ea5196f3293d4d645df85 rtpproxy-1.2.1.tar.gz
0b956e60a4fb27140d88c2182537615f524e167e6b608a9c9782bbf781791e1d rtpproxy.confd
3a792681ab97e4e0f86dd9964688cbec09154776568be0269e6839a878f3b37b rtpproxy.initd"
sha512sums="99760cd0ef6efda806cc059ea3d3d0ea9f953f6f06f9f9642b46353cb3347f3a54b81dd0a27350242a7a9b8a264f5f95d4c6c5a9cb7564bbf9177600aa113c45 rtpproxy-1.2.1.tar.gz
e2ab3705329ffd10a8a5723ac3a07a2f98547f29b7055e1616ebbd141d6beff9c81d44579af9f3486f7835a7ac7228ecfe49cf09208438ed490843c6b100a104 rtpproxy.confd
7b9dddada1b88dc6a06d0a2a3f9d0a3cb1fa0d55950daa6af1508b9f48d13c21a22183d3524f1ba285c0a03b35f6e649017bc5959b2d85d666cb8db1af3617c4 rtpproxy.initd"
|