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

testing/kamilio: clean up

parent 9aaaf260
# Contributor: Michael Mason <> # Contributor: Michael Mason <>
pkgname=kamailio pkgname=kamailio
pkgver=1.5.2 pkgver=1.5.2
pkgrel=0 pkgrel=1
pkgdesc="Open Source SIP Server" pkgdesc="Open Source SIP Server"
url="" url=""
license="GPL" license="GPL"
depends="expat postgresql" depends=
makedepends="bison flex coreutils expat-dev libpq" makedepends="bison flex expat-dev postgresql-dev mysql-dev"
install= install=
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="$pkgver/src/$pkgname-$pkgver-notls_src.tar.gz source="$pkgver/src/$pkgname-$pkgver-notls_src.tar.gz
...@@ -17,15 +17,16 @@ source="$pkgver/src/$pkgname-$pkgver-notls_ ...@@ -17,15 +17,16 @@ source="$pkgver/src/$pkgname-$pkgver-notls_
build() { build() {
cd "$srcdir/$pkgname-$pkgver-notls" cd "$srcdir/$pkgname-$pkgver-notls"
sed -i -e 's:^cfg-target.*:cfg-target = $(cfg-dir):' \ 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 cd scripts
sed -i -e 's:/var/run/' \ sed -i -e 's:/var/run/' \
kamctl.base kamctlrc kamctl.base kamctlrc || return 1
cd .. cd ..
make prefix=/usr || return 1 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 -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.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