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