[arch-commits] Commit in opensips/repos (16 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 05:54:15 EDT 2013


    Date: Monday, May 13, 2013 @ 11:54:15
  Author: spupykin
Revision: 90577

archrelease: copy trunk to community-i686, community-x86_64

Added:
  opensips/repos/community-i686/PKGBUILD
    (from rev 90576, opensips/trunk/PKGBUILD)
  opensips/repos/community-i686/opensips.init
    (from rev 90576, opensips/trunk/opensips.init)
  opensips/repos/community-i686/opensips.install
    (from rev 90576, opensips/trunk/opensips.install)
  opensips/repos/community-i686/opensips.service
    (from rev 90576, opensips/trunk/opensips.service)
  opensips/repos/community-x86_64/PKGBUILD
    (from rev 90576, opensips/trunk/PKGBUILD)
  opensips/repos/community-x86_64/opensips.init
    (from rev 90576, opensips/trunk/opensips.init)
  opensips/repos/community-x86_64/opensips.install
    (from rev 90576, opensips/trunk/opensips.install)
  opensips/repos/community-x86_64/opensips.service
    (from rev 90576, opensips/trunk/opensips.service)
Deleted:
  opensips/repos/community-i686/PKGBUILD
  opensips/repos/community-i686/opensips.init
  opensips/repos/community-i686/opensips.install
  opensips/repos/community-i686/opensips.service
  opensips/repos/community-x86_64/PKGBUILD
  opensips/repos/community-x86_64/opensips.init
  opensips/repos/community-x86_64/opensips.install
  opensips/repos/community-x86_64/opensips.service

-----------------------------------+
 /PKGBUILD                         |  144 ++++++++++++++++++++++++++++++++++++
 /opensips.init                    |  100 +++++++++++++++++++++++++
 /opensips.install                 |   10 ++
 /opensips.service                 |   22 +++++
 community-i686/PKGBUILD           |   79 -------------------
 community-i686/opensips.init      |   50 ------------
 community-i686/opensips.install   |    5 -
 community-i686/opensips.service   |   11 --
 community-x86_64/PKGBUILD         |   79 -------------------
 community-x86_64/opensips.init    |   50 ------------
 community-x86_64/opensips.install |    5 -
 community-x86_64/opensips.service |   11 --
 12 files changed, 276 insertions(+), 290 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2013-05-13 09:53:57 UTC (rev 90576)
+++ community-i686/PKGBUILD	2013-05-13 09:54:15 UTC (rev 90577)
@@ -1,79 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=opensips
-pkgver=1.9.0
-pkgrel=1
-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.init
-	opensips.service)
-md5sums=('2d989e49c9f5f6bd6d0910937fd49802'
-         '685fbe00826df1285b410d4610dcbb0c'
-         '7b786d758fe3174af34e2ced44b549e7')
-
-build()
-{
-  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
-
-  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
-
-  # 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##" {} \;
-
-  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
-}

Copied: opensips/repos/community-i686/PKGBUILD (from rev 90576, opensips/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-05-13 09:54:15 UTC (rev 90577)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=opensips
+pkgver=1.9.1
+pkgrel=1
+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'
+         '7b786d758fe3174af34e2ced44b549e7')
+
+build()
+{
+  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
+
+  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/sbin
+  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
+}

Deleted: community-i686/opensips.init
===================================================================
--- community-i686/opensips.init	2013-05-13 09:53:57 UTC (rev 90576)
+++ community-i686/opensips.init	2013-05-13 09:54:15 UTC (rev 90577)
@@ -1,50 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-BINNAME=opensips
-OSRDIR=/usr/sbin
-OPENSIPS=$OSRDIR/$BINNAME
-
-TMPDIR=/var/tmp
-CORE=$TMPDIR/core
-
-ETC=/etc/opensips/opensips.cfg
-PIDFILE=/var/run/opensips.pid
-
-case "$1" in
-  start)
-    stat_busy "Starting OpenSIPS server"
-    cd $TMPDIR
-    $OPENSIPS -f $ETC -w $TMPDIR -P $PIDFILE 2>&1 > /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon opensips
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping OpenSIPS server"
-    if [ -r $PIDFILE ]
-    then
-	cat $PIDFILE | xargs kill
-	if [ $? -gt 0 ]; then
-	  stat_fail
-	else
-	  rm_daemon opensips
-	  stat_done
-	fi
-    else
-	stat_fail
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac

