wok view x11vnc/receipt @ rev 17988
Update LXDE stuff.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 23 01:34:37 2015 +0300 (2015-04-23) |
parents | dd6cfeea0048 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="x11vnc"
4 VERSION="0.9.13"
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 server"
13 HOST_ARCH="i486 arm"
15 DEPENDS="xorg-libXtst openssl jpeg xorg-libXdamage zlib"
16 BUILD_DEPENDS="openssl-dev jpeg-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
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/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 -auth /var/run/slim.auth -allow 10.,192.168.,127.0.0.1 -forever -loop -tightfilexfer -permitfiletransfer -display :0"
43 EOT
44 [ -f $1/etc/vnc.secret ] ||
45 chroot $1/ x11vnc -storepasswd root /etc/vnc.secret
46 }