# HG changeset patch # User Aleksej Bobylev # Date 1403308580 -10800 # Node ID 7893304f16669336b77ca6f3dda9e510e8676a8a # Parent 79c239d4e13fe24eba28a4b08e3d596cf5e13c6d xarchiver: add backends setting page (accessed via menu -> Help -> Contents (F1)) diff -r 79c239d4e13f -r 7893304f1666 xarchiver/receipt --- a/xarchiver/receipt Fri Jun 20 15:21:26 2014 +0200 +++ b/xarchiver/receipt Sat Jun 21 02:56:20 2014 +0300 @@ -8,12 +8,14 @@ LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://xarchiver.sourceforge.net/" -WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL" +WGET_URL="$SF_MIRROR/xarchiver/$VERSION/$TARBALL" -# binutils for ar; busybox also contains gzip & cpio; rar is get-rar; gtar is absent -SUGGESTED="arj bzip2 binutils gzip lzma xz lzop lha rar cpio zip p7zip-full xdg-utils" +# binutils for ar; busybox also contains gzip & cpio; rar is get-rar; +# gtar is absent +SUGGESTED="arj bzip2 binutils gzip lzma xz lzop lha rar cpio zip p7zip-full" DEPENDS="gtk+" BUILD_DEPENDS="gtk+-dev" +GENERIC_PIXMAPS="no" # Rules to configure and make the package. compile_rules() @@ -38,4 +40,8 @@ sed -i '/Encoding/d;/Version/d;/Name\[.*\]=Xarchiver/d;/GenericName/d;/Exec/s/.*/& %f/' \ $fs/usr/share/applications/xarchiver.desktop + + mkdir -p $fs/var/www/cgi-bin $fs/usr/share/doc/xarchiver/html + cp -a $stuff/xarchiver.cgi $fs/var/www/cgi-bin + cp -a $stuff/index.html $fs/usr/share/doc/xarchiver/html } diff -r 79c239d4e13f -r 7893304f1666 xarchiver/stuff/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xarchiver/stuff/index.html Sat Jun 21 02:56:20 2014 +0300 @@ -0,0 +1,1 @@ + diff -r 79c239d4e13f -r 7893304f1666 xarchiver/stuff/xarchiver.cgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xarchiver/stuff/xarchiver.cgi Sat Jun 21 02:56:20 2014 +0300 @@ -0,0 +1,77 @@ +#!/bin/sh +# Web utility to show & install suggested packages for xarchiver +# Aleksej Bobylev , 2014. + +. /usr/lib/slitaz/httphelper.sh +. /etc/slitaz/slitaz.conf +. /lib/libtaz.sh +. /etc/locale.conf; export LANG LC_ALL +export TEXTDOMAIN='tazpkg' + +case "$(GET)" in + img) + header "HTTP/1.1 200 OK\nContent-type: image/png" + case "$(GET img)" in + yes) cat /usr/share/icons/SliTaz/actions/22/gtk-ok.png ;; + not) cat /usr/share/icons/SliTaz/actions/22/gtk-remove.png ;; + fav) cat /usr/share/icons/hicolor/16x16/apps/xarchiver.png ;; + log) cat /usr/share/icons/hicolor/48x48/apps/xarchiver.png ;; + esac ;; + *) + header + cat << EOT + + + + + Xarchiver + + + + + +
+ +
$(cat $INSTALLED/xarchiver/description.txt)
+
+

Here you can install some SliTaz packages using TazPanel on the background. +Note that you always have tiny versions of gzip and cpio (as part of Busybox), so you may not install its "official" versions.

+ + +EOT + for pkg in ar arj bzip2 cpio gzip lha lzma lzop rar xz zip 7z xdg-utils; do + + case $pkg in + ar) pkg2=binutils ;; + 7z) pkg2=p7zip-full ;; + *) pkg2=$pkg ;; + esac + + if [ -d $INSTALLED/$pkg2 ]; then + img=yes; act=Remove; desc="$(_ Remove)" + else + img=not; act=Install; desc="$(_ Install)" + fi + echo "" + done + cat << EOT + +
$pkg
+ + + +EOT + ;; +esac +exit 0