wok-current view x11vnc/receipt @ rev 7916
Add urlgrabber. A high-level cross-protocol url-grabber and Python library.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 09 16:42:22 2011 +0000 (2011-01-09) |
parents | 220de5cb2071 |
children | 138f44cd13f8 |
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"
11 DEPENDS="xorg xorg-libXtst openssl slitaz-base-files jpeg xorg-libXdamage zlib"
12 BUILD_DEPENDS="xorg-dev xorg-libXdamage-dev xorg-libXtst-dev openssl openssl-dev zlib zlib-dev jpeg-dev xorg-dev-proto"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr \
19 $CONFIGURE_ARGS &&
20 make &&
21 make DESTDIR=$src/_pkg install &&
22 echo rm -rf $src/_pkg/usr/share/applications
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin $fs/usr/share $fs/etc/init.d
29 cp -a $_pkg/usr/bin/x11vnc $fs/usr/bin
30 cp -a stuff/x11vnc $fs/etc/init.d
31 }
33 # Post install/remove commands for Tazpkg.
34 post_install()
35 {
36 grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
37 # VNC server options.
38 X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop -tightfilexfer -permitfiletransfer -display :0"
40 EOT
41 [ -f $1/etc/vnc.secret ] ||
42 chroot $1/ x11vnc -storepasswd root /etc/vnc.secret
43 }