[arch-commits] Commit in opensips/repos/community-x86_64 (6 files)

Sergej Pupykin spupykin at archlinux.org
Mon Mar 18 12:02:21 UTC 2019


    Date: Monday, March 18, 2019 @ 12:02:21
  Author: spupykin
Revision: 442452

archrelease: copy trunk to community-x86_64

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

------------------+
 PKGBUILD         |  162 ++++++++++++++++++++++++++---------------------------
 opensips.install |    6 -
 opensips.service |   22 +++----
 3 files changed, 95 insertions(+), 95 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-18 12:02:08 UTC (rev 442451)
+++ PKGBUILD	2019-03-18 12:02:21 UTC (rev 442452)
@@ -1,81 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=opensips
-pkgver=2.4.4
-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' 'libmicrohttpd')
-optdepends=('postgresql-libs'
-	    'unixodbc'
-	    'libldap'
-	    'mariadb-libs'
-	    'libsasl'
-	    'python2'
-	    'pcre')
-backup=("etc/opensips/opensips.cfg"
-	"etc/opensips/osipsconsolerc"
-	"etc/opensips/opensipsctlrc")
-arch=('x86_64')
-license=('GPL')
-install=opensips.install
-options=('!emptydirs' 'zipman' '!makeflags' 'docs')
-source=(https://opensips.org/pub/opensips/${pkgver}/opensips-${pkgver}.tar.gz
-	opensips.service)
-sha256sums=('a53cf6eec1e8a8d97502b0f5c87a232801550a7edef931a1d371df7468ddaefa'
-            'c2fec4be085b108db10834fa9832e98d696c2de6408f85f96cf89c13bf6be819')
-
-prepare() {
-  cd "$srcdir"/$pkgname-$pkgver/
-
-  # 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
-}
-
-_modules="ldap db_mysql db_postgres db_unixodbc presence presence_xml h350 proto_tls tlsops tls_mgm db_http httpd tm rr"
-
-build() {
-  cd "$srcdir"/$pkgname-$pkgver/
-
-  make \
-	include_modules="${_modules}" \
-	LIBDIR=lib PREFIX=/usr
-}
-
-package() {
-  cd "$srcdir"/$pkgname-$pkgver/
-
-  make \
-	include_modules="${_modules}" \
-	BASEDIR="$pkgdir" PREFIX=/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"##" {} \;
-
-  mv "$pkgdir"/usr/sbin "$pkgdir"/usr/bin
-
-  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
-}

Copied: opensips/repos/community-x86_64/PKGBUILD (from rev 442451, opensips/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-18 12:02:21 UTC (rev 442452)
@@ -0,0 +1,81 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=opensips
+pkgver=2.4.5
+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' 'libmicrohttpd')
+optdepends=('postgresql-libs'
+	    'unixodbc'
+	    'libldap'
+	    'mariadb-libs'
+	    'libsasl'
+	    'python2'
+	    'pcre')
+backup=("etc/opensips/opensips.cfg"
+	"etc/opensips/osipsconsolerc"
+	"etc/opensips/opensipsctlrc")
+arch=('x86_64')
+license=('GPL')
+install=opensips.install
+options=('!emptydirs' 'zipman' '!makeflags' 'docs')
+source=(https://opensips.org/pub/opensips/${pkgver}/opensips-${pkgver}.tar.gz
+	opensips.service)
+sha256sums=('7a25f14dc21b587e6f5e2bcb4d70ad769a7a0c390f5d7c0c70afa6fb5094be46'
+            'c2fec4be085b108db10834fa9832e98d696c2de6408f85f96cf89c13bf6be819')
+
+prepare() {
+  cd "$srcdir"/$pkgname-$pkgver/
+
+  # 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
+}
+
+_modules="ldap db_mysql db_postgres db_unixodbc presence presence_xml h350 proto_tls tlsops tls_mgm db_http httpd tm rr"
+
+build() {
+  cd "$srcdir"/$pkgname-$pkgver/
+
+  make \
+	include_modules="${_modules}" \
+	LIBDIR=lib PREFIX=/usr
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver/
+
+  make \
+	include_modules="${_modules}" \
+	BASEDIR="$pkgdir" PREFIX=/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"##" {} \;
+
+  mv "$pkgdir"/usr/sbin "$pkgdir"/usr/bin
+
+  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
+}

Deleted: opensips.install
===================================================================
--- opensips.install	2019-03-18 12:02:08 UTC (rev 442451)
+++ opensips.install	2019-03-18 12:02:21 UTC (rev 442452)
@@ -1,3 +0,0 @@
-post_install() {
-  echo "To use MySQL, you should install mysql package and run 'opensipsdbctl create'"
-}

Copied: opensips/repos/community-x86_64/opensips.install (from rev 442451, opensips/trunk/opensips.install)
===================================================================
--- opensips.install	                        (rev 0)
+++ opensips.install	2019-03-18 12:02:21 UTC (rev 442452)
@@ -0,0 +1,3 @@
+post_install() {
+  echo "To use MySQL, you should install mysql package and run 'opensipsdbctl create'"
+}

Deleted: opensips.service
===================================================================
--- opensips.service	2019-03-18 12:02:08 UTC (rev 442451)
+++ opensips.service	2019-03-18 12:02:21 UTC (rev 442452)
@@ -1,11 +0,0 @@
-[Unit]
-Description=OpenSIPS daemon
-After=network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-PIDFile=/run/opensips.pid
-ExecStart=/usr/bin/opensips -f /etc/opensips/opensips.cfg -w /var/tmp -P /run/opensips.pid
-
-[Install]
-WantedBy=multi-user.target

Copied: opensips/repos/community-x86_64/opensips.service (from rev 442451, opensips/trunk/opensips.service)
===================================================================
--- opensips.service	                        (rev 0)
+++ opensips.service	2019-03-18 12:02:21 UTC (rev 442452)
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenSIPS daemon
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=forking
+PIDFile=/run/opensips.pid
+ExecStart=/usr/bin/opensips -f /etc/opensips/opensips.cfg -w /var/tmp -P /run/opensips.pid
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list