[arch-commits] Commit in yate/trunk (PKGBUILD yate.service)

Sergej Pupykin spupykin at archlinux.org
Fri May 26 14:14:55 UTC 2017


    Date: Friday, May 26, 2017 @ 14:14:54
  Author: spupykin
Revision: 230472

add .service file

Added:
  yate/trunk/yate.service
Modified:
  yate/trunk/PKGBUILD

--------------+
 PKGBUILD     |    9 ++++++---
 yate.service |   14 ++++++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-26 13:54:19 UTC (rev 230471)
+++ PKGBUILD	2017-05-26 14:14:54 UTC (rev 230472)
@@ -6,7 +6,7 @@
 
 pkgname=yate
 pkgver=5.5.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Next-generation telephony engine"
 arch=('i686' 'x86_64')
 url="http://www.yate.ro/"
@@ -15,8 +15,10 @@
 makedepends=('qt4')
 optdepends=('qt4')
 options=(!makeflags)
-source=("http://yate.null.ro/tarballs/yate5/yate-${pkgver}-1.tar.gz")
-sha256sums=('a9fc472df082e92d578efa3de54689e10ee1a24fdd67a9cc928db7c2e1568676')
+source=("http://yate.null.ro/tarballs/yate5/yate-${pkgver}-1.tar.gz"
+	"yate.service")
+sha256sums=('a9fc472df082e92d578efa3de54689e10ee1a24fdd67a9cc928db7c2e1568676'
+            '73eab39a0ba884a4c36ca7c8f1faea4000301a0e795544b74cba78d90de5e302')
 
 build() {
   cd $srcdir/${pkgname}
@@ -33,4 +35,5 @@
 package(){
   cd $srcdir/${pkgname}
   make DESTDIR=$pkgdir install
+  install -Dm0644 "$srcdir"/yate.service "$pkgdir"/usr/lib/systemd/system/yate.service
 }

Added: yate.service
===================================================================
--- yate.service	                        (rev 0)
+++ yate.service	2017-05-26 14:14:54 UTC (rev 230472)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Next-generation telephony engine
+
+[Service]
+Type=simple
+User=nobody
+ExecStart=/usr/bin/yate
+StandardOutput=syslog
+Restart=always
+RestartSec=60
+RuntimeDirectory=yate
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list