wok-next view x11vnc/receipt @ rev 14850

*vnc*: add LICENSE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 18 10:30:42 2013 +0000 (2013-07-18)
parents e53e5e4b0f9e
children d488dfb85c26
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.karlrunge.com/x11vnc/"
11 WGET_URL="$SF_MIRROR/libvncserver/$TARBALL"
12 TAGS="vnc"
14 DEPENDS="xorg-libXtst openssl slitaz-base-files jpeg xorg-libXdamage zlib"
15 BUILD_DEPENDS="openssl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr \
22 $CONFIGURE_ARGS &&
23 make &&
24 make -j1 DESTDIR=$DESTDIR install &&
25 echo rm -rf $DESTDIR/usr/share/applications
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/bin $fs/usr/share $fs/etc/init.d
32 cp -a $DESTDIR/usr/bin/x11vnc $fs/usr/bin
33 cp -a stuff/x11vnc $fs/etc/init.d
34 }
36 # Post install/remove commands for Tazpkg.
37 post_install()
38 {
39 grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
40 # VNC server options.
41 X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop -tightfilexfer -permitfiletransfer -display :0"
43 EOT
44 [ -f $1/etc/vnc.secret ] ||
45 chroot $1/ x11vnc -storepasswd root /etc/vnc.secret
46 }