diff options
author | root <root@rshg054.dnsready.net> | 2011-09-14 23:14:41 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-09-14 23:14:41 +0000 |
commit | d5effc9aadfb9ed5890376ca9497eef52fafcf83 (patch) | |
tree | f630036c6ee41473fffa6086618dcc803d1fe391 /extra/x11vnc | |
parent | a712dc92423a31a4d3ab34fe660df550feebf442 (diff) |
Wed Sep 14 23:14:41 UTC 2011
Diffstat (limited to 'extra/x11vnc')
-rw-r--r-- | extra/x11vnc/PKGBUILD | 32 | ||||
-rw-r--r-- | extra/x11vnc/conf.d | 5 | ||||
-rw-r--r-- | extra/x11vnc/rc.d | 37 |
3 files changed, 58 insertions, 16 deletions
diff --git a/extra/x11vnc/PKGBUILD b/extra/x11vnc/PKGBUILD index 15d64aa92..fd49db451 100644 --- a/extra/x11vnc/PKGBUILD +++ b/extra/x11vnc/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 91112 2010-09-22 19:40:25Z bisson $ +# $Id: PKGBUILD 137979 2011-09-13 20:01:54Z bisson $ # Maintainer: Gaetan Bisson <bisson@archlinux.org> # Contributor: damir <damir@archlinux.org> pkgname=x11vnc -pkgver=0.9.12 +pkgver=0.9.13 pkgrel=1 pkgdesc='VNC server for real X displays' arch=('i686' 'x86_64') @@ -12,25 +12,25 @@ license=('GPL2') depends=('openssl' 'libjpeg' 'zlib' 'libx11' 'libxtst' 'libxinerama' 'libxdamage' 'libxrandr' 'avahi') optdepends=('tk: for GUI support') backup=('etc/conf.d/x11vnc') -source=("http://downloads.sourceforge.net/libvncserver/${pkgname}-${pkgver}.tar.gz" - 'x11vnc.rc' - 'x11vnc.conf') -sha1sums=('cf4e24bee5962b52d8f2a5442a7c44943a9cc0bb' - '3abb3fcadff32662ab847a9e772cd23cfdfe3d1a' - '11011cce06511e9ba61672a1c80bb63a3a187539') +source=("http://downloads.sourceforge.net/project/libvncserver/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz" + 'conf.d' + 'rc.d') +sha1sums=('f011d81488ac94dc8dce2d88739c23bd85a976fa' + '11011cce06511e9ba61672a1c80bb63a3a187539' + '477892cf0f0020043444b7493c80684762ded506') build() { - cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr --mandir=/usr/share/man - make + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --mandir=/usr/share/man + make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install - rm -fr "${pkgdir}"/usr/include/rfb # provided by libvncserver + rm -fr "${pkgdir}"/usr/include/rfb # provided by libvncserver - install -D -m 755 "${srcdir}/x11vnc.rc" "${pkgdir}/etc/rc.d/x11vnc" - install -D -m 644 "${srcdir}/x11vnc.conf" "${pkgdir}/etc/conf.d/x11vnc" + install -D -m 755 "${srcdir}/rc.d" "${pkgdir}/etc/rc.d/x11vnc" + install -D -m 644 "${srcdir}/conf.d" "${pkgdir}/etc/conf.d/x11vnc" } diff --git a/extra/x11vnc/conf.d b/extra/x11vnc/conf.d new file mode 100644 index 000000000..8a81e3286 --- /dev/null +++ b/extra/x11vnc/conf.d @@ -0,0 +1,5 @@ +# +# Parameters to be passed to x11vnc +# + +X11VNC_ARGS="" diff --git a/extra/x11vnc/rc.d b/extra/x11vnc/rc.d new file mode 100644 index 000000000..b5f2a6464 --- /dev/null +++ b/extra/x11vnc/rc.d @@ -0,0 +1,37 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/x11vnc + +PID=$(pidof -o %PPID /usr/bin/x11vnc) +case "$1" in + start) + stat_busy "Starting x11vnc" + [[ -z "$PID" ]] && /usr/bin/x11vnc $X11VNC_ARGS &> /dev/null & + if [[ $? -gt 0 ]]; then + stat_fail + else + add_daemon x11vnc + stat_done + fi + ;; + stop) + stat_busy "Stopping x11vnc" + [[ ! -z "$PID" ]] && kill $PID &> /dev/null + if [[ $? -gt 0 ]]; then + stat_fail + else + rm_daemon x11vnc + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 |