wok-next diff x11vnc/receipt @ rev 20462
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Mar 06 03:00:01 2018 +0200 (2018-03-06) |
parents | c4e53a39395a |
children | da9e80c5d4bb |
line diff
1.1 --- a/x11vnc/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/x11vnc/receipt Tue Mar 06 03:00:01 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="x11vnc" 1.8 VERSION="0.9.13" 1.9 @@ -6,41 +6,52 @@ 1.10 SHORT_DESC="VNC server using X server" 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="GPL2" 1.13 +WEB_SITE="http://www.karlrunge.com/x11vnc/" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WEB_SITE="http://www.karlrunge.com/x11vnc/" 1.17 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL" 1.18 -TAGS="vnc server" 1.19 1.20 -DEPENDS="xorg-libXtst openssl jpeg xorg-libXdamage zlib" 1.21 BUILD_DEPENDS="openssl-dev jpeg-dev xorg-libX11-dev zlib-dev xorg-libXext-dev" 1.22 +SPLIT="x11vnc-extra" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 - ./configure --prefix=/usr \ 1.28 +compile_rules() { 1.29 + ./configure \ 1.30 + --prefix=/usr \ 1.31 $CONFIGURE_ARGS && 1.32 make && 1.33 make -j1 DESTDIR=$DESTDIR install && 1.34 echo rm -rf $DESTDIR/usr/share/applications 1.35 } 1.36 1.37 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.38 -genpkg_rules() 1.39 -{ 1.40 - mkdir -p $fs/usr/bin $fs/etc/init.d 1.41 - cp -a $install/usr/bin/x11vnc $fs/usr/bin 1.42 - cp -a $stuff/x11vnc $fs/etc/init.d 1.43 +genpkg_rules() { 1.44 + case $PACKAGE in 1.45 + x11vnc) 1.46 + mkdir -p $fs/usr/bin $fs/etc/init.d 1.47 + cp -a $install/usr/bin/x11vnc $fs/usr/bin 1.48 + cp -a $stuff/x11vnc $fs/etc/init.d 1.49 + DEPENDS="xorg-libXtst openssl jpeg xorg-libXdamage zlib" 1.50 + TAGS="vnc server" 1.51 + ;; 1.52 + *-dev) 1.53 + mkdir -p $fs/usr/share 1.54 + cp -a $install/usr/share/x11vnc $fs/usr/share 1.55 + CAT="network|java VNC viewer" 1.56 + TAGS="vnc" 1.57 + DEPENDS="x11vnc" 1.58 + ;; 1.59 + esac 1.60 } 1.61 1.62 -# Post install/remove commands for Tazpkg. 1.63 -post_install() 1.64 -{ 1.65 +post_install_x11vnc() { 1.66 grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT 1.67 # VNC server options. 1.68 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" 1.69 1.70 EOT 1.71 - [ -f "$1/etc/vnc.secret" ] || 1.72 + [ -f "$1/etc/vnc.secret" ] || 1.73 chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret 1.74 } 1.75 1.76 +post_install_x11vnc_extra() { 1.77 + sed -i 's/X11VNC_OPTIONS="/X11VNC_OPTIONS="-ssl -http /' "$1/etc/daemons.conf" 1.78 +}