Commit 4459b016 authored by abveritas's avatar abveritas
Browse files

Adding synergy-plus, share mouse & keyboard

parent fe4b7090
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=synergy-plus
pkgver=1.3.4
pkgrel=2
pkgdesc="Share your mouse and keyboard between several computers"
arch=('i686' 'x86_64')
url="http://code.google.com/p/synergy-plus"
license=('GPL2')
depends=('libxtst' 'libsm' 'libxinerama')
source=("http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz"
"synergys.rc")
md5sums=('2c565afe5f920d363eef38dd97449b73'
'056e59b1d04a66820ffa4b53e5ec20bc')
provides=('synergy')
replaces=('synergy')
conflicts=('synergy')
backup=('etc/synergy.conf')
build() {
cd ${srcdir}/$pkgname-$pkgver
./configure --prefix=/usr --sysconfdir=/etc || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
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
}
#!/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 &> /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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment