wok-next rev 12217

Remove tazpkg-web (obsolete)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 05 13:32:52 2012 +0200 (2012-04-05)
parents d64d0a05e432
children 2d3734556909
files tazpkg-web/receipt tazpkg-web/stuff/README tazpkg-web/stuff/html/footer.html tazpkg-web/stuff/html/header.html tazpkg-web/stuff/html/home.html tazpkg-web/stuff/html/menu.html tazpkg-web/stuff/search.cgi tazpkg-web/stuff/style/favicon.ico tazpkg-web/stuff/style/pics/tazpkg.png tazpkg-web/stuff/style/pics/website/header-img.png tazpkg-web/stuff/style/pics/website/logo.png tazpkg-web/stuff/style/pics/website/network.png tazpkg-web/stuff/style/pics/website/text.png tazpkg-web/stuff/style/pics/website/xhtml10.png tazpkg-web/stuff/style/slitaz.css tazpkg-web/stuff/tazpkg-web tazpkg-web/stuff/tazpkg-web.conf tazpkg-web/stuff/xml/rss-header.xml tazpkg/receipt
line diff
     1.1 --- a/tazpkg-web/receipt	Tue Apr 03 13:45:02 2012 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,54 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="tazpkg-web"
     1.7 -VERSION="2.1"
     1.8 -CATEGORY="network"
     1.9 -SHORT_DESC="SliTaz packages Web interfaces (http://pkgs.slitaz.org/)."
    1.10 -MAINTAINER="pankso@slitaz.org"
    1.11 -DEPENDS="lighttpd"
    1.12 -WEB_SITE="http://www.slitaz.org/"
    1.13 -CONFIGS="/etc/slitaz/tazpkg-web.conf"
    1.14 -TAGS="slitaz package-manager"
    1.15 -
    1.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 -genpkg_rules()
    1.18 -{
    1.19 -	mkdir -p \
    1.20 -		$fs/usr/bin \
    1.21 -		$fs/etc/slitaz \
    1.22 -		$fs/var/lib/tazpkg-web
    1.23 -	# Page generator and config file.
    1.24 -	cp stuff/tazpkg-web $fs/usr/bin
    1.25 -	cp stuff/tazpkg-web.conf $fs/etc/slitaz
    1.26 -	# Var libs
    1.27 -	for i in html style xml search.cgi
    1.28 -	do
    1.29 -		cp -a stuff/$i $fs/var/lib/tazpkg-web
    1.30 -	done
    1.31 -	chmod 755 $fs/usr/bin/*
    1.32 -	chown -R root.root $fs
    1.33 -}
    1.34 -
    1.35 -post_install()
    1.36 -{
    1.37 -	# On Tank we have pkgs.slitaz.org virtual host in: /home/slitaz/www
    1.38 -	if [ -d $1/home/slitaz/www/pkgs ]; then
    1.39 -		# Overwrite existing files.
    1.40 -		cp -a $1/var/lib/tazpkg-web/style/* $1/home/slitaz/www/pkgs
    1.41 -		cp -a $1/var/lib/tazpkg-web/search.cgi $1/home/slitaz/www/pkgs
    1.42 -		sed -i 's|/var/www/vhosts/pkgs|/home/slitaz/www/pkgs|' \
    1.43 -			$1/etc/slitaz/tazpkg-web.conf
    1.44 -	else
    1.45 -		cat << _EOT_
    1.46 -
    1.47 -To have a Tazpkg-web interface on your local system, you can add a vhost
    1.48 -to Lighttpd (or Apache) and the hostname to /etc/hosts. And you must also
    1.49 -copy files from: /var/lib/tazpkg-web. Example:
    1.50 -
    1.51 - # mkdir -p /var/www/vhosts/pkgs && cd /var/lib/tazpkg-web
    1.52 - # cp -a search.cgi style/* /var/www/vhosts/pkgs
    1.53 - # tazpkg-web cooking
    1.54 -
    1.55 -_EOT_
    1.56 -	fi
    1.57 -}
     2.1 --- a/tazpkg-web/stuff/README	Tue Apr 03 13:45:02 2012 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,24 +0,0 @@
     2.4 -Tazpkg-web - SliTaz Packages Web interface
     2.5 -===============================================================================
     2.6 -
     2.7 -
     2.8 -Tazpkg-web package provides the files, scripts and search engine used for the 
     2.9 -SliTaz packages web interface. It doesn't depend on the Tazpkg package manager 
    2.10 -or Tazwok, but needs a wok with a receipt and a packages (*.tazpkg) repository 
    2.11 -to scan and build the static xHTML pages. Here is a brief overview of the files
    2.12 -provided:
    2.13 -
    2.14 -
    2.15 - * html/           : Split xHTML template used to generate the full pages
    2.16 - * style/          : CSS stylesheets, pics and favicon
    2.17 - * xml/            : RSS template (will be used when merged with tazrss)
    2.18 - * search.cgi      : CGI search engine using awk, grep, etc (all xHTML hardcoded)
    2.19 - * tazpkg-web      : Utility which generates the categories and index pages
    2.20 - * tazpkg-web.conf : Tazpkg-web utility configuration file
    2.21 -
    2.22 -
    2.23 -Online : http://pkgs.slitaz.org/
    2.24 -
    2.25 -
    2.26 -===============================================================================
    2.27 -
     3.1 --- a/tazpkg-web/stuff/html/footer.html	Tue Apr 03 13:45:02 2012 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,33 +0,0 @@
     3.4 -<!-- End of content -->
     3.5 -</div>
     3.6 -
     3.7 -<!-- Footer -->
     3.8 -<div id="footer">
     3.9 -	<div class="right_box">
    3.10 -	<h4>SliTaz Network</h4>
    3.11 -		<ul>
    3.12 -			<li><a href="http://www.slitaz.org/">Main Website</a></li>
    3.13 -			<li><a href="http://doc.slitaz.org/">Documentation</a></li>
    3.14 -			<li><a href="http://forum.slitaz.org/">Support Forum</a></li>
    3.15 -			<li><a href="http://scn.slitaz.org/">Community Network</a></li>
    3.16 -			<li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
    3.17 -			<li><a href="http://distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
    3.18 -		</ul>
    3.19 -	</div>
    3.20 -	<h4>SliTaz Packages</h4>
    3.21 -	<ul>
    3.22 -		<li><a href="#header">Top of the page</a></li>
    3.23 -		<li>Copyright &copy; <span class="year"></span>
    3.24 -			<a href="http://www.slitaz.org/">SliTaz</a></li>
    3.25 -		<li><a href="http://www.slitaz.org/en/about/">About the project</a></li>
    3.26 -		<li><a href="http://pkgs.slitaz.org/search.cgi">Search packages</a></li>
    3.27 -		<li>Page modified the _DATE_</li>
    3.28 -		<li><a href="http://validator.w3.org/check?uri=referer"><img
    3.29 -		src="http://pkgs.slitaz.org/pics/website/xhtml10.png" 
    3.30 -		title="Valid XHTML 1.0" alt="Valid XHTML 1.0"
    3.31 -		style="width: 80px; height: 15px; vertical-align: middle;" /></a></li>
    3.32 -	</ul>
    3.33 -</div>
    3.34 -
    3.35 -</body>
    3.36 -</html>
     4.1 --- a/tazpkg-web/stuff/html/header.html	Tue Apr 03 13:45:02 2012 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,34 +0,0 @@
     4.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     4.5 -	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     4.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     4.7 -<head>
     4.8 -	<title>SliTaz _RELEASE_ Packages - _PAGE_</title>
     4.9 -	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    4.10 -	<meta name="description" content="Au sujet de SliTaz GNU/Linux mini système d'exploitation" />
    4.11 -	<meta name="keywords" lang="fr" content="Système, libre, gnu, linux, opensource, livecd" />
    4.12 -	<meta name="robots" content="index, follow, all" />
    4.13 -	<meta name="revisit-after" content="7 days" />
    4.14 -	<meta name="expires" content="never" />
    4.15 -	<meta name="modified" content="_DATE_" />
    4.16 -	<meta name="author" content="SliTaz Contributors"/>
    4.17 -	<meta name="generator" content="ash, grep, sed and cat"/>
    4.18 -	<meta name="publisher" content="www.slitaz.org" />
    4.19 -	<link rel="shortcut icon" href="http://pkgs.slitaz.org/favicon.ico" />
    4.20 -	<link rel="stylesheet"  type="text/css" href="http://pkgs.slitaz.org/slitaz.css" />
    4.21 -	<link rel="alternate" type="application/rss+xml" title="SliTaz Stable Packages" href="/rss/stable.xml" />
    4.22 -	<link rel="alternate" type="application/rss+xml" title="SliTaz Cooking Packages" href="/rss/cooking.xml" />
    4.23 -</head>
    4.24 -<body>
    4.25 -
    4.26 -<!-- Header -->
    4.27 -<div id="header">
    4.28 -    <!-- Logo -->
    4.29 -	<a href="http://pkgs.slitaz.org/"><img id="logo"
    4.30 -		src="/pics/website/logo.png" 
    4.31 -		title="pkgs.slitaz.org" alt="pkgs.slitaz.org" /></a>
    4.32 -	<p id="titre">#!/Packages</p>
    4.33 -</div>
    4.34 -
    4.35 -<!-- Content -->
    4.36 -<div id="content-full">
    4.37 -
     5.1 --- a/tazpkg-web/stuff/html/home.html	Tue Apr 03 13:45:02 2012 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,60 +0,0 @@
     5.4 -<!-- Block begin -->
     5.5 -<div class="block">
     5.6 -	<!-- Nav block begin -->
     5.7 -	<div id="block_nav" style="height: 220px;">
     5.8 -		<h3><img src="/pics/website/network.png" alt=".png" />Tools</h3>
     5.9 -		<ul>
    5.10 -			<li><a href="http://hg.slitaz.org/wok">Hg Repos</a></li>
    5.11 -			<li><a href="http://bb.slitaz.org/">Build Bot</a></li>
    5.12 -			<li><a href="http://labs.slitaz.org/issues">Bug Tracker</a></li>
    5.13 -		</ul>
    5.14 -		<h3><img src="/pics/website/text.png" alt=".png" />Documentation</h3>
    5.15 -		<ul>
    5.16 -			<li><a href="http://doc.slitaz.org/en:cookbook:wok">Wok &amp; Tools</a></li>
    5.17 -			<li><a href="http://doc.slitaz.org/en:cookbook:receipt">Receipts</a></li>
    5.18 -		</ul>
    5.19 -	<!-- Nav block end -->
    5.20 -	</div>
    5.21 -	<!-- Top block begin -->
    5.22 -	<div id="block_top" style="height: 220px;">
    5.23 -		<h1>Packages</h1>
    5.24 -		<p>
    5.25 -			Welcome to the SliTaz packages web interface. The site allows
    5.26 -			you to search and view all of the software packages available
    5.27 -			on the SliTaz mirror. The pages are automatically updated daily
    5.28 -			via a cron job.
    5.29 -		</p>
    5.30 -		<p>
    5.31 -			Browse the packages web interface: <a href="stable/">Stable packages</a>
    5.32 -			| <a href="cooking/">Cooking packages</a>
    5.33 -		</p>
    5.34 -	<!-- Top block end -->
    5.35 -	</div>
    5.36 -<!-- Block end -->
    5.37 -</div>
    5.38 -
    5.39 -<div class="pkgs-search">
    5.40 -	<form method="post" action="http://pkgs.slitaz.org/search.cgi">
    5.41 -		<p>
    5.42 -			<input type="text" name="query" size="30" />
    5.43 -			<input type="submit" name="search" value="Search" />
    5.44 -		</p>
    5.45 -		<select name="object">
    5.46 -			<option>Package</option>
    5.47 -			<option>Desc</option>
    5.48 -			<option>Tags</option>
    5.49 -			<option>Receipt</option>
    5.50 -			<option>Depends</option>
    5.51 -			<option>BuildDepends</option>
    5.52 -			<option>File</option>
    5.53 -			<option>File_list</option>
    5.54 -			<option>FileOverlap</option>
    5.55 -		</select>
    5.56 -		<select name="version">
    5.57 -			<option>stable</option>
    5.58 -			<option>cooking</option>
    5.59 -			<option>2.0</option>
    5.60 -			<option>1.0</option>
    5.61 -		</select>
    5.62 -	</form>
    5.63 -</div>
     6.1 --- a/tazpkg-web/stuff/html/menu.html	Tue Apr 03 13:45:02 2012 +0200
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,47 +0,0 @@
     6.4 -<!-- Block begin -->
     6.5 -<div class="block">
     6.6 -	<!-- Nav block begin -->
     6.7 -	<div id="block_nav" style="height: 220px;">
     6.8 -		<h3><img src="/pics/tazpkg.png" alt=".png" />Categories</h3>
     6.9 -		<div class="right_box">
    6.10 -			<ul>
    6.11 -				<li><a href="development.html">Development</a></li>
    6.12 -				<li><a href="system-tools.html">System-tools</a></li>
    6.13 -				<li><a href="security.html">Security</a></li>
    6.14 -				<li><a href="misc.html">Misc</a></li>
    6.15 -				<li><a href="meta.html">Meta packages</a></li>
    6.16 -				<li><a href="non-free.html">Non free</a></li>
    6.17 -			</ul>
    6.18 -		</div>
    6.19 -		<ul>
    6.20 -			<li><a href="base-system.html">Base-system</a></li>
    6.21 -			<li><a href="x-window.html">X-window</a></li>
    6.22 -			<li><a href="utilities.html">Utilities</a></li>
    6.23 -			<li><a href="network.html">Network</a></li>
    6.24 -			<li><a href="games.html">Games</a></li>
    6.25 -			<li><a href="graphics.html">Graphics</a></li>
    6.26 -			<li><a href="multimedia.html">Multimedia</a></li>
    6.27 -			<li><a href="office.html">Office</a></li>
    6.28 -		</ul>
    6.29 -	<!-- Nav block end -->
    6.30 -	</div>
    6.31 -	<!-- Top block begin -->
    6.32 -	<div id="block_top" style="height: 220px;">
    6.33 -		<h1>Packages _RELEASE_</h1>
    6.34 -		<p>
    6.35 -			The SliTaz packages web interface allows you to search and view 
    6.36 -			all of the software packages available for SliTaz. The pages are
    6.37 -			updated daily via a cron job.
    6.38 -		</p>
    6.39 -		<p>
    6.40 -			Documentation: 
    6.41 -			<a href="http://doc.slitaz.org/en:handbook:packages">Package manager</a>
    6.42 -		</p>
    6.43 -		<p>
    6.44 -			Browse the packages web interface: <a href="../stable/">Stable packages</a>
    6.45 -			| <a href="../cooking/">Cooking packages</a>
    6.46 -		</p>
    6.47 -	<!-- Top block end -->
    6.48 -	</div>
    6.49 -<!-- Block end -->
    6.50 -</div>
     7.1 --- a/tazpkg-web/stuff/search.cgi	Tue Apr 03 13:45:02 2012 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,647 +0,0 @@
     7.4 -#!/bin/sh
     7.5 -# Tiny CGI search engine for SliTaz packages on http://pkgs.slitaz.org/
     7.6 -# Christophe Lincoln <pankso@slitaz.org>
     7.7 -#
     7.8 -
     7.9 -read QUERY_STRING
    7.10 -for i in $(echo $QUERY_STRING | sed 's/&/ /g'); do
    7.11 -	eval $i
    7.12 -done
    7.13 -LANG=$lang
    7.14 -SEARCH=$query
    7.15 -SLITAZ_VERSION=$version
    7.16 -OBJECT=$object
    7.17 -DATE=`date +%Y-%m-%d\ \%H:%M:%S`
    7.18 -VERSION=cooking
    7.19 -if [ "$REQUEST_METHOD" = "GET" ]; then
    7.20 -	SEARCH=""
    7.21 -	VERBOSE=0
    7.22 -	for i in $(echo $REQUEST_URI | sed 's/[?&]/ /g'); do
    7.23 -		SLITAZ_VERSION=cooking
    7.24 -		case "$(echo $i | tr [A-Z] [a-z])" in
    7.25 -		search=*)
    7.26 -			SEARCH=${i#*=};;
    7.27 -		object=*)
    7.28 -			OBJECT=${i#*=};;
    7.29 -		verbose=*)
    7.30 -			VERBOSE=${i#*=};;
    7.31 -		lang=*)
    7.32 -			LANG=${i#*=};;
    7.33 -		file=*)
    7.34 -			SEARCH=${i#*=}
    7.35 -			OBJECT=File;;
    7.36 -		desc=*)
    7.37 -			SEARCH=${i#*=}
    7.38 -			OBJECT=Desc;;
    7.39 -		tags=*)
    7.40 -			SEARCH=${i#*=}
    7.41 -			OBJECT=Tags;;
    7.42 -		receipt=*)
    7.43 -			SEARCH=${i#*=}
    7.44 -			OBJECT=Receipt;;
    7.45 -		filelist=*)
    7.46 -			SEARCH=${i#*=}
    7.47 -			OBJECT=File_list;;
    7.48 -		package=*)
    7.49 -			SEARCH=${i#*=}
    7.50 -			OBJECT=Package;;
    7.51 -		depends=*)
    7.52 -			SEARCH=${i#*=}
    7.53 -			OBJECT=Depends;;
    7.54 -		builddepends=*)
    7.55 -			SEARCH=${i#*=}
    7.56 -			OBJECT=BuildDepends;;
    7.57 -		fileoverlap=*)
    7.58 -			SEARCH=${i#*=}
    7.59 -			OBJECT=FileOverlap;;
    7.60 -		version=s*|version=3*)
    7.61 -			SLITAZ_VERSION=stable;;
    7.62 -		version=[1-9]*)
    7.63 -			i=${version%%.*}
    7.64 -			SLITAZ_VERSION=${i#*=}.0;;
    7.65 -		esac
    7.66 -	done
    7.67 -	[ -n "$SEARCH" ] && REQUEST_METHOD="POST"
    7.68 -fi
    7.69 -
    7.70 -case "$OBJECT" in
    7.71 -File)	 	selected_file="selected";;
    7.72 -Desc)	 	selected_desc="selected";;
    7.73 -Tags)	 	selected_tags="selected";;
    7.74 -Receipt) 	selected_receipt="selected";;
    7.75 -File_list) 	selected_file_list="selected";;
    7.76 -Depends)	selected_depends="selected";;
    7.77 -BuildDepends)	selected_build_depends="selected";;
    7.78 -FileOverlap)	selected_overlap="selected";;
    7.79 -esac
    7.80 -
    7.81 -case "$SLITAZ_VERSION" in
    7.82 -1.0)	 	selected_1="selected";;
    7.83 -2.0)	 	selected_2="selected";;
    7.84 -stable)		selected_stable="selected";;
    7.85 -esac
    7.86 -
    7.87 -# unescape query
    7.88 -SEARCH="$(echo $SEARCH | sed 's/%2B/+/g' | sed 's/%3A/:/g' | sed 's|%2F|/|g')"
    7.89 -
    7.90 -if [ -z "$LANG" ]; then
    7.91 -	for i in $(echo $HTTP_ACCEPT_LANGUAGE | sed 's/[,;]/ /g'); do
    7.92 -		case "$i" in
    7.93 -		fr|de|pt|cn)
    7.94 -			LANG=$i
    7.95 -			break;;
    7.96 -		esac
    7.97 -	done
    7.98 -fi
    7.99 -
   7.100 -package="Package"
   7.101 -file="File"
   7.102 -desc="Description"
   7.103 -tags="Tags"
   7.104 -receipt="Receipt"
   7.105 -file_list="File list"
   7.106 -depends="Depends"
   7.107 -bdepends="Build depends"
   7.108 -search="Search"
   7.109 -cooking="cooking"
   7.110 -stable="stable"
   7.111 -result="Result for : $SEARCH"
   7.112 -noresult="No package $SEARCH"
   7.113 -deptree="Dependency tree for : $SEARCH"
   7.114 -rdeptree="Reverse dependency tree for : $SEARCH"
   7.115 -bdeplist="$SEARCH needs these packages to be built"
   7.116 -rbdeplist="Packages who need $SEARCH to be built"
   7.117 -overloading="Theses packages may overload files of "
   7.118 -overlap="common files"
   7.119 -charset="ISO-8859-1"
   7.120 -
   7.121 -case "$LANG" in
   7.122 -
   7.123 -fr)	package="Paquet"
   7.124 -	receipt="Recette"
   7.125 -	depends="Dépendances"
   7.126 -	bdepends="Fabrication"
   7.127 -	search="Recherche"
   7.128 -	result="Recherche de : $SEARCH"
   7.129 -	noresult="Paquet $SEARCH introuvable"
   7.130 -	deptree="Arbre des dépendances de $SEARCH"
   7.131 -	rdeptree="Arbre inversé des dépendances de $SEARCH"
   7.132 -	bdeplist="$SEARCH a besion de ces paquets pour être fabriqué"
   7.133 -	rbdeplist="Paquets ayant besion de $SEARCH pour être fabriqués"
   7.134 -	overloading="Paquets pouvant écraser des fichiers de "
   7.135 -	overlap="Fichiers communs"
   7.136 -	file_list="Liste des fichiers"
   7.137 -	file="Fichier";;
   7.138 -
   7.139 -de)	package="Paket"
   7.140 -	depends="Abhängigkeiten"
   7.141 -	desc="Beschreibung"
   7.142 -	search="Suche"
   7.143 -	cooking="Cooking"
   7.144 -	stable="Stable"
   7.145 -	result="Resultate für : $SEARCH"
   7.146 -	noresult="Kein Paket für $SEARCH"
   7.147 -	deptree="Abhängigkeiten von: $SEARCH"
   7.148 -	rdeptree="Abhängigkeit für: $SEARCH"
   7.149 -	file_list="Datei liste"
   7.150 -	file="Datei";;
   7.151 -
   7.152 -pt)	package="Pacote"
   7.153 -	search="Buscar"
   7.154 -	cooking="cooking"
   7.155 -	stable="stable"
   7.156 -	result="Resultado para : $SEARCH"
   7.157 -	noresult="Sem resultado: $SEARCH"
   7.158 -	deptree="Árvore de dependências para: $SEARCH"
   7.159 -	rdeptree="Árvore de dependências reversa para: $SEARCH"
   7.160 -	depends="Dependências"
   7.161 -	desc="Descrição"
   7.162 -	file_list="Arquivo lista"
   7.163 -	file="Arquivo";;
   7.164 -
   7.165 -cn)	package="软件包:"
   7.166 -	cooking="å¼€å‘版"
   7.167 -	stable="稳定版"
   7.168 -	desc="æè¿°"
   7.169 -	tags="标签"
   7.170 -	depends="ä¾èµ–"
   7.171 -	file="文件"
   7.172 -	file_list="文件列表"
   7.173 -	search="Search"
   7.174 -	result="Result for : $SEARCH"
   7.175 -	noresult="No package $SEARCH"
   7.176 -	deptree="Dependency tree for : $SEARCH"
   7.177 -	rdeptree="Reverse dependency tree for : $SEARCH"
   7.178 -	charset="UTF-8";;
   7.179 -
   7.180 -*)	LANG="en";;
   7.181 -
   7.182 -esac
   7.183 -
   7.184 -WOK=/home/slitaz/$SLITAZ_VERSION/wok
   7.185 -PACKAGES_REPOSITORY=/home/slitaz/$SLITAZ_VERSION/packages
   7.186 -
   7.187 -echo Content-type: text/html
   7.188 -echo
   7.189 -
   7.190 -# Search form
   7.191 -search_form()
   7.192 -{
   7.193 -	cat << _EOT_
   7.194 -
   7.195 -<div style="text-align: center; padding: 20px;">
   7.196 -<form method="post" action="search.cgi">
   7.197 -	<input type="hidden" name="lang" value="$LANG" />
   7.198 -	<select name="object">
   7.199 -		<option value="Package">$package</option>
   7.200 -		<option $selected_desc value="Desc">$desc</option>
   7.201 -		<option $selected_tags value="Tags">$tags</option>
   7.202 -		<option $selected_receipt value="Receipt">$receipt</option>
   7.203 -		<option $selected_depends value="Depends">$depends</option>
   7.204 -		<option $selected_build_depends value="BuildDepends">$bdepends</option>
   7.205 -		<option $selected_file value="File">$file</option>
   7.206 -		<option $selected_file_list value="File_list">$file_list</option>
   7.207 -		<option $selected_overlap value="FileOverlap">$overlap</option>
   7.208 -	</select>
   7.209 -	<strong>:</strong>
   7.210 -	<input type="text" name="query" size="20" value="$SEARCH" />
   7.211 -	<select name="version">
   7.212 -		<option value="cooking">$cooking</option>
   7.213 -		<option $selected_stable value="stable">$stable</option>
   7.214 -		<option $selected_1 value="1.0">1.0</option>
   7.215 -		<option $selected_2 value="2.0">2.0</option>
   7.216 -	</select>
   7.217 -	<input type="submit" name="search" value="$search" />
   7.218 -</form>
   7.219 -</div>
   7.220 -_EOT_
   7.221 -}
   7.222 -
   7.223 -# xHTML Header.
   7.224 -xhtml_header()
   7.225 -{
   7.226 -	cat << _EOF_
   7.227 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   7.228 -	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   7.229 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$LANG" lang="$LANG">
   7.230 -<head>
   7.231 -	<title>SliTaz Packages - Search $SEARCH</title>
   7.232 -	<meta http-equiv="content-type" content="text/html; charset=$charset" />
   7.233 -	<meta name="description" content="Au sujet de SliTaz GNU/Linux mini système d'exploitation" />
   7.234 -	<meta name="keywords" lang="fr" content="Système, libre, gnu, linux, opensource, livecd" />
   7.235 -	<meta name="robots" content="index, follow, all" />
   7.236 -	<meta name="revisit-after" content="7 days" />
   7.237 -	<meta name="expires" content="never" />
   7.238 -	<meta name="modified" content="$DATE" />
   7.239 -	<meta name="author" content="ash, awk, grep, sed and cat"/>
   7.240 -	<meta name="publisher" content="www.slitaz.org" />
   7.241 -	<link rel="shortcut icon" href="/favicon.ico" />
   7.242 -	<link rel="stylesheet"  type="text/css" href="/slitaz.css" />
   7.243 -</head>
   7.244 -<body>
   7.245 -
   7.246 -<!-- Header -->
   7.247 -<div id="header">
   7.248 -    <!-- Logo -->
   7.249 -	<a href="http://pkgs.slitaz.org/"><img id="logo"
   7.250 -		src="/pics/website/logo.png" 
   7.251 -		title="pkgs.slitaz.org" alt="pkgs.slitaz.org" /></a>
   7.252 -	<p id="titre">#!/Packages</p>
   7.253 -</div>
   7.254 -_EOF_
   7.255 -}
   7.256 -
   7.257 -# xHTML Footer.
   7.258 -xhtml_footer()
   7.259 -{
   7.260 -	cat << _EOT_
   7.261 -<center>
   7.262 -<i>$(ls $WOK/ | wc -l) packages and $(unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | wc -l) files in $SLITAZ_VERSION database</i>
   7.263 -</center>
   7.264 -
   7.265 -<!-- End of content -->
   7.266 -</div>
   7.267 -
   7.268 -<!-- Footer -->
   7.269 -<div id="footer">
   7.270 -	<div class="right_box">
   7.271 -	<h4>SliTaz Network</h4>
   7.272 -		<ul>
   7.273 -			<li><a href="http://www.slitaz.org/">Main Website</a></li>
   7.274 -			<li><a href="http://doc.slitaz.org/">Documentation</a></li>
   7.275 -			<li><a href="http://forum.slitaz.org/">Support Forum</a></li>
   7.276 -			<li><a href="http://scn.slitaz.org/">Community Network</a></li>
   7.277 -			<li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
   7.278 -			<li><a href="http://distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
   7.279 -		</ul>
   7.280 -	</div>
   7.281 -	<h4>SliTaz Packages</h4>
   7.282 -	<ul>
   7.283 -		<li><a href="#header">Top of the page</a></li>
   7.284 -		<li>Copyright &copy; <span class="year"></span>
   7.285 -			<a href="http://www.slitaz.org/">SliTaz</a></li>
   7.286 -		<li><a href="http://www.slitaz.org/en/about/">About the project</a></li>
   7.287 -		<li><a href="http://pkgs.slitaz.org/search.cgi">Search packages</a></li>
   7.288 -		<li>Page modified the _DATE_</li>
   7.289 -		<li><a href="http://validator.w3.org/check?uri=referer"><img
   7.290 -		src="http://pkgs.slitaz.org/pics/website/xhtml10.png" 
   7.291 -		title="Code validé XHTML 1.0" alt="Valid XHTML 1.0"
   7.292 -		style="width: 80px; height: 15px; vertical-align: middle;" /></a></li>
   7.293 -	</ul>
   7.294 -</div>
   7.295 -
   7.296 -</body>
   7.297 -</html>
   7.298 -_EOT_
   7.299 -}
   7.300 -
   7.301 -installed_size()
   7.302 -{
   7.303 -[ $VERBOSE -gt 0 ] &&
   7.304 -grep -A 3 "^$1\$" /home/slitaz/$SLITAZ_VERSION/packages/packages.txt | \
   7.305 -       grep installed | sed 's/.*(\(.*\) installed.*/(\1) /'
   7.306 -}
   7.307 -
   7.308 -package_entry()
   7.309 -{
   7.310 -if [ -s "$(dirname $0)/$SLITAZ_VERSION/$CATEGORY.html" ]; then
   7.311 -	cat << _EOT_
   7.312 -<a href="$SLITAZ_VERSION/$CATEGORY.html#$PACKAGE">$PACKAGE</a> $(installed_size $PACKAGE): $SHORT_DESC
   7.313 -_EOT_
   7.314 -else
   7.315 -	cat << _EOT_
   7.316 -<a href="http://mirror.slitaz.org/packages/$SLITAZ_VERSION/$PACKAGE-$VERSION$EXTRA_VERSION.tazpkg">$PACKAGE</a> $(installed_size $PACKAGE): $SHORT_DESC
   7.317 -_EOT_
   7.318 -fi
   7.319 -}
   7.320 -
   7.321 -# recursive dependencies scan
   7.322 -dep_scan()
   7.323 -{
   7.324 -for i in $1; do
   7.325 -	case " $ALL_DEPS " in
   7.326 -	*\ $i\ *) continue;;
   7.327 -	esac
   7.328 -	ALL_DEPS="$ALL_DEPS $i"
   7.329 -	if [ -n "$2" ]; then
   7.330 -		echo -n "$2"
   7.331 -		(
   7.332 -		. $WOK/$i/receipt
   7.333 -		package_entry
   7.334 -		)
   7.335 -	fi
   7.336 -	[ -f $WOK/$i/receipt ] || continue
   7.337 -	DEPENDS=""
   7.338 -	. $WOK/$i/receipt
   7.339 -	[ -n "$DEPENDS" ] && dep_scan "$DEPENDS" "$2    "
   7.340 -done
   7.341 -}
   7.342 -
   7.343 -# recursive reverse dependencies scan
   7.344 -rdep_scan()
   7.345 -{
   7.346 -SEARCH=$1
   7.347 -case "$SEARCH" in
   7.348 -glibc-base|gcc-lib-base) cat <<EOT
   7.349 -	glibc-base and gcc-lib-base are implicit dependencies,
   7.350 -	<b>every</b> package is supposed to depend on them.
   7.351 -EOT
   7.352 -	return;;
   7.353 -esac
   7.354 -for i in $WOK/* ; do
   7.355 -	DEPENDS=""
   7.356 -	. $i/receipt
   7.357 -	echo "$(basename $i) $(echo $DEPENDS)"
   7.358 -done | awk -v search=$SEARCH '
   7.359 -function show_deps(deps, all_deps, pkg, space)
   7.360 -{
   7.361 -	if (all_deps[pkg] == 1) return
   7.362 -	all_deps[pkg] = 1
   7.363 -	if (space != "") printf "%s%s\n",space,pkg
   7.364 -	for (i = 1; i <= split(deps[pkg], mydeps, " "); i++) {
   7.365 -		show_deps(deps, all_deps, mydeps[i],"////" space)
   7.366 -	}
   7.367 -}
   7.368 -
   7.369 -{
   7.370 -	all_deps[$1] = 0
   7.371 -	for (i = 2; i <= NF; i++)
   7.372 -		deps[$i] = deps[$i] " " $1
   7.373 -}
   7.374 -
   7.375 -END {
   7.376 -	show_deps(deps, all_deps, search, "")
   7.377 -}
   7.378 -' | while read pkg; do
   7.379 -		. $WOK/${pkg##*/}/receipt
   7.380 -		cat << _EOT_
   7.381 -$(echo ${pkg%/*} | sed 's|/| |g') $(package_entry) 
   7.382 -_EOT_
   7.383 -done
   7.384 -}
   7.385 -
   7.386 -# Check package exists
   7.387 -package_exist()
   7.388 -{
   7.389 -	[ -f $WOK/$1/receipt ] && return 0
   7.390 -	cat << _EOT_
   7.391 -
   7.392 -<h3>$noresult</h3>
   7.393 -<pre class="package">
   7.394 -_EOT_
   7.395 -	return 1
   7.396 -}
   7.397 -
   7.398 -# Display < > &
   7.399 -htmlize()
   7.400 -{
   7.401 -	sed -e 's/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g'
   7.402 -}
   7.403 -
   7.404 -display_packages_and_files()
   7.405 -{
   7.406 -last=""
   7.407 -while read pkg file; do
   7.408 -	pkg=${pkg%:}
   7.409 -	if [ "$pkg" != "$last" ]; then
   7.410 -		. $WOK/$pkg/receipt
   7.411 -		
   7.412 -		package_entry
   7.413 -		last=$pkg
   7.414 -	fi
   7.415 -	echo "    $file"
   7.416 -done
   7.417 -}
   7.418 -
   7.419 -# Display search form and result if requested.
   7.420 -if [ "$REQUEST_METHOD" != "POST" ]; then
   7.421 -	xhtml_header
   7.422 -	cat << _EOT_
   7.423 -
   7.424 -<!-- Content -->
   7.425 -<div id="content">
   7.426 -
   7.427 -<h1>$package</h1>
   7.428 -<h2>$search</h2>
   7.429 -_EOT_
   7.430 -	search_form
   7.431 -	xhtml_footer
   7.432 -else
   7.433 -	xhtml_header
   7.434 -	cat << _EOT_
   7.435 -
   7.436 -<!-- Content -->
   7.437 -<div id="content">
   7.438 -
   7.439 -<h1>$package</h1>
   7.440 -<h2>$search</h2>
   7.441 -_EOT_
   7.442 -	search_form
   7.443 -	if [ "$OBJECT" = "Depends" ]; then
   7.444 -		if package_exist $SEARCH ; then
   7.445 -			cat << _EOT_
   7.446 -
   7.447 -<h3>$deptree</h3>
   7.448 -<pre class="package">
   7.449 -_EOT_
   7.450 -			ALL_DEPS=""
   7.451 -			dep_scan $SEARCH ""
   7.452 -			SUGGESTED=""
   7.453 -			. $WOK/$SEARCH/receipt
   7.454 -			if [ -n "$SUGGESTED" ]; then
   7.455 -				cat << _EOT_
   7.456 -</pre>
   7.457 -
   7.458 -<h3>$deptree (SUGGESTED)</h3>
   7.459 -<pre class="package">
   7.460 -_EOT_
   7.461 -				ALL_DEPS=""
   7.462 -				dep_scan "$SUGGESTED" "    "
   7.463 -			fi
   7.464 -			cat << _EOT_
   7.465 -</pre>
   7.466 -
   7.467 -<h3>$rdeptree</h3>
   7.468 -<pre class="package">
   7.469 -_EOT_
   7.470 -			ALL_DEPS=""
   7.471 -			rdep_scan $SEARCH
   7.472 -			cat << _EOT_
   7.473 -</pre>
   7.474 -_EOT_
   7.475 -		fi
   7.476 -	elif [ "$OBJECT" = "BuildDepends" ]; then
   7.477 -		if package_exist $SEARCH ; then
   7.478 -			cat << _EOT_
   7.479 -
   7.480 -<h3>$bdeplist</h3>
   7.481 -<pre class="package">
   7.482 -_EOT_
   7.483 -			BUILD_DEPENDS=""
   7.484 -			. $WOK/$SEARCH/receipt
   7.485 -			[ -n "$BUILD_DEPENDS" ] && for dep in $BUILD_DEPENDS ; do
   7.486 -				if [ ! -s $WOK/$dep/receipt ]; then
   7.487 -					cat << _EOT_
   7.488 -$dep: not found !
   7.489 -_EOT_
   7.490 -					continue
   7.491 -				fi
   7.492 -				. $WOK/$dep/receipt
   7.493 -				package_entry
   7.494 -			done
   7.495 -			cat << _EOT_
   7.496 -</pre>
   7.497 -
   7.498 -<h3>$rbdeplist</h3>
   7.499 -<pre class="package">
   7.500 -_EOT_
   7.501 -			for dep in $(grep -l $SEARCH $WOK/*/receipt); do
   7.502 -				BUILD_DEPENDS=""
   7.503 -				. $dep
   7.504 -				echo " $BUILD_DEPENDS " | grep -q " $SEARCH " &&
   7.505 -				package_entry
   7.506 -			done
   7.507 -			cat << _EOT_
   7.508 -</pre>
   7.509 -_EOT_
   7.510 -		fi
   7.511 -	elif [ "$OBJECT" = "FileOverlap" ]; then
   7.512 -		if package_exist $SEARCH ; then
   7.513 -			cat << _EOT_
   7.514 -
   7.515 -<h3>$overloading $SEARCH</h3>
   7.516 -<pre class="package">
   7.517 -_EOT_
   7.518 -			( unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep ^$SEARCH: ;
   7.519 -			  unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep -v ^$SEARCH: ) | awk '
   7.520 -BEGIN { pkg=""; last="x" }
   7.521 -{
   7.522 -	if ($2 == "") next
   7.523 -	if (index($2,last) == 1 && substr($2,1+length(last),1) == "/")
   7.524 -		delete file[last]
   7.525 -	last=$2
   7.526 -	if (pkg == "") pkg=$1
   7.527 -	if ($1 == pkg) file[$2]=$1
   7.528 -	else if (file[$2] == pkg) print
   7.529 -}
   7.530 -' | display_packages_and_files
   7.531 -			cat << _EOT_
   7.532 -</pre>
   7.533 -_EOT_
   7.534 -		fi
   7.535 -	elif [ "$OBJECT" = "File" ]; then
   7.536 -		cat << _EOT_
   7.537 -
   7.538 -<h3>$result</h3>
   7.539 -<pre class="package">
   7.540 -_EOT_
   7.541 -		last=""
   7.542 -		unlzma -c $PACKAGES_REPOSITORY/files.list.lzma \
   7.543 -		| grep $SEARCH | while read pkg file; do
   7.544 -			echo "$file" | grep -q $SEARCH || continue
   7.545 -			if [ "$last" != "${pkg%:}" ]; then
   7.546 -				last=${pkg%:}
   7.547 -				(
   7.548 -				. $WOK/$last/receipt
   7.549 -				cat << _EOT_
   7.550 -
   7.551 -<i>$(package_entry)</i>
   7.552 -_EOT_
   7.553 -				)
   7.554 -			fi
   7.555 -			echo "    $file"
   7.556 -		done
   7.557 -	elif [ "$OBJECT" = "File_list" ]; then
   7.558 -		package_exist $SEARCH && cat << _EOT_
   7.559 -
   7.560 -<h3>$result</h3>
   7.561 -<pre class="package">
   7.562 -_EOT_
   7.563 -		last=""
   7.564 -		unlzma -c $PACKAGES_REPOSITORY/files.list.lzma \
   7.565 -		| grep ^$SEARCH: |  sed 's/.*: /    /' | sort
   7.566 -	elif [ "$OBJECT" = "Desc" ]; then
   7.567 -		if [ -f $WOK/$SEARCH/description.txt ]; then
   7.568 -			cat << _EOT_
   7.569 -
   7.570 -<h3>$result</h3>
   7.571 -<pre class="package">
   7.572 -<pre>
   7.573 -$(htmlize < $WOK/$SEARCH/description.txt)
   7.574 -</pre>
   7.575 -_EOT_
   7.576 -		else
   7.577 -			cat << _EOT_
   7.578 -
   7.579 -<h3>$result</h3>
   7.580 -<pre class="package">
   7.581 -_EOT_
   7.582 -			last=""
   7.583 -			grep -i $SEARCH $PACKAGES_REPOSITORY/packages.desc | \
   7.584 -			sort | while read pkg extras ; do
   7.585 -				. $WOK/$pkg/receipt
   7.586 -				package_entry
   7.587 -			done
   7.588 -		fi
   7.589 -	elif [ "$OBJECT" = "Tags" ]; then
   7.590 -		cat << _EOT_
   7.591 -
   7.592 -<h3>$result</h3>
   7.593 -<pre class="package">
   7.594 -_EOT_
   7.595 -		last=""
   7.596 -		grep ^TAGS= $WOK/*/receipt |  grep -i $SEARCH | \
   7.597 -		sed "s|$WOK/\(.*\)/receipt:.*|\1|" | sort | while read pkg ; do
   7.598 -				. $WOK/$pkg/receipt
   7.599 -				package_entry
   7.600 -			done
   7.601 -	elif [ "$OBJECT" = "Receipt" ]; then
   7.602 -		package_exist $SEARCH && cat << _EOT_
   7.603 -
   7.604 -<h3>$result</h3>
   7.605 -<pre class="package">
   7.606 -<pre>
   7.607 -$(if [ -f  $WOK/$SEARCH/taz/*/receipt ]; then
   7.608 -	cat $WOK/$SEARCH/taz/*/receipt
   7.609 -  else
   7.610 -    cat $WOK/$SEARCH/receipt
   7.611 -  fi | htmlize)
   7.612 -</pre>
   7.613 -_EOT_
   7.614 -	else
   7.615 -		cat << _EOT_
   7.616 -
   7.617 -<h3>$result</h3>
   7.618 -<pre class="package">
   7.619 -_EOT_
   7.620 -		for pkg in `ls $WOK/ | grep $SEARCH`
   7.621 -		do
   7.622 -			. $WOK/$pkg/receipt
   7.623 -			DESC=" <a href=\"?desc=$pkg\">description</a>"
   7.624 -			[ -f $WOK/$pkg/description.txt ] || DESC=""
   7.625 -			cat << _EOT_
   7.626 -$(package_entry)$DESC
   7.627 -_EOT_
   7.628 -		done
   7.629 -		equiv=$PACKAGES_REPOSITORY/packages.equiv
   7.630 -		vpkgs="$(cat $equiv | cut -d= -f1 | grep $SEARCH)"
   7.631 -		for vpkg in $vpkgs ; do
   7.632 -	cat << _EOT_
   7.633 -</pre>
   7.634 -
   7.635 -<h3>$result (package providing $vpkg)</h3>
   7.636 -<pre class="package">
   7.637 -_EOT_
   7.638 -			for pkg in $(grep $vpkg= $equiv | sed "s/$vpkg=//"); do
   7.639 -				. $WOK/${pkg#*:}/receipt
   7.640 -				package_entry
   7.641 -			done
   7.642 -		done
   7.643 -	fi
   7.644 -	cat << _EOT_
   7.645 -</pre>
   7.646 -_EOT_
   7.647 -	xhtml_footer
   7.648 -fi
   7.649 -
   7.650 -exit 0
     8.1 Binary file tazpkg-web/stuff/style/favicon.ico has changed
     9.1 Binary file tazpkg-web/stuff/style/pics/tazpkg.png has changed
    10.1 Binary file tazpkg-web/stuff/style/pics/website/header-img.png has changed
    11.1 Binary file tazpkg-web/stuff/style/pics/website/logo.png has changed
    12.1 Binary file tazpkg-web/stuff/style/pics/website/network.png has changed
    13.1 Binary file tazpkg-web/stuff/style/pics/website/text.png has changed
    14.1 Binary file tazpkg-web/stuff/style/pics/website/xhtml10.png has changed
    15.1 --- a/tazpkg-web/stuff/style/slitaz.css	Tue Apr 03 13:45:02 2012 +0200
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,446 +0,0 @@
    15.4 -/*
    15.5 -	CSS style for SliTaz Network - (c) 2011 SliTaz GNU/Linux
    15.6 -*/
    15.7 -
    15.8 -html {
    15.9 -	min-height:  102%;
   15.10 -}
   15.11 -body {
   15.12 -	background: #ffffff;
   15.13 -	color: black;
   15.14 -	font: 13px sans-serif, vernada, arial;
   15.15 -	margin: 0;
   15.16 -	border-top: 34px solid #f1f1f1;
   15.17 -}
   15.18 -a { text-decoration: underline; color: #103a5e; }
   15.19 -a:hover { text-decoration: none; color: blue; }
   15.20 -img { border: 0pt none; }
   15.21 -
   15.22 -/* Accessibility */
   15.23 -
   15.24 -#access {
   15.25 -	position: absolute;
   15.26 -	top: 4px;
   15.27 -	right: 0px;
   15.28 -	text-align: right;
   15.29 -	width: auto;
   15.30 -	margin: 0;
   15.31 -	padding: 4px 4px 4px 20px;
   15.32 -	font-size: 11px;
   15.33 -	font-weight: bold;
   15.34 -}
   15.35 -#access a {
   15.36 -	background: transparent;
   15.37 -	color: #0F314E;
   15.38 -	text-decoration: none;
   15.39 -}
   15.40 -#access a:hover { color: #b64b22; }
   15.41 -#access img { vertical-align: middle; }
   15.42 -
   15.43 -/* Header */
   15.44 -
   15.45 -#header {
   15.46 -	background: #351a0a url(pics/website/header-img.png) no-repeat top right;
   15.47 -	color: black;
   15.48 -	width: 100%;
   15.49 -	height: 42px;
   15.50 -	border-top: 1px solid black;
   15.51 -	border-bottom: 1px solid #999;
   15.52 -	margin-bottom: 33px;
   15.53 -}
   15.54 -#titre {
   15.55 -	position: absolute;
   15.56 -	font-size: 14px;
   15.57 -	font-weight: bolder ;
   15.58 -	left: 180px;
   15.59 -	top: 4px;
   15.60 -}
   15.61 -#logo {
   15.62 -	position: absolute;
   15.63 -	float: left;
   15.64 -	left: 16px;
   15.65 -	top: -10px;
   15.66 -	width: 200px;
   15.67 -	height: 74px;
   15.68 -}
   15.69 -
   15.70 -/* Side bar */
   15.71 -
   15.72 -#nav {
   15.73 -	position: absolute;
   15.74 -	top: 102px;
   15.75 -	right: 80px;
   15.76 -	color: #555555;
   15.77 -	float: right;
   15.78 -	width: 250px;
   15.79 -	line-height: 1.5em;
   15.80 -	text-align: left;
   15.81 -	font-size: 12px;
   15.82 -}
   15.83 -#nav h4 {
   15.84 -	font-size: 120%;
   15.85 -	color: #666666;
   15.86 -	font-weight: bold;
   15.87 -	margin: 0;
   15.88 -	padding: 0 0 1px 0;
   15.89 -	border-bottom: 1px solid #cecece;
   15.90 -}
   15.91 -#nav a {
   15.92 -	color: #0F314E;
   15.93 -	background: inherit;
   15.94 -	display: block;
   15.95 -	text-decoration: none;
   15.96 -	font-weight: bold;
   15.97 -}
   15.98 -#nav a:hover {
   15.99 -	color: #b64b22;
  15.100 -	text-decoration: none;
  15.101 -	display: block;
  15.102 -}
  15.103 -#nav .nav_box ul {
  15.104 -	list-style-type: none;
  15.105 -	margin: 0;
  15.106 -	padding: 10px 24px 10px 0px;
  15.107 -	background-color: inherit;
  15.108 -}
  15.109 -#nav li { display: inline; }
  15.110 -#nav ul {
  15.111 -	-moz-border-radius: 8px;
  15.112 -	-webkit-border-radius: 8px;
  15.113 -	border-radius: 8px;
  15.114 -	list-style-type: none;
  15.115 -	margin: 10px 0;
  15.116 -	padding: 10px 24px 10px 24px;
  15.117 -	background-color: #eaeaea;
  15.118 -}
  15.119 -.nav_box {
  15.120 -	margin: 10px 0;
  15.121 -	padding: 10px 24px 10px 24px;
  15.122 -	background-color: #eaeaea;
  15.123 -	text-align: justify;
  15.124 -}
  15.125 -#nav .nav_box p { line-height: 1.3em; }
  15.126 -#nav .nav_box p a {
  15.127 -	display: inline;
  15.128 -	font-weight: normal;
  15.129 -	text-decoration: underline;
  15.130 -}
  15.131 -#nav .nav_box p a:hover {
  15.132 -	text-decoration: none;
  15.133 -	color: blue;
  15.134 -	background: inherit;
  15.135 -}
  15.136 -
  15.137 -/* Page content */
  15.138 -
  15.139 -#content, #content-full {
  15.140 -	background: white;
  15.141 -	color: black;
  15.142 -	text-align: justify;
  15.143 -	height: auto;
  15.144 -}
  15.145 -#content, #content-full {
  15.146 -	margin: 6px 320px 0px 0px;
  15.147 -	padding: 0px 40px 60px 80px;
  15.148 -}
  15.149 -#content-full {
  15.150 -	margin: 0;
  15.151 -	padding: 0px 80px 40px 80px;
  15.152 -}
  15.153 -#content li, #content-full li {
  15.154 -	line-height: 1.5em;
  15.155 -	text-align: left;
  15.156 -}
  15.157 -#news li {
  15.158 -	list-style-type: square;
  15.159 -	border-bottom: 1px dotted #BEBEBE;
  15.160 -	margin-left: -25px;
  15.161 -	padding: 4px 0px 4px 0px;
  15.162 -}
  15.163 -#news a { text-decoration: none; }
  15.164 -
  15.165 -/* Box and block. */
  15.166 -
  15.167 -.infobox {
  15.168 -	margin: 20px 60px;
  15.169 -	padding: 12px;
  15.170 -	background: #f8f8f8;
  15.171 -}
  15.172 -.infobox img { vertical-align: middle; }
  15.173 -.infobox:hover { background-color: #FBFBFB; }
  15.174 -.block {
  15.175 -	/*padding-bottom: 35%;*/
  15.176 -	color: black;
  15.177 -	min-height: 200px;
  15.178 -	margin-bottom: 40px;
  15.179 -}
  15.180 -.block ul {
  15.181 -	list-style-type: none;
  15.182 -	margin: 0;
  15.183 -	padding: 0 20px;
  15.184 -}
  15.185 -.block_left {
  15.186 -	width: 46%;
  15.187 -	float: left;
  15.188 -	background-color: #eaeaea;
  15.189 -	margin: 4px 2px;
  15.190 -	padding: 0 10px 10px 10px;
  15.191 -}
  15.192 -.block_right {
  15.193 -	width: 46%;
  15.194 -	float: right;
  15.195 -	background-color: #eaeaea;
  15.196 -	margin: 4px 2px;
  15.197 -	padding: 0 10px 10px 10px;
  15.198 -}
  15.199 -#block_top {
  15.200 -	color: black;
  15.201 -	background-color: #eaeaea;
  15.202 -	min-height: 180px;
  15.203 -	margin-bottom: 40px;
  15.204 -	margin-right: 340px;
  15.205 -	padding: 0 10px;
  15.206 -}
  15.207 -#block_nav {
  15.208 -	width: 300px;
  15.209 -	min-height: 180px;
  15.210 -	float: right;
  15.211 -	background-color: #eaeaea;
  15.212 -	margin: 0;
  15.213 -	padding: 0 10px;
  15.214 -}
  15.215 -.nav_box, .infobox, .block_left, .block_right, #block_top, 
  15.216 -#block_nav, #footer {
  15.217 -	-moz-border-radius: 8px;
  15.218 -	-webkit-border-radius: 8px;
  15.219 -	border-radius: 8px;
  15.220 -	-moz-box-shadow: 0 1px 3px #666;
  15.221 -	-webkit-box-shadow: 0 1px 3px #666;
  15.222 -	box-shadow: 0 1px 3px #666;
  15.223 -	/* CSS3 transition */
  15.224 -	-webkit-transition-property: background-color;
  15.225 -	-webkit-transition-duration: 2s;
  15.226 -	-moz-transition-property: background-color;
  15.227 -	-moz-transition-duration: 2s;
  15.228 -	transition-property: background-color;
  15.229 -	transition-duration: 2s;
  15.230 -}
  15.231 -#block_nav { font-weight: bold; }
  15.232 -#block_nav a { text-decoration: none; }
  15.233 -#block_nav li a:hover { color: #b64b22; }
  15.234 -#block_nav ul { margin: 0; list-style-type: none; }
  15.235 -#block_nav h3 { font-size: 110%; }
  15.236 -.nav_box:hover, .block_left:hover, .block_right:hover, 
  15.237 -#block_top:hover, #block_nav:hover, #footer:hover { 
  15.238 -	background-color: #f8f8f8;
  15.239 -}
  15.240 -.right_box {
  15.241 -	width: 50%;
  15.242 -	float: right;
  15.243 -}
  15.244 -/* Text transform at 45deg */
  15.245 -.floor {
  15.246 -	color: #999999;
  15.247 -	font-size: 20px;
  15.248 -	-webkit-transform: rotate(-45deg) skew(15deg, 15deg);
  15.249 -	-moz-transform: rotate(-45deg) skew(15deg, 15deg);
  15.250 -	-o-transform: rotate(-45deg) skew(15deg, 15deg);
  15.251 -	-ms-transform: rotate(-45deg) skew(15deg, 15deg);
  15.252 -	transform: rotate(-45deg) skew(15deg, 15deg);
  15.253 -}
  15.254 -#twitter, .feedbox {
  15.255 -	margin-top: 20px;
  15.256 -	-moz-border-radius: 8px;
  15.257 -	-webkit-border-radius: 8px;
  15.258 -	border-radius: 8px;
  15.259 -	-moz-box-shadow: 0 1px 3px #666;
  15.260 -	-webkit-box-shadow: 0 1px 3px #666;
  15.261 -	box-shadow: 0 1px 3px #666;
  15.262 -}
  15.263 -.feedbox {
  15.264 -	background-color: #f9f9f9;
  15.265 -	padding: 10px 20px;
  15.266 -	margin: 20px 100px;
  15.267 -}
  15.268 -.feedbox div {
  15.269 -	height: 320px;
  15.270 -	overflow: auto;
  15.271 -}
  15.272 -.feedbox ul { list-style-type: none; margin: 0; }
  15.273 -
  15.274 -/* Button */
  15.275 -
  15.276 -.button { margin-left: 20px; }
  15.277 -.button a { 
  15.278 -	background-color: #b64b22;
  15.279 -	color: #ffffff;
  15.280 -	margin-right: 6px;
  15.281 -	padding: 6px 10px;
  15.282 -	font-size: 14px;
  15.283 -	-moz-border-radius: 4px;
  15.284 -	-webkit-border-radius: 4px;
  15.285 -	border-radius: 4px;
  15.286 -	-moz-box-shadow: 0 1px 3px #666;
  15.287 -	-webkit-box-shadow: 0 1px 3px #666;
  15.288 -	box-shadow: 0 1px 3px #666;
  15.289 -}
  15.290 -.button a:hover, input[type=submit]:hover { 
  15.291 -	background-color: #a3431f;
  15.292 -	color: #ffffff;
  15.293 -}
  15.294 -input[type=submit] {
  15.295 -	border: 1px solid #b64b22;
  15.296 -	background-color: #b64b22;
  15.297 -	color: white;
  15.298 -	font-weight: bold;
  15.299 -	cursor: pointer;
  15.300 -	padding: 3px 10px;
  15.301 -	font-size: 14px;
  15.302 -	-moz-border-radius: 2px;
  15.303 -	-webkit-border-radius: 2px;
  15.304 -	border-radius: 2px;
  15.305 -	-moz-box-shadow: 0 0 5px #666;
  15.306 -	-webkit-box-shadow: 0 0 5px#666;
  15.307 -	box-shadow: 0 0 5px #666;
  15.308 -	margin-left: -5px;
  15.309 -}
  15.310 -input[type=text] {
  15.311 -	border: 1px solid #333333;
  15.312 -	padding: 3px;
  15.313 -	width: 100%;
  15.314 -}
  15.315 -
  15.316 -/* Clouds */
  15.317 -
  15.318 -#cloud {
  15.319 -	padding: 10px 0px;
  15.320 -	line-height: 3em;
  15.321 -	text-align: center;
  15.322 -}
  15.323 -#cloud a { padding: 0 2px; color: #444444; }
  15.324 -#cloud a.tag1 { font-size: 0.7em; font-weight: 100; }
  15.325 -#cloud a.tag2 { font-size: 0.8em; font-weight: 200; }
  15.326 -#cloud a.tag3 { font-size: 0.9em; font-weight: 300; }
  15.327 -#cloud a.tag4 { font-size: 1.0em; font-weight: 400; }
  15.328 -#cloud a.tag5 { font-size: 1.2em; font-weight: 500; }
  15.329 -#cloud a.tag6 { font-size: 1.4em; font-weight: 600; }
  15.330 -#cloud a.tag7 { font-size: 1.6em; font-weight: 700; }
  15.331 -#cloud a.tag8 { font-size: 1.8em; font-weight: 800; }
  15.332 -#cloud a.tag9 { font-size: 2.2em; font-weight: 900; }
  15.333 -#cloud a.tag10 { font-size: 2.5em; font-weight: 900; }
  15.334 -
  15.335 -/* Slideshow and gallery */
  15.336 -
  15.337 -#slideshow
  15.338 -{
  15.339 -	overflow: hidden;
  15.340 -	margin: 10px auto 10px;
  15.341 -	position: relative;
  15.342 -	width: 260px;
  15.343 -	height: 163px;
  15.344 -}
  15.345 -#slideshow img
  15.346 -{
  15.347 -	border: 0;
  15.348 -	width: 260px;
  15.349 -	height: 163px;
  15.350 -}
  15.351 -#gallery { text-align: center; }
  15.352 -
  15.353 -/* HTML styles */
  15.354 -
  15.355 -h1 {
  15.356 -	color: #444444;
  15.357 -	background: transparent;
  15.358 -	text-align: left;
  15.359 -	margin: 0px 0px 4px 0px;
  15.360 -	font-size: 150%;
  15.361 -	font-weight: bold;
  15.362 -	padding: 5px 0 0 10px;
  15.363 -}
  15.364 -h2 {
  15.365 -	color: #b64b22;
  15.366 -	padding: 0;
  15.367 -	margin: 20px 0 0 0;
  15.368 -	font-size: 130%;
  15.369 -	font-weight: bold;
  15.370 -}
  15.371 -h3 {
  15.372 -	font-weight: bold;
  15.373 -	color: #666666;
  15.374 -	background: transparent;
  15.375 -}
  15.376 -h3 img, h2 img { 
  15.377 -	vertical-align: middle;
  15.378 -	width: 20px;
  15.379 -	height: 20px;
  15.380 -	padding-right: 4px; 
  15.381 -}
  15.382 -code, tt {
  15.383 -	font-size: 12px;
  15.384 -	color: #669900;
  15.385 -}
  15.386 -pre, pre.script {
  15.387 -	padding: 10px;
  15.388 -	color: black;
  15.389 -	background: #E8E8E8;
  15.390 -	border: 1px inset #606060;
  15.391 -}
  15.392 -
  15.393 -/* Packages pages */
  15.394 -
  15.395 -.pkg_nav {
  15.396 -	border-top: 1px solid black;
  15.397 -	margin-top: 10px;
  15.398 -	padding-top: 10px;
  15.399 -}
  15.400 -pre.package {
  15.401 -	padding: 0px;
  15.402 -	color: black;
  15.403 -	background: white;
  15.404 -}
  15.405 -p.get {
  15.406 -	text-align: center;
  15.407 -	padding: 10px;
  15.408 -	color: black;
  15.409 -	background: #F3F3F3;
  15.410 -	border: 1px solid #DEDEDE;
  15.411 -	border-radius: 4px;
  15.412 -	-moz-border-radius: 4px;
  15.413 -	-webkit-border-radius: 4px;
  15.414 -}
  15.415 -p.get a {
  15.416 -	font-weight: bold;
  15.417 -	text-decoration: none;
  15.418 -}
  15.419 -.pkgs-search { 
  15.420 -	text-align: center; 
  15.421 -	padding: 40px 20px 80px 20px;
  15.422 -}
  15.423 -
  15.424 -/* Footer */
  15.425 -
  15.426 -#footer {
  15.427 -	margin: 0px 80px 80px 80px;
  15.428 -	padding: 10px;
  15.429 -	background: #eaeaea;
  15.430 -	color: #666666;
  15.431 -	height: 180px;
  15.432 -	clear: both;
  15.433 -	border-radius: 8px;
  15.434 -	-moz-border-radius: 8px;
  15.435 -	-webkit-border-radius: 8px;
  15.436 -	-moz-box-shadow: 0 1px 3px #666;
  15.437 -	-webkit-box-shadow: 0 1px 3px #666;
  15.438 -	box-shadow: 0 1px 3px #666;
  15.439 -}
  15.440 -#footer a { color: #666666; }
  15.441 -#footer a:hover { color: #333333; }
  15.442 -#footer ul { list-style-type: none; }
  15.443 -#footer li { padding: 2px; }
  15.444 -#footer h4 { margin: 0 20px; font-size: 125%; }
  15.445 -
  15.446 -.year:after {
  15.447 -	/* content: "2007-2011"; */
  15.448 -	content: "2011";
  15.449 -}
    16.1 --- a/tazpkg-web/stuff/tazpkg-web	Tue Apr 03 13:45:02 2012 +0200
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,290 +0,0 @@
    16.4 -#!/bin/sh
    16.5 -# SliTaz Packages Web interface generator: http://pkgs.slitaz.org/
    16.6 -#
    16.7 -# (C) 2011 SliTaz project - GNU General Public License v3.
    16.8 -# Christophe Lincoln <pankso@slitaz.org>
    16.9 -#
   16.10 -
   16.11 -. /etc/slitaz/tazpkg-web.conf
   16.12 -
   16.13 -RELEASE="$1"
   16.14 -PAGES_DIR=$WEB_INTERFACE/$RELEASE
   16.15 -DATE=`date +%Y-%m-%d\ \%H:%M:%S`
   16.16 -YEAR=`date +%Y`
   16.17 -
   16.18 -status()
   16.19 -{
   16.20 -	local CHECK=$?
   16.21 -	echo -en "\033[70G"
   16.22 -	if [ $CHECK = 0 ]; then
   16.23 -		echo "Done"
   16.24 -	else
   16.25 -		echo "Failed"
   16.26 -	fi
   16.27 -	return $CHECK
   16.28 -}
   16.29 -
   16.30 -# Search from option with current version in first so users dont have
   16.31 -# to select the correct one.
   16.32 -search_form_option()
   16.33 -{
   16.34 -	if [ "$RELEASE" == "stable" ]; then
   16.35 -		cat << _EOT_
   16.36 -			<option>stable</option>
   16.37 -			<option>cooking</option>
   16.38 -			<option>2.0</option>
   16.39 -			<option>1.0</option>
   16.40 -_EOT_
   16.41 -	else
   16.42 -		cat << _EOT_
   16.43 -			<option>cooking</option>
   16.44 -			<option>stable</option>
   16.45 -			<option>2.0</option>
   16.46 -			<option>1.0</option>
   16.47 -_EOT_
   16.48 -	fi
   16.49 -}
   16.50 -
   16.51 -# xHTML Header.
   16.52 -xhtml_header()
   16.53 -{
   16.54 -	cat $LIB_DIR/html/header.html > $PAGES_DIR/$page.html
   16.55 -	sed -i s/"_RELEASE_"/"$RELEASE"/ $PAGES_DIR/$page.html
   16.56 -	sed -i s/"_PAGE_"/"$page"/ $PAGES_DIR/$page.html
   16.57 -	sed -i s/"_DATE_"/"$DATE"/ $PAGES_DIR/$page.html
   16.58 -}
   16.59 -
   16.60 -# xHTML Footer.
   16.61 -xhtml_footer()
   16.62 -{
   16.63 -	cat $LIB_DIR/html/footer.html >> $PAGES_DIR/$page.html
   16.64 -	sed -i s/"_DATE_"/"$DATE"/ $PAGES_DIR/$page.html
   16.65 -	sed -i s/"_YEAR_"/"$YEAR"/ $PAGES_DIR/$page.html
   16.66 -}
   16.67 -
   16.68 -# Index pages with categories and search form.
   16.69 -gen_index_content()
   16.70 -{
   16.71 -	cat >> $PAGES_DIR/$page.html << _EOT_
   16.72 -
   16.73 -<div class="pkgs-search">
   16.74 -	<form method="post" action="http://pkgs.slitaz.org/search.cgi">
   16.75 -		<p>
   16.76 -			<input type="text" name="query" size="32" />
   16.77 -			<input type="submit" name="search" value="Search" />
   16.78 -		</p>
   16.79 -		<select name="object">
   16.80 -			<option>Package</option>
   16.81 -			<option>Desc</option>
   16.82 -			<option>Tags</option>
   16.83 -			<option>Receipt</option>
   16.84 -			<option>Depends</option>
   16.85 -			<option>BuildDepends</option>
   16.86 -			<option>File</option>
   16.87 -			<option>File_list</option>
   16.88 -			<option>FileOverlap</option>
   16.89 -		</select>
   16.90 -		<select name="version">
   16.91 -`search_form_option`
   16.92 -		</select>
   16.93 -	</form>
   16.94 -	<p>
   16.95 -		$packages packages - Database generated on: $DATE
   16.96 -	</p>
   16.97 -</div>
   16.98 -_EOT_
   16.99 -	sed -i s/"_RELEASE_"/"$RELEASE"/ $PAGES_DIR/$page.html
  16.100 -}
  16.101 -
  16.102 -# Packages <h3> and infos in <pre>. Some packages use EXTRAVERSION in
  16.103 -# the receipt so keep the value or set it to the kernel version.
  16.104 -pkgs_pages_content()
  16.105 -{
  16.106 -	for pkg in $WOK/*
  16.107 -	do
  16.108 -		DEPENDS=""
  16.109 -		DEPENDS_LINKS=""
  16.110 -		EXTRAVERSION=""
  16.111 -		. $pkg/receipt
  16.112 -		packages=$(($packages+1))
  16.113 -		cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
  16.114 -
  16.115 -<a name="$PACKAGE"></a>
  16.116 -<h3>
  16.117 -<a href="tazpkg://mirror.slitaz.org/packages/$RELEASE/$PACKAGE-${VERSION}$EXTRAVERSION.tazpkg">
  16.118 -<img src="/pics/tazpkg.png" 
  16.119 -	title="install" alt="install" 
  16.120 -	style="vertical-align: middle; width: 24px; height: 24px;" /></a>
  16.121 -$PACKAGE</h3>
  16.122 -<pre class="package">
  16.123 -Version    : $VERSION
  16.124 -Short desc : $SHORT_DESC
  16.125 -Web site   : <a href="$WEB_SITE">$WEB_SITE</a>
  16.126 -_EOT_
  16.127 -		[ -z "$EXTRAVERSION" ] && EXTRAVERSION="_$KERNEL"
  16.128 -		# Extraversion string or not
  16.129 -		if [ -f "$PACKAGES_REPOSITORY/$PACKAGE-${VERSION}$EXTRAVERSION.tazpkg" ]; then
  16.130 -			cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
  16.131 -Download   : <a href="http://mirror.slitaz.org/packages/$RELEASE/$PACKAGE-${VERSION}$EXTRAVERSION.tazpkg">$PACKAGE-${VERSION}$EXTRAVERSION.tazpkg</a>
  16.132 -_EOT_
  16.133 -			echo '</pre>' >> $PAGES_DIR/$CATEGORY.html
  16.134 -		else
  16.135 -			# Check if package exists, could be virtual?
  16.136 -			[ -f "$PACKAGES_REPOSITORY/$PACKAGE-$VERSION.tazpkg" ] &&
  16.137 -			cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
  16.138 -Download   : <a href="http://mirror.slitaz.org/packages/$RELEASE/$PACKAGE-$VERSION.tazpkg">$PACKAGE-$VERSION.tazpkg</a>
  16.139 -_EOT_
  16.140 -			echo '</pre>' >> $PAGES_DIR/$CATEGORY.html
  16.141 -		fi
  16.142 -		# Dependencies with link to the package information using
  16.143 -		# category.html#anchor
  16.144 -		if [ -n "$DEPENDS" ]; then
  16.145 -			for dep in $DEPENDS
  16.146 -			do
  16.147 -				receipt=$WOK/$dep/receipt
  16.148 -				if [ -f "$receipt" ]; then
  16.149 -					cat=`grep CATEGORY $receipt | sed s/CATEGORY=\"// | sed s/\"//`
  16.150 -					DEPENDS_LINKS=${DEPENDS_LINKS}"<a href=\"$cat.html#$dep\">$dep</a> "
  16.151 -				fi
  16.152 -			done
  16.153 -			cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
  16.154 -<p>Depends : $DEPENDS_LINKS</p>
  16.155 -_EOT_
  16.156 -		fi
  16.157 -	done
  16.158 -}
  16.159 -
  16.160 -# Pages footer
  16.161 -pages_footer()
  16.162 -{
  16.163 -	for page in $CATEGORIES
  16.164 -	do
  16.165 -		# Gen categories menu/links
  16.166 -		echo '' >> $PAGES_DIR/$page.html
  16.167 -		echo '<div class="infobox"><p>' >> $PAGES_DIR/$page.html
  16.168 -		echo 'Categories' >> $PAGES_DIR/$page.html
  16.169 -		for i in $CATEGORIES
  16.170 -		do
  16.171 -			cat >> $PAGES_DIR/$page.html << _EOF_
  16.172 -| <a href="$i.html">$i</a>
  16.173 -_EOF_
  16.174 -		done
  16.175 -		echo '</p></div>' >> $PAGES_DIR/$page.html
  16.176 -		xhtml_footer
  16.177 -	done
  16.178 -}
  16.179 -
  16.180 -# Home page with search form and tag cloud.
  16.181 -home_page()
  16.182 -{
  16.183 -	PAGES_DIR=$WEB_INTERFACE
  16.184 -	page="index"
  16.185 -	h2="Web interface"
  16.186 -	RELEASE=""
  16.187 -	xhtml_header
  16.188 -	cat $LIB_DIR/html/home.html >> $PAGES_DIR/$page.html
  16.189 -	xhtml_footer
  16.190 -}
  16.191 -
  16.192 -# Generate all categories pages and release index.
  16.193 -gen_all_pages()
  16.194 -{
  16.195 -	# Clean previews files.
  16.196 -	rm -rf $PAGES_DIR
  16.197 -	mkdir -p $PAGES_DIR
  16.198 -	echo -e "\nStarting to build the $RELEASE Web interface... "
  16.199 -	echo "================================================================================"
  16.200 -	# Packages pages header, menu and content top at first.
  16.201 -	echo -n "Generating all page headers..."
  16.202 -	for page in $CATEGORIES
  16.203 -	do
  16.204 -		h2=$page
  16.205 -		xhtml_header
  16.206 -		cat $LIB_DIR/html/menu.html >> $PAGES_DIR/$page.html
  16.207 -		sed -i s/"_RELEASE_"/"$RELEASE"/ $PAGES_DIR/$page.html
  16.208 -		echo "<h2>Category: $h2</h2>" >> $PAGES_DIR/$page.html
  16.209 -	done
  16.210 -	status
  16.211 -	# Scan the wok and classify packages by category.
  16.212 -	echo -n "Scanning the wok and generating page contents..."
  16.213 -	pkgs_pages_content
  16.214 -	status
  16.215 -	# Gen all packages pages footer.
  16.216 -	echo -n "Generating all page footers..."
  16.217 -	pages_footer
  16.218 -	status
  16.219 -	# Stable or Cooking index with categories and home page.
  16.220 -	echo -n "Generating the main index..."
  16.221 -	page="index"
  16.222 -	h2="Categories"
  16.223 -	xhtml_header
  16.224 -	cat $LIB_DIR/html/menu.html >> $PAGES_DIR/$page.html
  16.225 -	gen_index_content
  16.226 -	xhtml_footer
  16.227 -	home_page
  16.228 -	status
  16.229 -	echo "================================================================================"
  16.230 -	echo -e "Pages generated: $WEB_INTERFACE\n"
  16.231 -}
  16.232 -
  16.233 -# Prefer the Hg wok in the chroot. On host running Tazbb the wok's
  16.234 -# are updated and copied automatically and so more up-to-date.
  16.235 -
  16.236 -case "$1" in
  16.237 -	stats)
  16.238 -		size=`du -sh $WEB_INTERFACE | awk '{ print $1 }'`
  16.239 -		pages=`find $WEB_INTERFACE -name *.html | wc -l`
  16.240 -		stable=`find $WEB_INTERFACE/stable -name *.html | wc -l`
  16.241 -		cooking=`find $WEB_INTERFACE/cooking -name *.html | wc -l`
  16.242 -		cat << _EOT_
  16.243 -
  16.244 -Tazpkg-web statistics
  16.245 -================================================================================
  16.246 -Web interface : $WEB_INTERFACE ($size)
  16.247 -xHTML pages   : $pages (Stable $stable - Cooking $cooking)
  16.248 -Library path  : $LIB_DIR
  16.249 -Stable path   : $STABLE
  16.250 -Cooking path  : $COOKING
  16.251 -================================================================================
  16.252 -
  16.253 -_EOT_
  16.254 -		;;
  16.255 -	check)
  16.256 -		RELEASE=$2
  16.257 -		[ -z "$RELEASE" ] && RELEASE=cooking
  16.258 -		echo -e "\nChecking: $WEB_INTERFACE/$RELEASE\n"
  16.259 -		for page in `cd $WEB_INTERFACE/$RELEASE && ls *.html`
  16.260 -		do
  16.261 -			if ! echo "$CATEGORIES index" | grep -qw ${page%.html}; then
  16.262 -				echo "Wrong category: ${page%.html}"
  16.263 -			fi
  16.264 -		done && echo "" ;;
  16.265 -	stable)
  16.266 -		PACKAGES_REPOSITORY=$STABLE/packages
  16.267 -		if [ -d $STABLE/chroot/home/slitaz/hg/wok ]; then
  16.268 -			WOK=$STABLE/chroot/home/slitaz/hg/wok
  16.269 -		else
  16.270 -			WOK=$STABLE/wok
  16.271 -		fi
  16.272 -		KERNEL=`cat $WOK/linux/receipt | grep ^VERSION= | cut -d '"' -f 2`
  16.273 -		gen_all_pages ;;
  16.274 -	cooking)
  16.275 -		PACKAGES_REPOSITORY=$COOKING/packages
  16.276 -		if [ -d $COOKING/chroot/home/slitaz/hg/wok ]; then
  16.277 -			WOK=$COOKING/chroot/home/slitaz/hg/wok
  16.278 -		else
  16.279 -			WOK=$COOKING/wok
  16.280 -		fi
  16.281 -		KERNEL=`cat $WOK/linux/receipt | grep ^VERSION= | cut -d '"' -f 2`
  16.282 -		gen_all_pages ;;
  16.283 -	*|usage)
  16.284 -		cat << _EOT_
  16.285 -
  16.286 -Tazpkg-web - SliTaz Packages Web interface generator.
  16.287 -Usage: `basename $0` [slitaz-release|stats|check]
  16.288 -
  16.289 -_EOT_
  16.290 -		;;
  16.291 -esac
  16.292 -
  16.293 -exit 0
    17.1 --- a/tazpkg-web/stuff/tazpkg-web.conf	Tue Apr 03 13:45:02 2012 +0200
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,29 +0,0 @@
    17.4 -# tazpkg-web.conf: SliTaz packages Web interface configuration file.
    17.5 -#
    17.6 -
    17.7 -# Path to the Web interface.
    17.8 -WEB_INTERFACE="/var/www/vhosts/pkgs"
    17.9 -
   17.10 -# Path to xHTML and XML templates.
   17.11 -LIB_DIR="/var/lib/tazpkg-web"
   17.12 -
   17.13 -# Path to each version.
   17.14 -STABLE="/home/slitaz/stable"
   17.15 -COOKING="/home/slitaz/cooking"
   17.16 -
   17.17 -# Packages categories.
   17.18 -CATEGORIES="
   17.19 -base-system
   17.20 -x-window
   17.21 -utilities
   17.22 -network
   17.23 -graphics
   17.24 -multimedia
   17.25 -office
   17.26 -development
   17.27 -system-tools
   17.28 -security
   17.29 -games
   17.30 -misc
   17.31 -meta
   17.32 -non-free"
    18.1 --- a/tazpkg-web/stuff/xml/rss-header.xml	Tue Apr 03 13:45:02 2012 +0200
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,15 +0,0 @@
    18.4 -<?xml version="1.0" ?>
    18.5 -<rss version="2.0">
    18.6 -<channel>
    18.7 -	<title>SliTaz _RELEASE_ packages</title>
    18.8 -	<link>http://www.slitaz.org/</link>
    18.9 -	<lastBuildDate>_DATE_</lastBuildDate>
   18.10 -	<description>Latest packages releases for SliTaz GNU/Linux</description>
   18.11 -	<language>en</language>
   18.12 -	<generator>Tazpkg-web</generator>
   18.13 -
   18.14 -	<image>
   18.15 -		<title>SliTaz GNU/Linux</title>
   18.16 -		<url>../pics/website/slitaz-spider.png</url>
   18.17 -		<link>http://pkgs.slitaz.org/</link>
   18.18 -	</image>
    19.1 --- a/tazpkg/receipt	Tue Apr 03 13:45:02 2012 +0200
    19.2 +++ b/tazpkg/receipt	Thu Apr 05 13:32:52 2012 +0200
    19.3 @@ -1,7 +1,7 @@
    19.4  # SliTaz package receipt.
    19.5  
    19.6  PACKAGE="tazpkg"
    19.7 -VERSION="4.9"
    19.8 +VERSION="4.9.2"
    19.9  CATEGORY="base-system"
   19.10  SHORT_DESC="SliTaz packages manager."
   19.11  MAINTAINER="pankso@slitaz.org"