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