SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "x11vnc"

# SliTaz package receipt.

PACKAGE="x11vnc"
VERSION="0.9.12"
CATEGORY="network"
SHORT_DESC="VNC server using X server"
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.karlrunge.com/x11vnc/"
WGET_URL="$SF_MIRROR/libvncserver/$TARBALL"

DEPENDS="xorg-libXtst openssl slitaz-base-files jpeg xorg-libXdamage zlib"
BUILD_DEPENDS="openssl-dev"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --prefix=/usr \
        $CONFIGURE_ARGS &&
    make &&
    make -j1 DESTDIR=$src/_pkg install &&
    echo rm -rf $src/_pkg/usr/share/applications
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/share $fs/etc/init.d
    cp -a $_pkg/usr/bin/x11vnc $fs/usr/bin
    cp -a stuff/x11vnc $fs/etc/init.d
}

# Post install/remove commands for Tazpkg.
post_install()
{
    grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
# VNC server options.
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"

EOT
    [ -f $1/etc/vnc.secret ] || 
    chroot $1/ x11vnc -storepasswd root /etc/vnc.secret
}

3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)