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

Giovanni Scafora giovanni at archlinux.org
Fri Nov 20 11:00:06 EST 2009


    Date: Friday, November 20, 2009 @ 11:00:06
  Author: giovanni
Revision: 59166

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

........
  r59147 | andrea | 2009-11-20 06:45:53 -0800 (ven, 20 nov 2009) | 2 lines
  
  upgpkg: synergy 1.3.1-6
      added synergys into rc.d (FS#17212)
........
  r59164 | giovanni | 2009-11-20 07:58:26 -0800 (ven, 20 nov 2009) | 1 line
........

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

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


Property changes on: synergy/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /synergy/trunk:1-56275
   + /synergy/trunk:1-59165

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2009-11-20 15:59:13 UTC (rev 59165)
+++ extra-x86_64/PKGBUILD	2009-11-20 16:00:06 UTC (rev 59166)
@@ -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,8 +12,10 @@
 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'
+         '64499dbb09d16f7fa4a07d1a56d49e83'
          '255c3f641c5f077e33e284db771220b8')
 
 build() {
@@ -28,4 +30,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-x86_64/synergys.rc (from rev 59164, synergy/trunk/synergys.rc)
===================================================================
--- extra-x86_64/synergys.rc	                        (rev 0)
+++ extra-x86_64/synergys.rc	2009-11-20 16:00:06 UTC (rev 59166)
@@ -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