wok-next annotate x11vnc/receipt @ rev 10525
ophcrack: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 16:22:24 2011 +0200 (2011-05-25) |
parents | f3c1a01dae12 |
children | e53e5e4b0f9e |
rev | line source |
---|---|
pascal@699 | 1 # SliTaz package receipt. |
pascal@699 | 2 |
pascal@699 | 3 PACKAGE="x11vnc" |
slaxemulator@7364 | 4 VERSION="0.9.12" |
pascal@699 | 5 CATEGORY="network" |
pascal@699 | 6 SHORT_DESC="VNC server using X server" |
pascal@699 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@699 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@699 | 9 WEB_SITE="http://www.karlrunge.com/x11vnc/" |
pascal@699 | 10 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL" |
pascal@10455 | 11 |
slaxemulator@8961 | 12 DEPENDS="xorg-libXtst openssl slitaz-base-files jpeg xorg-libXdamage zlib" |
pascal@10455 | 13 BUILD_DEPENDS="openssl-dev" |
pascal@699 | 14 |
pascal@699 | 15 # Rules to configure and make the package. |
pascal@699 | 16 compile_rules() |
pascal@699 | 17 { |
pascal@699 | 18 cd $src |
pascal@699 | 19 ./configure --prefix=/usr \ |
pascal@1847 | 20 $CONFIGURE_ARGS && |
pascal@1847 | 21 make && |
slaxemulator@8769 | 22 make -j1 DESTDIR=$src/_pkg install && |
pascal@2426 | 23 echo rm -rf $src/_pkg/usr/share/applications |
pascal@699 | 24 } |
pascal@699 | 25 |
pascal@699 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@699 | 27 genpkg_rules() |
pascal@699 | 28 { |
pascal@4363 | 29 mkdir -p $fs/usr/bin $fs/usr/share $fs/etc/init.d |
pascal@699 | 30 cp -a $_pkg/usr/bin/x11vnc $fs/usr/bin |
pascal@699 | 31 cp -a stuff/x11vnc $fs/etc/init.d |
pascal@699 | 32 } |
pascal@699 | 33 |
pascal@699 | 34 # Post install/remove commands for Tazpkg. |
pascal@699 | 35 post_install() |
pascal@699 | 36 { |
pascal@703 | 37 grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT |
pascal@699 | 38 # VNC server options. |
pascal@1847 | 39 X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop -tightfilexfer -permitfiletransfer -display :0" |
pascal@699 | 40 |
pascal@699 | 41 EOT |
pascal@7363 | 42 [ -f $1/etc/vnc.secret ] || |
pascal@7363 | 43 chroot $1/ x11vnc -storepasswd root /etc/vnc.secret |
pascal@699 | 44 } |
pascal@699 | 45 |