wok-next annotate tightvnc/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f99935f1778a |
children | 5669e8b3be70 |
rev | line source |
---|---|
pascal@20152 | 1 # SliTaz package receipt v2. |
pascal@3631 | 2 |
pascal@3631 | 3 PACKAGE="tightvnc" |
pascal@3631 | 4 VERSION="1.3.10" |
pascal@3631 | 5 CATEGORY="x-window" |
al@21020 | 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@3631 | 10 WEB_SITE="http://www.tightvnc.com/" |
pascal@3631 | 11 WGET_URL="$SF_MIRROR/vnc-tight/$TARBALL" |
pascal@20152 | 12 |
pascal@4191 | 13 BUILD_DEPENDS="xorg-imake xorg-gccmakedep xorg-cf-files xorg-libXp \ |
al@20935 | 14 xorg-libXaw-dev xorg-libXt-dev xorg-libXau-dev xorg-libXdmcp-dev \ |
al@20935 | 15 xorg-libXmu-dev xorg-xorgproto \ |
al@20935 | 16 xorg-xauth jpeg-dev zlib-dev xorg-libXrandr-dev" |
al@21020 | 17 SPLIT="$PACKAGE-extra $PACKAGE-java $PACKAGE-viewer" |
pascal@3631 | 18 |
al@21020 | 19 compile_rules() { |
pascal@3631 | 20 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src |
pascal@3631 | 21 cd $src |
pascal@12658 | 22 sed -i -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \ |
pascal@12658 | 23 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \ |
pascal@12658 | 24 Xvnc/config/cf/X11.tmpl |
pascal@3631 | 25 xmkmf && |
slaxemulator@8383 | 26 make -j1 World && |
pascal@3631 | 27 cd Xvnc && |
pascal@3631 | 28 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1 |
slaxemulator@8383 | 29 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \ |
al@21020 | 30 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1 |
pascal@3631 | 31 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g' |
slaxemulator@8383 | 32 make -j1 && |
al@21020 | 33 make -j1 DESTDIR=$install install |
pascal@3631 | 34 cd .. && |
al@21020 | 35 make -j1 DESTDIR=$install install |
pascal@3631 | 36 } |
pascal@3631 | 37 |
al@21020 | 38 genpkg_rules() { |
pascal@20152 | 39 case $PACKAGE in |
al@21020 | 40 tightvnc) |
al@21020 | 41 TAGS="remote-desktop vnc" |
al@21020 | 42 DEPENDS="xorg-base-fonts jpeg zlib" |
al@21020 | 43 mkdir -p $fs/usr/bin |
al@21020 | 44 cp -a $install/usr/bin/Xvnc $fs/usr/bin |
al@21020 | 45 cp $src/vncpasswd/vncpasswd $fs/usr/bin |
al@21020 | 46 cat > $fs/usr/bin/startvnc <<EOM |
pascal@12656 | 47 #!/bin/sh |
pascal@12656 | 48 |
pascal@12656 | 49 case "\$1" in |
pascal@12656 | 50 ''|:*) ;; |
pascal@12656 | 51 *) cat <<EOT |
pascal@12656 | 52 Usage: \$0 [display] [geometry] [depth] |
pascal@12656 | 53 Default: \$0 :1 1920x1024 24 |
pascal@12656 | 54 EOT |
pascal@12656 | 55 exit 1 |
pascal@12656 | 56 esac |
al@21020 | 57 |
pascal@12656 | 58 . \$HOME/.config/slitaz/applications.conf |
pascal@12656 | 59 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} & |
pascal@12656 | 60 export DISPLAY=:\${1:-1} |
pascal@12656 | 61 exec \$WINDOW_MANAGER |
pascal@12656 | 62 EOM |
al@21020 | 63 chmod +x $fs/usr/bin/startvnc |
al@21020 | 64 ;; |
al@21020 | 65 tightvnc-extra) |
al@21020 | 66 CAT="x-window|extra tools" |
al@21020 | 67 TAGS="vnc" |
al@21020 | 68 DEPENDS="perl jpeg zlib xorg-libXdmcp xorg-libXau xorg-libX11 \ |
pascal@20152 | 69 xorg-libXext" |
al@21020 | 70 mkdir -p $fs/usr/bin $fs/etc |
al@21020 | 71 cp $src/vncconnect/vncconnect $src/vncserver $fs/usr/bin |
al@21020 | 72 cp $src/tightvncserver.conf $fs/etc |
al@21020 | 73 cat >> $fs/etc/tightvncserver.conf << 'EOF' |
pascal@20152 | 74 $vncClasses = "/usr/share/vnc/classes"; |
pascal@20152 | 75 $fontPath = "/usr/share/fonts/X11/misc/"; |
pascal@20152 | 76 EOF |
al@21020 | 77 ;; |
al@21020 | 78 tightvnc-java) |
al@21020 | 79 CAT="x-window|Java client" |
al@21020 | 80 DEPENDS="tightvnc" |
al@21020 | 81 mkdir -p $fs/usr/share/vnc |
al@21020 | 82 cp -pa $src/classes $fs/usr/share/vnc |
al@21020 | 83 ;; |
al@21020 | 84 tightvnc-viewer) |
al@21020 | 85 CAT="x-window|X client" |
al@21020 | 86 TAGS="vnc remote-desktop" |
al@21020 | 87 DEPENDS="jpeg zlib xorg-libXdmcp xorg-libXau xorg-libX11 \ |
pascal@20152 | 88 xorg-libXext xorg-libXp xorg-libXpm xorg-libICE \ |
pascal@20152 | 89 xorg-libSM xorg-libXt xorg-libXmu xorg-libXaw" |
al@21020 | 90 mkdir -p $fs/usr/bin |
al@21020 | 91 cp -a $install/usr/bin/vncviewer $fs/usr/bin |
al@21020 | 92 ;; |
pascal@20152 | 93 esac |
pascal@3631 | 94 } |