wok-4.x annotate x11vnc/receipt @ rev 7175

Up: libupnp to 1.6.9.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Nov 07 23:38:27 2010 +0000 (2010-11-07)
parents 0eae4b09055d
children 220de5cb2071
rev   line source
pascal@699 1 # SliTaz package receipt.
pascal@699 2
pascal@699 3 PACKAGE="x11vnc"
slaxemulator@6254 4 VERSION="0.9.11"
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@2420 11 DEPENDS="xorg xorg-libXtst openssl slitaz-base-files jpeg xorg-libXdamage zlib"
slaxemulator@6254 12 BUILD_DEPENDS="xorg-dev xorg-libXdamage-dev xorg-libXtst-dev openssl openssl-dev zlib zlib-dev jpeg-dev xorg-dev-proto"
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@1847 19 $CONFIGURE_ARGS &&
pascal@1847 20 make &&
pascal@1847 21 make DESTDIR=$src/_pkg install &&
pascal@2426 22 echo rm -rf $src/_pkg/usr/share/applications
pascal@699 23 }
pascal@699 24
pascal@699 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@699 26 genpkg_rules()
pascal@699 27 {
pascal@4363 28 mkdir -p $fs/usr/bin $fs/usr/share $fs/etc/init.d
pascal@699 29 cp -a $_pkg/usr/bin/x11vnc $fs/usr/bin
pascal@699 30 cp -a stuff/x11vnc $fs/etc/init.d
pascal@699 31 }
pascal@699 32
pascal@699 33 # Post install/remove commands for Tazpkg.
pascal@699 34 post_install()
pascal@699 35 {
pascal@703 36 grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
pascal@699 37 # VNC server options.
pascal@1847 38 X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop -tightfilexfer -permitfiletransfer -display :0"
pascal@699 39
pascal@699 40 EOT
pascal@703 41 [ -f $1/etc/vnc.secret ] || echo -en 'p\x05\xE3\x8B\x81\xB0\xB2\x1B' \
pascal@703 42 > $1/etc/vnc.secret # root
pascal@699 43 }
pascal@699 44