wok-next annotate x11vnc/receipt @ rev 20462

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Mar 06 03:00:01 2018 +0200 (2018-03-06)
parents c4e53a39395a
children da9e80c5d4bb
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
pascal@20215 14 BUILD_DEPENDS="openssl-dev jpeg-dev xorg-libX11-dev zlib-dev xorg-libXext-dev"
al@20462 15 SPLIT="x11vnc-extra"
pascal@699 16
al@20462 17 compile_rules() {
al@20462 18 ./configure \
al@20462 19 --prefix=/usr \
pascal@1847 20 $CONFIGURE_ARGS &&
pascal@1847 21 make &&
pascal@14850 22 make -j1 DESTDIR=$DESTDIR install &&
pascal@14850 23 echo rm -rf $DESTDIR/usr/share/applications
pascal@699 24 }
pascal@699 25
al@20462 26 genpkg_rules() {
al@20462 27 case $PACKAGE in
al@20462 28 x11vnc)
al@20462 29 mkdir -p $fs/usr/bin $fs/etc/init.d
al@20462 30 cp -a $install/usr/bin/x11vnc $fs/usr/bin
al@20462 31 cp -a $stuff/x11vnc $fs/etc/init.d
al@20462 32 DEPENDS="xorg-libXtst openssl jpeg xorg-libXdamage zlib"
al@20462 33 TAGS="vnc server"
al@20462 34 ;;
al@20462 35 *-dev)
al@20462 36 mkdir -p $fs/usr/share
al@20462 37 cp -a $install/usr/share/x11vnc $fs/usr/share
al@20462 38 CAT="network|java VNC viewer"
al@20462 39 TAGS="vnc"
al@20462 40 DEPENDS="x11vnc"
al@20462 41 ;;
al@20462 42 esac
pascal@699 43 }
pascal@699 44
al@20462 45 post_install_x11vnc() {
pascal@18730 46 grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT
pascal@699 47 # VNC server options.
pascal@17538 48 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 49
pascal@699 50 EOT
al@20462 51 [ -f "$1/etc/vnc.secret" ] ||
pascal@18730 52 chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret
pascal@699 53 }
pascal@699 54
al@20462 55 post_install_x11vnc_extra() {
al@20462 56 sed -i 's/X11VNC_OPTIONS="/X11VNC_OPTIONS="-ssl -http /' "$1/etc/daemons.conf"
al@20462 57 }