diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-01-09 13:47:51 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-01-09 13:47:51 +0000 |
commit | 7a3611f5caa5e34c1f2b582640f97b733110ae63 (patch) | |
tree | 5b0baf1ad1b36444ffbf73707a377b15fc67692f /community-staging/opensips/PKGBUILD | |
parent | 46783b68621b6ad45cdd9ed64cfa8cdcfbc6f318 (diff) |
Mon Jan 9 13:47:49 UTC 2012
Diffstat (limited to 'community-staging/opensips/PKGBUILD')
-rw-r--r-- | community-staging/opensips/PKGBUILD | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/community-staging/opensips/PKGBUILD b/community-staging/opensips/PKGBUILD deleted file mode 100644 index f39c698be..000000000 --- a/community-staging/opensips/PKGBUILD +++ /dev/null @@ -1,67 +0,0 @@ -# $Id: PKGBUILD 60687 2011-12-16 21:39:12Z spupykin $ -# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> - -pkgname=opensips -pkgver=1.6.4 -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' 'kernel-headers' 'libxml2') -makedepends=('postgresql-libs>=8.4.1' 'unixodbc' 'libldap>=2.4.18' 'libmysqlclient' 'lynx') -optdepends=('postgresql-libs' - 'unixodbc' - 'libldap' - 'libmysqlclient' - 'libsasl' - 'python2' - 'pcre') -backup=("etc/opensips/opensips.cfg" - "etc/opensips/dictionary.radius" - "etc/opensips/opensipsctlrc") -arch=('i686' 'x86_64') -license=('GPL') -install=opensips.install -options=('!emptydirs' 'zipman' '!makeflags' 'docs') -source=(#http://switch.dl.sourceforge.net/sourceforge/opensips/opensips-$pkgver-tls_src.tar.gz - http://opensips.org/pub/opensips/$pkgver/src/opensips-$pkgver-2-tls_src.tar.gz - opensips.init) -md5sums=('e9869d9a726d70f83de4a1e77cd24d40' - '685fbe00826df1285b410d4610dcbb0c') - -build() -{ - cd $srcdir/$pkgname-$pkgver-2-tls/ - - # python2 fix - for file in $(find . -name '*.py' -print); do - sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file - sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file - done - - make \ - include_modules="ldap db_mysql db_postgres db_unixodbc presence presence_xml h350" \ - TLS=1 DESTDIR=$pkgdir/usr LIBDIR=lib install - - # Conforms to the arch packaging standards (http://wiki.archlinux.org/index.php/Arch_Packaging_Standards) - mkdir -p $pkgdir/etc/ - 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##" {} \; - - cd $pkgdir/usr/lib/opensips/opensipsctl - find -type f -exec sed -i "s#$pkgdir##" {} \; - - cd $pkgdir/usr/sbin - sed -i "s#$pkgdir##" opensipsctl opensipsdbctl osipsconsole - - cd $pkgdir/etc - find -type f -exec sed -i "s#$pkgdir##" {} \; -} |