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