wok-current view x11vnc/receipt @ rev 700
x11vnc: start daemon in background...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 01 17:41:00 2008 +0000 (2008-05-01) |
parents | 036b1f427445 |
children | 27fd74eca13e |
line source
1 # SliTaz package receipt.
3 PACKAGE="x11vnc"
4 VERSION="0.9.3"
5 CATEGORY="network"
6 SHORT_DESC="VNC server using X server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.karlrunge.com/x11vnc/"
10 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL"
11 DEPENDS="xorg xorg-libXtst openssl"
12 BUILD_DEPENDS="xorg-dev xorg-libXdamage-dev xorg-libXtst-dev openssl-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr \
19 $CONFIGURE_ARGS
20 make
21 make DESTDIR=$src/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin $fs/etc/init.d
28 cp -a $_pkg/usr/bin/x11vnc $fs/usr/bin
29 cp -a stuff/x11vnc $fs/etc/init.d
30 }
32 # Post install/remove commands for Tazpkg.
33 post_install()
34 {
35 grep -q "^X11VNC" /etc/daemons.conf || cat >> /etc/daemons.conf <<EOT
36 # VNC server options.
37 X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -forever -bg"
39 EOT
40 [ -f /etc/vnc.secret ] || echo -en '\x70\x05\xE3\x8B\x81\xB0\xB2\1B' \
41 > /etc/vnc.secret # root
42 }