[arch-commits] Commit in synergy/repos (3 files)

Andrea Scarpino andrea at archlinux.org
Fri Nov 20 14:46:31 UTC 2009


    Date: Friday, November 20, 2009 @ 09:46:31
  Author: andrea
Revision: 59148

Merged revisions 59147 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/synergy/trunk

........
  r59147 | andrea | 2009-11-20 15:45:53 +0100 (Fri, 20 Nov 2009) | 2 lines
  
  upgpkg: synergy 1.3.1-6
      added synergys into rc.d (FS#17212)
........

Added:
  synergy/repos/extra-i686/synergys.rc
    (from rev 59147, synergy/trunk/synergys.rc)
Modified:
  synergy/repos/extra-i686/	(properties)
  synergy/repos/extra-i686/PKGBUILD

-------------+
 PKGBUILD    |    5 ++++-
 synergys.rc |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 1 deletion(-)


Property changes on: synergy/repos/extra-i686
___________________________________________________________________
Modified: svnmerge-integrated
   - /synergy/trunk:1-56272
   + /synergy/trunk:1-59147

Modified: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2009-11-20 14:45:53 UTC (rev 59147)
+++ extra-i686/PKGBUILD	2009-11-20 14:46:31 UTC (rev 59148)
@@ -3,7 +3,7 @@
 
 pkgname=synergy
 pkgver=1.3.1
-pkgrel=5
+pkgrel=6
 pkgdesc="Share a single mouse and keyboard between multiple pcs"
 arch=('i686' 'x86_64')
 depends=('gcc-libs' 'libxtst' 'libxinerama')
@@ -12,6 +12,7 @@
 backup=('etc/synergy.conf')
 url="http://synergy2.sourceforge.net/"
 source=(http://downloads.sourceforge.net/${pkgname}2/$pkgname-$pkgver.tar.gz
+	'synergys.rc'
 	'gcc43.patch')
 md5sums=('a6e09d6b71cb217f23069980060abf27'
          '255c3f641c5f077e33e284db771220b8')
@@ -28,4 +29,6 @@
 
   install -m755 -d "${pkgdir}/etc"
   install -m644 examples/synergy.conf "${pkgdir}/etc/" || return 1
+
+  install -Dm755 ${srcdir}/synergys.rc ${pkgdir}/etc/rc.d/synergy || return 1
 }

Copied: synergy/repos/extra-i686/synergys.rc (from rev 59147, synergy/trunk/synergys.rc)
===================================================================
--- extra-i686/synergys.rc	                        (rev 0)
+++ extra-i686/synergys.rc	2009-11-20 14:46:31 UTC (rev 59148)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+daemon_name=synergys
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/bin/synergys`
+case "$1" in
+  start)
+    stat_busy "Starting Synergy Server"
+    [ -z "$PID" ] && /usr/bin/synergys --config /etc/synergy.conf --address localhost &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon $daemon_name
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping Synergy Server"
+    [ ! -z "$PID" ] && kill -9 $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon $daemon_name
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)	
+    echo "usage: $0 {start|stop|restart}"
+esac
+exit 0




More information about the arch-commits mailing list