# SliTaz package receipt. PACKED_SIZE="16.0K" UNPACKED_SIZE="20.0K" PACKAGE="fbvnc" VERSION="20110416" CATEGORY="network" SHORT_DESC="VNC client in frame buffer." MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://repo.or.cz/w/fbvnc.git" TARBALL="$PACKAGE-$VERSION.tar.gz" [ -n "$TARGET" ] || TARGET="i486" BUILD_DEPENDS="uclibc-cross-compiler-$TARGET" DEPENDS="base-tiny" # Rules to configure and make the package. compile_rules() { [ -s $SOURCES_REPOSITORY/$TARBALL ] || wget -O $SOURCES_REPOSITORY/$TARBALL \ $WEB_SITE/snapshot/e42bc02b14b3331e7c7f45c6b42179d0af99ed7b.tar.gz tar xzf $SOURCES_REPOSITORY/$TARBALL mv $PACKAGE $src cd $src sed -i "s/^CC.*/CC = uclibc-$TARGET-gcc/;s/^LDFLAGS.*/& -s/" Makefile patch -p0 < ../stuff/fbvnc.u && make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp $src/fbvnc $fs/usr/bin } config_form() { case "$START" in no|yes|ask) ;; *) START="cmdline" ;; esac case "$BPP" in 8|24|32) ;; *) BPP=16 ;; esac [ -n "$PORT" ] || PORT=5900 [ -n "$SERVER" ] || SERVER="192.168.0.10" cat < Autostart never always ask during boot with kernel argument 'fbvnc=server:port' Bits per pixel 8 16 32 Default server Default port EOT } config_note() { cat < function update_form() { var hide = true for (var i = 0; i < document.forms.length; i++) { for (var j = 0; j < document.forms[i].elements.length; j++) { var obj = document.forms[i].elements[j] if (obj.name == "START" && obj.defaultValue == "yes" && obj.checked == true) hide = false } } for (var i = 0; i < document.forms.length; i++) { for (var j = 0; j < document.forms[i].elements.length; j++) { var obj = document.forms[i].elements[j] switch (obj.name) { case "SERVER" : case "PORT" : obj.disabled = hide; break; } } } } update_form() window.onchange = update_form //--> EOT } post_install() { case "$START" in on) cat >> $1/etc/init.d/local.sh <> $1/etc/init.d/local.sh <> $1/etc/init.d/local.sh <