Copied: opensips/repos/community-i686/opensips.init (from rev 90576, opensips/trunk/opensips.init)
===================================================================
--- community-i686/opensips.init	                        (rev 0)
+++ community-i686/opensips.init	2013-05-13 09:54:15 UTC (rev 90577)
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+BINNAME=opensips
+OSRDIR=/usr/sbin
+OPENSIPS=$OSRDIR/$BINNAME
+
+TMPDIR=/var/tmp
+CORE=$TMPDIR/core
+
+ETC=/etc/opensips/opensips.cfg
+PIDFILE=/var/run/opensips.pid
+
+case "$1" in
+  start)
+    stat_busy "Starting OpenSIPS server"
+    cd $TMPDIR
+    $OPENSIPS -f $ETC -w $TMPDIR -P $PIDFILE 2>&1 > /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon opensips
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping OpenSIPS server"
+    if [ -r $PIDFILE ]
+    then
+	cat $PIDFILE | xargs kill
+	if [ $? -gt 0 ]; then
+	  stat_fail
+	else
+	  rm_daemon opensips
+	  stat_done
+	fi
+    else
+	stat_fail
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 3
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac

Deleted: community-i686/opensips.install
===================================================================
--- community-i686/opensips.install	2013-05-13 09:53:57 UTC (rev 90576)
+++ community-i686/opensips.install	2013-05-13 09:54:15 UTC (rev 90577)
@@ -1,5 +0,0 @@
-post_install() 
-{
-  echo "To use MySQL, you should install mysql package and run '/usr/sbin/openser_mysql.sh create'"
-  /bin/true
-}

Copied: opensips/repos/community-i686/opensips.install (from rev 90576, opensips/trunk/opensips.install)
===================================================================
--- community-i686/opensips.install	                        (rev 0)
+++ community-i686/opensips.install	2013-05-13 09:54:15 UTC (rev 90577)
@@ -0,0 +1,5 @@
+post_install() 
+{
+  echo "To use MySQL, you should install mysql package and run '/usr/sbin/openser_mysql.sh create'"
+  /bin/true
+}

Deleted: community-i686/opensips.service
===================================================================
--- community-i686/opensips.service	2013-05-13 09:53:57 UTC (rev 90576)
+++ community-i686/opensips.service	2013-05-13 09:54:15 UTC (rev 90577)
@@ -1,11 +0,0 @@
-[Unit]
-Description=OpenSIPS daemon
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/opensips.pid
-ExecStart=/usr/sbin/opensips -f /etc/opensips/opensips.cfg -w /var/tmp -P /var/run/opensips.pid
-
-[Install]
-WantedBy=multi-user.target

Copied: opensips/repos/community-i686/opensips.service (from rev 90576, opensips/trunk/opensips.service)
===================================================================
--- community-i686/opensips.service	                        (rev 0)
+++ community-i686/opensips.service	2013-05-13 09:54:15 UTC (rev 90577)
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenSIPS daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/opensips.pid
+ExecStart=/usr/sbin/opensips -f /etc/opensips/opensips.cfg -w /var/tmp -P /var/run/opensips.pid
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2013-05-13 09:53:57 UTC (rev 90576)
+++ community-x86_64/PKGBUILD	2013-05-13 09:54:15 UTC (rev 90577)
@@ -1,79 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=opensips
-pkgver=1.9.0
-pkgrel=1
-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.init
-	opensips.service)
-md5sums=('2d989e49c9f5f6bd6d0910937fd49802'
-         '685fbe00826df1285b410d4610dcbb0c'
-         '7b786d758fe3174af34e2ced44b549e7')
-
-build()
-{
-  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
-
-  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
-
-  # 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##" {} \;
-
-  install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
-}

Copied: opensips/repos/community-x86_64/PKGBUILD (from rev 90576, opensips/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-05-13 09:54:15 UTC (rev 90577)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=opensips
+pkgver=1.9.1
+pkgrel=1
+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'
+         '7b786d758fe3174af34e2ced44b549e7')
+
+build()
+{
+  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
+
+  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/sbin
+  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
+}

