wok-next view x11vnc/receipt @ rev 13618

Add gtk-recordmydesktop (frontend to recordmydesktop
author Christophe Lincoln <pankso@slitaz.org>
date Tue Nov 13 10:17:54 2012 +0100 (2012-11-13)
parents f250021092e0
children d1b6fe8c8301
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 TAGS="vnc"
13 DEPENDS="xorg-libXtst openssl slitaz-base-files jpeg xorg-libXdamage zlib"
14 BUILD_DEPENDS="openssl-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr \
21 $CONFIGURE_ARGS &&
22 make &&
23 make -j1 DESTDIR=$src/_pkg install &&
24 echo rm -rf $src/_pkg/usr/share/applications
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/share $fs/etc/init.d
31 cp -a $_pkg/usr/bin/x11vnc $fs/usr/bin
32 cp -a stuff/x11vnc $fs/etc/init.d
33 }
35 # Post install/remove commands for Tazpkg.
36 post_install()
37 {
38 grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
39 # VNC server options.
40 X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop -tightfilexfer -permitfiletransfer -display :0"
42 EOT
43 [ -f $1/etc/vnc.secret ] ||
44 chroot $1/ x11vnc -storepasswd root /etc/vnc.secret
45 }