wok-next view x11vnc/receipt @ rev 20785
gpgme: add gnupg, since build can not find gpgconf and gpg
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sat Jun 09 07:02:52 2018 +0000 (2018-06-09) |
parents | da9e80c5d4bb |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="x11vnc"
4 VERSION="0.9.13"
5 CATEGORY="network"
6 SHORT_DESC="VNC server using X server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.karlrunge.com/x11vnc/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL"
14 BUILD_DEPENDS="openssl-dev jpeg-dev xorg-libX11-dev zlib-dev xorg-libXext-dev"
15 SPLIT="x11vnc-extra"
17 compile_rules() {
18 ./configure $CONFIGURE_ARGS &&
19 make &&
20 make -j1 DESTDIR=$DESTDIR install || return 1
22 # rm -rf $DESTDIR/usr/share/applications
23 install -Dm755 $stuff/x11vnc $install/etc/init.d/x11vnc
24 }
26 genpkg_rules() {
27 case $PACKAGE in
28 x11vnc)
29 copy x11vnc
30 DEPENDS="xorg-libXtst openssl jpeg xorg-libXdamage zlib"
31 TAGS="vnc server"
32 ;;
33 x11vnc-extra)
34 copy x11vnc/
35 CAT="network|java VNC viewer"
36 TAGS="vnc"
37 ;;
38 esac
39 }
41 post_install_x11vnc() {
42 grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT
43 # VNC server options.
44 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"
46 EOT
47 [ -f "$1/etc/vnc.secret" ] ||
48 chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret
49 }
51 post_install_x11vnc_extra() {
52 sed -i 's/X11VNC_OPTIONS="/X11VNC_OPTIONS="-ssl -http /' "$1/etc/daemons.conf"
53 }