wok view x11vnc/receipt @ rev 15552
Up: thunderbird-langpack-el (17.0.11esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 24 17:37:29 2013 +0100 (2013-11-24) |
parents | d1b6fe8c8301 |
children | a1b05b1a9d1d |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.karlrunge.com/x11vnc/"
11 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL"
12 TAGS="vnc"
14 DEPENDS="xorg-libXtst openssl slitaz-base-files jpeg xorg-libXdamage zlib"
15 BUILD_DEPENDS="openssl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr \
22 $CONFIGURE_ARGS &&
23 make &&
24 make -j1 DESTDIR=$DESTDIR install &&
25 echo rm -rf $DESTDIR/usr/share/applications
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin $fs/usr/share $fs/etc/init.d
32 cp -a $install/usr/bin/x11vnc $fs/usr/bin
33 cp -a $stuff/x11vnc $fs/etc/init.d
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
40 # VNC server options.
41 X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop -tightfilexfer -permitfiletransfer -display :0"
43 EOT
44 [ -f $1/etc/vnc.secret ] ||
45 chroot $1/ x11vnc -storepasswd root /etc/vnc.secret
46 }