wok view x11vnc/receipt @ rev 25800
Up xcursor-aero (20240910)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 28 13:19:05 2024 +0000 (4 weeks ago) |
parents | 870e1ce31226 |
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./autogen.sh \
31 --prefix=/usr \
32 $CONFIGURE_ARGS &&
33 make &&
34 make -j1 DESTDIR=$DESTDIR install &&
35 echo rm -rf $DESTDIR/usr/share/applications
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin
42 mkdir -p $fs/etc/init.d
44 cp -a $install/usr/bin/x11vnc $fs/usr/bin
45 cp -a $stuff/x11vnc $fs/etc/init.d
46 }
48 # Post install commands for Tazpkg.
49 post_install()
50 {
51 grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT
52 # VNC server options.
53 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"
55 EOT
56 [ -f "$1/etc/vnc.secret" ] ||
57 chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret
58 }