wok-current annotate x11vnc/receipt @ rev 699

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