wok-6.x view x11vnc/receipt @ rev 25556
created recipes for nted and nted-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 22 14:54:15 2023 +0100 (19 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="x11vnc"
4 VERSION="0.9.16"
5 CATEGORY="network"
6 TAGS="vnc server"
7 SHORT_DESC="VNC server for real X displays."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://github.com/LibVNC/x11vnc"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/LibVNC/$PACKAGE/archive/$VERSION.tar.gz"
15 DEPENDS="jpeg libvncserver openssl xorg-libXdamage xorg-libXtst zlib"
16 BUILD_DEPENDS="libtool jpeg-dev libvncserver-dev openssl-dev"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./autogen.sh \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make &&
33 make -j1 DESTDIR=$DESTDIR install &&
34 echo rm -rf $DESTDIR/usr/share/applications
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin
41 mkdir -p $fs/etc/init.d
43 cp -a $install/usr/bin/x11vnc $fs/usr/bin
44 cp -a $stuff/x11vnc $fs/etc/init.d
45 }
47 # Post install commands for Tazpkg.
48 post_install()
49 {
50 grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT
51 # VNC server options.
52 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"
54 EOT
55 [ -f "$1/etc/vnc.secret" ] ||
56 chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret
57 }