wok view x11vnc/receipt @ rev 9428

Up: linphone to 3.4.3.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Mar 31 02:39:22 2011 +0000 (2011-03-31)
parents 138f44cd13f8
children f250021092e0
line source
1 # SliTaz package receipt.
3 PACKAGE="x11vnc"
4 VERSION="0.9.12"
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-libXtst openssl slitaz-base-files jpeg xorg-libXdamage zlib"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure --prefix=/usr \
18 $CONFIGURE_ARGS &&
19 make &&
20 make -j1 DESTDIR=$src/_pkg install &&
21 echo rm -rf $src/_pkg/usr/share/applications
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/bin $fs/usr/share $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" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
36 # VNC server options.
37 X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop -tightfilexfer -permitfiletransfer -display :0"
39 EOT
40 [ -f $1/etc/vnc.secret ] ||
41 chroot $1/ x11vnc -storepasswd root /etc/vnc.secret
42 }