wok-next annotate x11vnc/receipt @ rev 19224
Add bsc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 21 15:47:21 2016 +0200 (2016-06-21) |
parents | 4f1b00a89af1 |
children | d919176411a4 |
rev | line source |
---|---|
pascal@699 | 1 # SliTaz package receipt. |
pascal@699 | 2 |
pascal@699 | 3 PACKAGE="x11vnc" |
pascal@17880 | 4 VERSION="0.9.13" |
pascal@699 | 5 CATEGORY="network" |
pascal@699 | 6 SHORT_DESC="VNC server using X server" |
pascal@699 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14850 | 8 LICENSE="GPL2" |
pascal@699 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@699 | 10 WEB_SITE="http://www.karlrunge.com/x11vnc/" |
pascal@699 | 11 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL" |
pankso@16290 | 12 TAGS="vnc server" |
pankso@16290 | 13 HOST_ARCH="i486 arm" |
pascal@10455 | 14 |
pankso@16290 | 15 DEPENDS="xorg-libXtst openssl jpeg xorg-libXdamage zlib" |
pankso@16290 | 16 BUILD_DEPENDS="openssl-dev jpeg-dev" |
pascal@699 | 17 |
pascal@699 | 18 # Rules to configure and make the package. |
pascal@699 | 19 compile_rules() |
pascal@699 | 20 { |
pascal@699 | 21 ./configure --prefix=/usr \ |
pascal@1847 | 22 $CONFIGURE_ARGS && |
pascal@1847 | 23 make && |
pascal@14850 | 24 make -j1 DESTDIR=$DESTDIR install && |
pascal@14850 | 25 echo rm -rf $DESTDIR/usr/share/applications |
pascal@699 | 26 } |
pascal@699 | 27 |
pascal@699 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@699 | 29 genpkg_rules() |
pascal@699 | 30 { |
pankso@16290 | 31 mkdir -p $fs/usr/bin $fs/etc/init.d |
pascal@14853 | 32 cp -a $install/usr/bin/x11vnc $fs/usr/bin |
pascal@14853 | 33 cp -a $stuff/x11vnc $fs/etc/init.d |
pascal@699 | 34 } |
pascal@699 | 35 |
pascal@699 | 36 # Post install/remove commands for Tazpkg. |
pascal@699 | 37 post_install() |
pascal@699 | 38 { |
pascal@18730 | 39 grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT |
pascal@699 | 40 # VNC server options. |
pascal@17538 | 41 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 | 42 |
pascal@699 | 43 EOT |
pascal@18730 | 44 [ -f "$1/etc/vnc.secret" ] || |
pascal@18730 | 45 chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret |
pascal@699 | 46 } |
pascal@699 | 47 |