wok-next view tightvnc/receipt @ rev 20942

Updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 28 08:45:59 2018 +0300 (2018-08-28)
parents 219ee9373b80
children d5aab818505e
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="tightvnc tightvnc-extra tightvnc-java tightvnc-viewer"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 [ -d vnc_unixsrc ] && mv vnc_unixsrc $src
23 cd $src
24 sed -i -e "s| FONTDIR =.*$| FONTDIR = /usr/share/fonts/X11|" \
25 -e 's|\(define DefaultRGBDatabase\) .*|\1 /usr/share/X11/rgb|' \
26 Xvnc/config/cf/X11.tmpl
27 xmkmf &&
28 make -j1 World &&
29 cd Xvnc &&
30 ./configure --prefix=/usr $CONFIGURE_ARGS || return 1
31 sed 's|PROTO_DEFINES =|PROTO_DEFINES = -D_XOPEN_SOURCE=500L|' \
32 -i programs/Xserver/os/Makefile lib/font/fc/Makefile || return 1
33 find -name Makefile | xargs sed -i 's|/usr/X11R6/bin|/usr/bin|g'
34 make -j1 &&
35 make -j1 DESTDIR=$DESTDIR install
36 cd .. &&
37 make -j1 DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 tightvnc)
45 TAGS="remote-desktop vnc"
46 DEPENDS="xorg-base-fonts jpeg zlib"
47 mkdir -p $fs/usr/bin
48 cp -a $install/usr/bin/Xvnc $fs/usr/bin
49 cp $src/vncpasswd/vncpasswd $fs/usr/bin
50 cat > $fs/usr/bin/startvnc <<EOM
51 #!/bin/sh
53 case "\$1" in
54 ''|:*) ;;
55 *) cat <<EOT
56 Usage: \$0 [display] [geometry] [depth]
57 Default: \$0 :1 1920x1024 24
58 EOT
59 exit 1
60 esac
62 . \$HOME/.config/slitaz/applications.conf
63 Xvnc -ac -geometry \${2:-1920x1024} -depth \${3:-24} :\${1:-1} &
64 export DISPLAY=:\${1:-1}
65 exec \$WINDOW_MANAGER
66 EOM
67 chmod +x $fs/usr/bin/startvnc
68 ;;
69 tightvnc-extra)
70 CAT="x-window|VNC extra tools."
71 TAGS="vnc"
72 DEPENDS="perl jpeg zlib xorg-libXdmcp xorg-libXau xorg-libX11 \
73 xorg-libXext"
74 mkdir -p $fs/usr/bin $fs/etc
75 cp $src/vncconnect/vncconnect $src/vncserver $fs/usr/bin
76 cp $src/tightvncserver.conf $fs/etc
77 cat >> $fs/etc/tightvncserver.conf << 'EOF'
78 $vncClasses = "/usr/share/vnc/classes";
79 $fontPath = "/usr/share/fonts/X11/misc/";
80 EOF
81 ;;
82 tightvnc-java)
83 CAT="x-window|VNC Java client."
84 DEPENDS="tightvnc"
85 mkdir -p $fs/usr/share/vnc
86 cp -pa $src/classes $fs/usr/share/vnc
87 ;;
88 tightvnc-viewer)
89 CAT="x-window|VNC client for X."
90 TAGS="vnc remote-desktop"
91 DEPENDS="jpeg zlib xorg-libXdmcp xorg-libXau xorg-libX11 \
92 xorg-libXext xorg-libXp xorg-libXpm xorg-libICE \
93 xorg-libSM xorg-libXt xorg-libXmu xorg-libXaw"
94 mkdir -p $fs/usr/bin
95 cp -a $install/usr/bin/vncviewer $fs/usr/bin
96 ;;
97 esac
98 }