diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-06-20 15:25:33 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-06-20 15:25:33 -0300 |
commit | cebf33d7109e0157a80f34d6136e212f0a28d274 (patch) | |
tree | a6464302c970f72581105b50ff0896e1f56def3d /community/opensips/PKGBUILD | |
parent | 1a65caeb80e2cc8c7b39262d72255124d0c8614e (diff) | |
parent | 5cb95ceee39e4691f768ea2fef60b8a106e92209 (diff) |
Merge branch 'master' of gparabola:abslibre-mips64el
Diffstat (limited to 'community/opensips/PKGBUILD')
-rw-r--r-- | community/opensips/PKGBUILD | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/community/opensips/PKGBUILD b/community/opensips/PKGBUILD index adcd0fd97..1fc2bfdd9 100644 --- a/community/opensips/PKGBUILD +++ b/community/opensips/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 88548 2013-04-19 16:08:52Z spupykin $ +# $Id: PKGBUILD 91536 2013-05-23 11:21:11Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgname=opensips -pkgver=1.9.0 -pkgrel=1 +pkgver=1.9.1 +pkgrel=2 pkgdesc="An Open Source SIP Server able to act as a SIP proxy, registrar, location server, redirect server ..." url="http://www.opensips.org" depends=('gcc-libs' 'openssl' 'db' 'attr' 'libxml2') @@ -24,14 +24,11 @@ license=('GPL') install=opensips.install options=('!emptydirs' 'zipman' '!makeflags' 'docs') source=(http://opensips.org/pub/opensips/$pkgver/src/opensips-${pkgver}_src.tar.gz - opensips.init opensips.service) -md5sums=('2d989e49c9f5f6bd6d0910937fd49802' - '685fbe00826df1285b410d4610dcbb0c' - '7b786d758fe3174af34e2ced44b549e7') +md5sums=('0b7b93f4df29a96daedf12e490e7ec86' + '35cdcb3692f6925236fd5fe7e9484c58') -build() -{ +prepare() { cd $srcdir/$pkgname-$pkgver-tls/ # python2 fix @@ -40,6 +37,13 @@ build() sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file done + sed -i 's|sbin|bin|g' Makefile + sed -i 's|bin-dir = sbin/|bin-dir = bin/|' Makefile.defs +} + +build() { + cd $srcdir/$pkgname-$pkgver-tls/ + make \ include_modules="ldap db_mysql db_postgres db_unixodbc presence presence_xml h350" \ TLS=1 LIBDIR=lib @@ -57,11 +61,6 @@ package() { mv $pkgdir/usr/etc/opensips/ $pkgdir/etc/ sed -i 's#mpath=".*lib/opensips/modules/"#mpath="/usr/lib/opensips/modules/"#' $pkgdir/etc/opensips/opensips.cfg - # Install starting script - mkdir -p $pkgdir/etc/rc.d/ - cp ../opensips.init $pkgdir/etc/rc.d/opensips - chmod 755 $pkgdir/etc/rc.d/opensips - # fix bad paths cd $pkgdir/usr/share find -type f -exec sed -i "s#$pkgdir##" {} \; @@ -69,7 +68,7 @@ package() { cd $pkgdir/usr/lib/opensips/opensipsctl find -type f -exec sed -i "s#$pkgdir##" {} \; - cd $pkgdir/usr/sbin + cd $pkgdir/usr/bin sed -i "s#$pkgdir##" opensipsctl opensipsdbctl osipsconsole cd $pkgdir/etc |