wok-next annotate x11vnc/receipt @ rev 21550

updated childsplay (3.3 -> 3.4)
author Hans-G?nter Theisgen
date Mon Jun 22 10:26:12 2020 +0100 (2020-06-22)
parents d5aab818505e
children
rev   line source
al@20462 1 # SliTaz package receipt v2.
pascal@699 2
pascal@699 3 PACKAGE="x11vnc"
pascal@17880 4 VERSION="0.9.13"
pascal@699 5 CATEGORY="network"
pascal@699 6 SHORT_DESC="VNC server using X server"
pascal@699 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14850 8 LICENSE="GPL2"
al@20462 9 WEB_SITE="http://www.karlrunge.com/x11vnc/"
al@20462 10
pascal@699 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@699 12 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL"
pascal@10455 13
al@21078 14 BUILD_DEPENDS="openssl-dev jpeg-dev libx11-dev zlib-dev libxext-dev"
al@21020 15 SPLIT="$PACKAGE-extra"
pascal@699 16
al@20462 17 compile_rules() {
al@20568 18 ./configure $CONFIGURE_ARGS &&
pascal@1847 19 make &&
al@21020 20 make -j1 DESTDIR=$install install || return 1
al@20503 21
al@21020 22 # rm -rf $install/usr/share/applications
al@20503 23 install -Dm755 $stuff/x11vnc $install/etc/init.d/x11vnc
pascal@699 24 }
pascal@699 25
al@20462 26 genpkg_rules() {
al@20462 27 case $PACKAGE in
al@20462 28 x11vnc)
al@20503 29 copy x11vnc
al@21078 30 DEPENDS="libxtst openssl jpeg libxdamage zlib"
al@20462 31 TAGS="vnc server"
al@20462 32 ;;
al@20503 33 x11vnc-extra)
al@20503 34 copy x11vnc/
al@20462 35 CAT="network|java VNC viewer"
al@20462 36 TAGS="vnc"
al@20462 37 ;;
al@20462 38 esac
pascal@699 39 }
pascal@699 40
al@20462 41 post_install_x11vnc() {
pascal@18730 42 grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT
pascal@699 43 # VNC server options.
pascal@17538 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"
pascal@699 45
pascal@699 46 EOT
al@20462 47 [ -f "$1/etc/vnc.secret" ] ||
pascal@18730 48 chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret
pascal@699 49 }
pascal@699 50
al@20462 51 post_install_x11vnc_extra() {
al@20462 52 sed -i 's/X11VNC_OPTIONS="/X11VNC_OPTIONS="-ssl -http /' "$1/etc/daemons.conf"
al@20462 53 }