Deleted: community-x86_64/opensips.init
===================================================================
--- community-x86_64/opensips.init	2013-05-13 09:53:57 UTC (rev 90576)
+++ community-x86_64/opensips.init	2013-05-13 09:54:15 UTC (rev 90577)
@@ -1,50 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-BINNAME=opensips
-OSRDIR=/usr/sbin
-OPENSIPS=$OSRDIR/$BINNAME
-
-TMPDIR=/var/tmp
-CORE=$TMPDIR/core
-
-ETC=/etc/opensips/opensips.cfg
-PIDFILE=/var/run/opensips.pid
-
-case "$1" in
-  start)
-    stat_busy "Starting OpenSIPS server"
-    cd $TMPDIR
-    $OPENSIPS -f $ETC -w $TMPDIR -P $PIDFILE 2>&1 > /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon opensips
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping OpenSIPS server"
-    if [ -r $PIDFILE ]
-    then
-	cat $PIDFILE | xargs kill
-	if [ $? -gt 0 ]; then
-	  stat_fail
-	else
-	  rm_daemon opensips
-	  stat_done
-	fi
-    else
-	stat_fail
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac

Copied: opensips/repos/community-x86_64/opensips.init (from rev 90576, opensips/trunk/opensips.init)
===================================================================
--- community-x86_64/opensips.init	                        (rev 0)
+++ community-x86_64/opensips.init	2013-05-13 09:54:15 UTC (rev 90577)
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+BINNAME=opensips
+OSRDIR=/usr/sbin
+OPENSIPS=$OSRDIR/$BINNAME
+
+TMPDIR=/var/tmp
+CORE=$TMPDIR/core
+
+ETC=/etc/opensips/opensips.cfg
+PIDFILE=/var/run/opensips.pid
+
+case "$1" in
+  start)
+    stat_busy "Starting OpenSIPS server"
+    cd $TMPDIR
+    $OPENSIPS -f $ETC -w $TMPDIR -P $PIDFILE 2>&1 > /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon opensips
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping OpenSIPS server"
+    if [ -r $PIDFILE ]
+    then
+	cat $PIDFILE | xargs kill
+	if [ $? -gt 0 ]; then
+	  stat_fail
+	else
+	  rm_daemon opensips
+	  stat_done
+	fi
+    else
+	stat_fail
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 3
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac

Deleted: community-x86_64/opensips.install
===================================================================
--- community-x86_64/opensips.install	2013-05-13 09:53:57 UTC (rev 90576)
+++ community-x86_64/opensips.install	2013-05-13 09:54:15 UTC (rev 90577)
@@ -1,5 +0,0 @@
-post_install() 
-{
-  echo "To use MySQL, you should install mysql package and run '/usr/sbin/openser_mysql.sh create'"
-  /bin/true
-}

Copied: opensips/repos/community-x86_64/opensips.install (from rev 90576, opensips/trunk/opensips.install)
===================================================================
--- community-x86_64/opensips.install	                        (rev 0)
+++ community-x86_64/opensips.install	2013-05-13 09:54:15 UTC (rev 90577)
@@ -0,0 +1,5 @@
+post_install() 
+{
+  echo "To use MySQL, you should install mysql package and run '/usr/sbin/openser_mysql.sh create'"
+  /bin/true
+}

Deleted: community-x86_64/opensips.service
===================================================================
--- community-x86_64/opensips.service	2013-05-13 09:53:57 UTC (rev 90576)
+++ community-x86_64/opensips.service	2013-05-13 09:54:15 UTC (rev 90577)
@@ -1,11 +0,0 @@
-[Unit]
-Description=OpenSIPS daemon
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/opensips.pid
-ExecStart=/usr/sbin/opensips -f /etc/opensips/opensips.cfg -w /var/tmp -P /var/run/opensips.pid
-
-[Install]
-WantedBy=multi-user.target

Copied: opensips/repos/community-x86_64/opensips.service (from rev 90576, opensips/trunk/opensips.service)
===================================================================
--- community-x86_64/opensips.service	                        (rev 0)
+++ community-x86_64/opensips.service	2013-05-13 09:54:15 UTC (rev 90577)
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenSIPS daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/opensips.pid
+ExecStart=/usr/sbin/opensips -f /etc/opensips/opensips.cfg -w /var/tmp -P /var/run/opensips.pid
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list