blob: debdbbf1e2102589d6b62be678ae89ab9f3cb903 (
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
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=opensips
pkgver=1.6.3
pkgrel=0
pkgdesc="Flexible and customizable sip routing engine"
url="http://www.opensips.org/"
arch="all"
license="GPL"
depends=
makedepends="bison flex expat-dev coreutils"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-notls_src.tar.gz
$pkgname.initd"
build() {
cd "$srcdir/$pkgname-$pkgver-notls"
sed -i -e 's:^cfg-target.*:cfg-target = $(cfg-dir):' \
-e 's:^cfg-prefix.*:cfg-prefix = $(basedir):' Makefile.defs
cd scripts
sed -i -e 's:/var/run/opensips.pid:/var/run/opensips/opensips.pid:g' \
opensipsctl.base opensipsctlrc osipsconsole osipsconsolerc
cd ..
make prefix=/usr || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver-notls"
make prefix=/usr basedir="$pkgdir" install
chmod 750 "$pkgdir"/etc/opensips/opensips.cfg
install -d "$pkgdir"/var/run/opensips
install -Dm755 ../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
md5sums="84e5d6da6476dcdb8bc0fd736507040a opensips-1.6.3-notls_src.tar.gz
7fb51d35517f7f10cfe6e89139f7060a opensips.initd"
|