wok-next view x11vnc/receipt @ rev 21383

updated nbd again (3.3 -> 3.20)
author Hans-G?nter Theisgen
date Thu Apr 16 17:34:38 2020 +0100 (2020-04-16)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.karlrunge.com/x11vnc/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL"
14 BUILD_DEPENDS="openssl-dev jpeg-dev libx11-dev zlib-dev libxext-dev"
15 SPLIT="$PACKAGE-extra"
17 compile_rules() {
18 ./configure $CONFIGURE_ARGS &&
19 make &&
20 make -j1 DESTDIR=$install install || return 1
22 # rm -rf $install/usr/share/applications
23 install -Dm755 $stuff/x11vnc $install/etc/init.d/x11vnc
24 }
26 genpkg_rules() {
27 case $PACKAGE in
28 x11vnc)
29 copy x11vnc
30 DEPENDS="libxtst openssl jpeg libxdamage zlib"
31 TAGS="vnc server"
32 ;;
33 x11vnc-extra)
34 copy x11vnc/
35 CAT="network|java VNC viewer"
36 TAGS="vnc"
37 ;;
38 esac
39 }
41 post_install_x11vnc() {
42 grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT
43 # VNC server options.
44 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"
46 EOT
47 [ -f "$1/etc/vnc.secret" ] ||
48 chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret
49 }
51 post_install_x11vnc_extra() {
52 sed -i 's/X11VNC_OPTIONS="/X11VNC_OPTIONS="-ssl -http /' "$1/etc/daemons.conf"
53 }