summaryrefslogtreecommitdiff
path: root/community/opensips/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/opensips/PKGBUILD')
-rw-r--r--community/opensips/PKGBUILD78
1 files changed, 0 insertions, 78 deletions
diff --git a/community/opensips/PKGBUILD b/community/opensips/PKGBUILD
deleted file mode 100644
index 7a39ec2b6..000000000
--- a/community/opensips/PKGBUILD
+++ /dev/null
@@ -1,78 +0,0 @@
-# $Id: PKGBUILD 91536 2013-05-23 11:21:11Z spupykin $
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
-
-pkgname=opensips
-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')
-makedepends=('postgresql-libs>=8.4.1' 'unixodbc' 'libldap>=2.4.18' 'libmariadbclient'
- 'lynx' 'libxslt')
-optdepends=('postgresql-libs'
- 'unixodbc'
- 'libldap'
- 'libmariadbclient'
- '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://opensips.org/pub/opensips/$pkgver/src/opensips-${pkgver}_src.tar.gz
- opensips.service)
-md5sums=('0b7b93f4df29a96daedf12e490e7ec86'
- '35cdcb3692f6925236fd5fe7e9484c58')
-
-prepare() {
- cd $srcdir/$pkgname-$pkgver-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
-
- 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
-}
-
-package() {
- cd $srcdir/$pkgname-$pkgver-tls/
-
- 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
-
- # 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/bin
- sed -i "s#$pkgdir##" opensipsctl opensipsdbctl osipsconsole
-
- cd $pkgdir/etc
- find -type f -exec sed -i "s#$pkgdir##" {} \;
-
- install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
-}