Commit 0d6af0ea authored by Natanael Copa's avatar Natanael Copa

testing/kamilio: clean up

parent 9aaaf260
# Contributor: Michael Mason <ms13sp@gmail.com>
pkgname=kamailio
pkgver=1.5.2
pkgrel=0
pkgrel=1
pkgdesc="Open Source SIP Server"
url="http://www.kamailio.org/"
license="GPL"
depends="expat postgresql"
makedepends="bison flex coreutils expat-dev libpq"
depends=
makedepends="bison flex expat-dev postgresql-dev mysql-dev"
install=
subpackages="$pkgname-doc"
source="http://www.kamailio.org/pub/kamailio/$pkgver/src/$pkgname-$pkgver-notls_src.tar.gz
......@@ -17,15 +17,16 @@ source="http://www.kamailio.org/pub/kamailio/$pkgver/src/$pkgname-$pkgver-notls_
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
-e 's:^cfg-prefix.*:cfg-prefix = $(basedir):' Makefile.defs \
|| return 1
cd scripts
sed -i -e 's:/var/run/kamailio.pid:/var/run/kamailio/kamailio.pid:g' \
kamctl.base kamctlrc
kamctl.base kamctlrc || return 1
cd ..
make prefix=/usr || return 1
make prefix=/usr basedir="$pkgdir" install
make prefix=/usr basedir="$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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment