wok-current annotate tightvnc/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (22 months ago)
parents 6304be04f8b3
children
rev   line source
pascal@3631 1 # SliTaz package receipt.
pascal@3631 2
pascal@3631 3 PACKAGE="tightvnc"
pascal@3631 4 VERSION="1.3.10"
pascal@3631 5 CATEGORY="x-window"
pascal@3631 6 SHORT_DESC="VNC server (graphical remote control)."
pascal@3631 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14850 8 LICENSE="GPL2"
pascal@3631 9 TARBALL="$PACKAGE-${VERSION}_unixsrc.tar.bz2"
pascal@25539 10 WEB_SITE="https://www.tightvnc.com/"
pascal@3631 11 WGET_URL="$SF_MIRROR/vnc-tight/$TARBALL"
slaxemulator@8535 12 DEPENDS="xorg-base-fonts jpeg zlib"
pascal@4191 13 BUILD_DEPENDS="xorg-imake xorg-gccmakedep xorg-cf-files xorg-libXp \
pascal@4191 14 xorg-libXaw-dev xorg-libXt-dev xorg-xproto xorg-libXau-dev xorg-libXdmcp-dev \
pascal@4191 15 xorg-libXmu-dev xorg-xextproto xorg-printproto xorg-kbproto xorg-inputproto \
pascal@12657 16 xorg-scrnsaverproto xorg-xauth jpeg-dev zlib-dev xorg-libXrandr-dev"
pascal@13034 17 TAGS="remote-desktop vnc"
pascal@3631 18
pascal@24340 19 # What is the latest version available today?
pascal@24340 20 current_version()
pascal@24340 21 {
pascal@24340 22 wget -O - https://sourceforge.net/projects/vnc-tight/files/TightVNC-unix/ 2>/dev/null | \
pascal@24340 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 24 sed '/scope="row/!d;s|.*/TightVNC-unix/||;s|/.*||;q'
pascal@24340 25 }
pascal@24340 26
pascal@3631 27 # Rules to configure and make the package.
pascal@3631 28 compile_rules()
pascal@3631 29 {
pascal@3631 30 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src
pascal@3631 31 cd $src
pascal@12658 32 sed -i -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \
pascal@12658 33 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \
pascal@12658 34 Xvnc/config/cf/X11.tmpl
pascal@25269 35 sed -i 's|ArCmdBase clq|ArCmdBase cq|' Xvnc/config/cf/Imake.tmpl
pascal@3631 36 xmkmf &&
slaxemulator@8383 37 make -j1 World &&
pascal@3631 38 cd Xvnc &&
pascal@3631 39 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1
slaxemulator@8383 40 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
slaxemulator@8383 41 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1
pascal@3631 42 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g'
slaxemulator@8383 43 make -j1 &&
pascal@12656 44 make -j1 DESTDIR=$DESTDIR install
pascal@3631 45 cd .. &&
pascal@12656 46 make -j1 DESTDIR=$DESTDIR install
pascal@3631 47 }
pascal@3631 48
pascal@3631 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3631 50 genpkg_rules()
pascal@3631 51 {
pascal@3631 52 mkdir -p $fs/usr/bin
erjo@14845 53 cp -a $install/usr/bin/Xvnc $fs/usr/bin
pascal@3632 54 cp $src/vncpasswd/vncpasswd $fs/usr/bin
pascal@12656 55 cat > $fs/usr/bin/startvnc <<EOM
pascal@12656 56 #!/bin/sh
pascal@12656 57
pascal@12656 58 case "\$1" in
pascal@12656 59 ''|:*) ;;
pascal@12656 60 *) cat <<EOT
pascal@12656 61 Usage: \$0 [display] [geometry] [depth]
pascal@12656 62 Default: \$0 :1 1920x1024 24
pascal@12656 63 EOT
pascal@12656 64 exit 1
pascal@12656 65 esac
pascal@12656 66
pascal@12656 67 . \$HOME/.config/slitaz/applications.conf
pascal@12656 68 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} &
pascal@12656 69 export DISPLAY=:\${1:-1}
pascal@12656 70 exec \$WINDOW_MANAGER
pascal@12656 71 EOM
pascal@12656 72 chmod +x $fs/usr/bin/startvnc
pascal@3631 73 }