# HG changeset patch # User Christophe Lincoln # Date 1333625572 -7200 # Node ID ebf5ca08edd39a1f52d8ad4d2eeef83deb8ef3e6 # Parent d64d0a05e4320b1d34204c59b37e449f3e435313 Remove tazpkg-web (obsolete) diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/receipt --- a/tazpkg-web/receipt Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="tazpkg-web" -VERSION="2.1" -CATEGORY="network" -SHORT_DESC="SliTaz packages Web interfaces (http://pkgs.slitaz.org/)." -MAINTAINER="pankso@slitaz.org" -DEPENDS="lighttpd" -WEB_SITE="http://www.slitaz.org/" -CONFIGS="/etc/slitaz/tazpkg-web.conf" -TAGS="slitaz package-manager" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p \ - $fs/usr/bin \ - $fs/etc/slitaz \ - $fs/var/lib/tazpkg-web - # Page generator and config file. - cp stuff/tazpkg-web $fs/usr/bin - cp stuff/tazpkg-web.conf $fs/etc/slitaz - # Var libs - for i in html style xml search.cgi - do - cp -a stuff/$i $fs/var/lib/tazpkg-web - done - chmod 755 $fs/usr/bin/* - chown -R root.root $fs -} - -post_install() -{ - # On Tank we have pkgs.slitaz.org virtual host in: /home/slitaz/www - if [ -d $1/home/slitaz/www/pkgs ]; then - # Overwrite existing files. - cp -a $1/var/lib/tazpkg-web/style/* $1/home/slitaz/www/pkgs - cp -a $1/var/lib/tazpkg-web/search.cgi $1/home/slitaz/www/pkgs - sed -i 's|/var/www/vhosts/pkgs|/home/slitaz/www/pkgs|' \ - $1/etc/slitaz/tazpkg-web.conf - else - cat << _EOT_ - -To have a Tazpkg-web interface on your local system, you can add a vhost -to Lighttpd (or Apache) and the hostname to /etc/hosts. And you must also -copy files from: /var/lib/tazpkg-web. Example: - - # mkdir -p /var/www/vhosts/pkgs && cd /var/lib/tazpkg-web - # cp -a search.cgi style/* /var/www/vhosts/pkgs - # tazpkg-web cooking - -_EOT_ - fi -} diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/README --- a/tazpkg-web/stuff/README Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -Tazpkg-web - SliTaz Packages Web interface -=============================================================================== - - -Tazpkg-web package provides the files, scripts and search engine used for the -SliTaz packages web interface. It doesn't depend on the Tazpkg package manager -or Tazwok, but needs a wok with a receipt and a packages (*.tazpkg) repository -to scan and build the static xHTML pages. Here is a brief overview of the files -provided: - - - * html/ : Split xHTML template used to generate the full pages - * style/ : CSS stylesheets, pics and favicon - * xml/ : RSS template (will be used when merged with tazrss) - * search.cgi : CGI search engine using awk, grep, etc (all xHTML hardcoded) - * tazpkg-web : Utility which generates the categories and index pages - * tazpkg-web.conf : Tazpkg-web utility configuration file - - -Online : http://pkgs.slitaz.org/ - - -=============================================================================== - diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/html/footer.html --- a/tazpkg-web/stuff/html/footer.html Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ - - - - - - - - diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/html/header.html --- a/tazpkg-web/stuff/html/header.html Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ - - - - SliTaz _RELEASE_ Packages - _PAGE_ - - - - - - - - - - - - - - - - - - - - - -
- diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/html/home.html --- a/tazpkg-web/stuff/html/home.html Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ - -
- -
-

.pngTools

- -

.pngDocumentation

- - -
- -
-

Packages

-

- Welcome to the SliTaz packages web interface. The site allows - you to search and view all of the software packages available - on the SliTaz mirror. The pages are automatically updated daily - via a cron job. -

-

- Browse the packages web interface: Stable packages - | Cooking packages -

- -
- -
- - diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/html/menu.html --- a/tazpkg-web/stuff/html/menu.html Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ - -
- - - -
-

Packages _RELEASE_

-

- The SliTaz packages web interface allows you to search and view - all of the software packages available for SliTaz. The pages are - updated daily via a cron job. -

-

- Documentation: - Package manager -

-

- Browse the packages web interface: Stable packages - | Cooking packages -

- -
- -
diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/search.cgi --- a/tazpkg-web/stuff/search.cgi Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,647 +0,0 @@ -#!/bin/sh -# Tiny CGI search engine for SliTaz packages on http://pkgs.slitaz.org/ -# Christophe Lincoln -# - -read QUERY_STRING -for i in $(echo $QUERY_STRING | sed 's/&/ /g'); do - eval $i -done -LANG=$lang -SEARCH=$query -SLITAZ_VERSION=$version -OBJECT=$object -DATE=`date +%Y-%m-%d\ \%H:%M:%S` -VERSION=cooking -if [ "$REQUEST_METHOD" = "GET" ]; then - SEARCH="" - VERBOSE=0 - for i in $(echo $REQUEST_URI | sed 's/[?&]/ /g'); do - SLITAZ_VERSION=cooking - case "$(echo $i | tr [A-Z] [a-z])" in - search=*) - SEARCH=${i#*=};; - object=*) - OBJECT=${i#*=};; - verbose=*) - VERBOSE=${i#*=};; - lang=*) - LANG=${i#*=};; - file=*) - SEARCH=${i#*=} - OBJECT=File;; - desc=*) - SEARCH=${i#*=} - OBJECT=Desc;; - tags=*) - SEARCH=${i#*=} - OBJECT=Tags;; - receipt=*) - SEARCH=${i#*=} - OBJECT=Receipt;; - filelist=*) - SEARCH=${i#*=} - OBJECT=File_list;; - package=*) - SEARCH=${i#*=} - OBJECT=Package;; - depends=*) - SEARCH=${i#*=} - OBJECT=Depends;; - builddepends=*) - SEARCH=${i#*=} - OBJECT=BuildDepends;; - fileoverlap=*) - SEARCH=${i#*=} - OBJECT=FileOverlap;; - version=s*|version=3*) - SLITAZ_VERSION=stable;; - version=[1-9]*) - i=${version%%.*} - SLITAZ_VERSION=${i#*=}.0;; - esac - done - [ -n "$SEARCH" ] && REQUEST_METHOD="POST" -fi - -case "$OBJECT" in -File) selected_file="selected";; -Desc) selected_desc="selected";; -Tags) selected_tags="selected";; -Receipt) selected_receipt="selected";; -File_list) selected_file_list="selected";; -Depends) selected_depends="selected";; -BuildDepends) selected_build_depends="selected";; -FileOverlap) selected_overlap="selected";; -esac - -case "$SLITAZ_VERSION" in -1.0) selected_1="selected";; -2.0) selected_2="selected";; -stable) selected_stable="selected";; -esac - -# unescape query -SEARCH="$(echo $SEARCH | sed 's/%2B/+/g' | sed 's/%3A/:/g' | sed 's|%2F|/|g')" - -if [ -z "$LANG" ]; then - for i in $(echo $HTTP_ACCEPT_LANGUAGE | sed 's/[,;]/ /g'); do - case "$i" in - fr|de|pt|cn) - LANG=$i - break;; - esac - done -fi - -package="Package" -file="File" -desc="Description" -tags="Tags" -receipt="Receipt" -file_list="File list" -depends="Depends" -bdepends="Build depends" -search="Search" -cooking="cooking" -stable="stable" -result="Result for : $SEARCH" -noresult="No package $SEARCH" -deptree="Dependency tree for : $SEARCH" -rdeptree="Reverse dependency tree for : $SEARCH" -bdeplist="$SEARCH needs these packages to be built" -rbdeplist="Packages who need $SEARCH to be built" -overloading="Theses packages may overload files of " -overlap="common files" -charset="ISO-8859-1" - -case "$LANG" in - -fr) package="Paquet" - receipt="Recette" - depends="Dépendances" - bdepends="Fabrication" - search="Recherche" - result="Recherche de : $SEARCH" - noresult="Paquet $SEARCH introuvable" - deptree="Arbre des dépendances de $SEARCH" - rdeptree="Arbre inversé des dépendances de $SEARCH" - bdeplist="$SEARCH a besion de ces paquets pour être fabriqué" - rbdeplist="Paquets ayant besion de $SEARCH pour être fabriqués" - overloading="Paquets pouvant écraser des fichiers de " - overlap="Fichiers communs" - file_list="Liste des fichiers" - file="Fichier";; - -de) package="Paket" - depends="Abhängigkeiten" - desc="Beschreibung" - search="Suche" - cooking="Cooking" - stable="Stable" - result="Resultate für : $SEARCH" - noresult="Kein Paket für $SEARCH" - deptree="Abhängigkeiten von: $SEARCH" - rdeptree="Abhängigkeit für: $SEARCH" - file_list="Datei liste" - file="Datei";; - -pt) package="Pacote" - search="Buscar" - cooking="cooking" - stable="stable" - result="Resultado para : $SEARCH" - noresult="Sem resultado: $SEARCH" - deptree="Árvore de dependências para: $SEARCH" - rdeptree="Árvore de dependências reversa para: $SEARCH" - depends="Dependências" - desc="Descrição" - file_list="Arquivo lista" - file="Arquivo";; - -cn) package="软件包:" - cooking="å¼€å‘版" - stable="稳定版" - desc="æè¿°" - tags="标签" - depends="ä¾èµ–" - file="文件" - file_list="文件列表" - search="Search" - result="Result for : $SEARCH" - noresult="No package $SEARCH" - deptree="Dependency tree for : $SEARCH" - rdeptree="Reverse dependency tree for : $SEARCH" - charset="UTF-8";; - -*) LANG="en";; - -esac - -WOK=/home/slitaz/$SLITAZ_VERSION/wok -PACKAGES_REPOSITORY=/home/slitaz/$SLITAZ_VERSION/packages - -echo Content-type: text/html -echo - -# Search form -search_form() -{ - cat << _EOT_ - -
-
- - - : - - - -
-
-_EOT_ -} - -# xHTML Header. -xhtml_header() -{ - cat << _EOF_ - - - - SliTaz Packages - Search $SEARCH - - - - - - - - - - - - - - - - -_EOF_ -} - -# xHTML Footer. -xhtml_footer() -{ - cat << _EOT_ -
-$(ls $WOK/ | wc -l) packages and $(unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | wc -l) files in $SLITAZ_VERSION database -
- - -
- - - - - - -_EOT_ -} - -installed_size() -{ -[ $VERBOSE -gt 0 ] && -grep -A 3 "^$1\$" /home/slitaz/$SLITAZ_VERSION/packages/packages.txt | \ - grep installed | sed 's/.*(\(.*\) installed.*/(\1) /' -} - -package_entry() -{ -if [ -s "$(dirname $0)/$SLITAZ_VERSION/$CATEGORY.html" ]; then - cat << _EOT_ -$PACKAGE $(installed_size $PACKAGE): $SHORT_DESC -_EOT_ -else - cat << _EOT_ -$PACKAGE $(installed_size $PACKAGE): $SHORT_DESC -_EOT_ -fi -} - -# recursive dependencies scan -dep_scan() -{ -for i in $1; do - case " $ALL_DEPS " in - *\ $i\ *) continue;; - esac - ALL_DEPS="$ALL_DEPS $i" - if [ -n "$2" ]; then - echo -n "$2" - ( - . $WOK/$i/receipt - package_entry - ) - fi - [ -f $WOK/$i/receipt ] || continue - DEPENDS="" - . $WOK/$i/receipt - [ -n "$DEPENDS" ] && dep_scan "$DEPENDS" "$2 " -done -} - -# recursive reverse dependencies scan -rdep_scan() -{ -SEARCH=$1 -case "$SEARCH" in -glibc-base|gcc-lib-base) cat <every package is supposed to depend on them. -EOT - return;; -esac -for i in $WOK/* ; do - DEPENDS="" - . $i/receipt - echo "$(basename $i) $(echo $DEPENDS)" -done | awk -v search=$SEARCH ' -function show_deps(deps, all_deps, pkg, space) -{ - if (all_deps[pkg] == 1) return - all_deps[pkg] = 1 - if (space != "") printf "%s%s\n",space,pkg - for (i = 1; i <= split(deps[pkg], mydeps, " "); i++) { - show_deps(deps, all_deps, mydeps[i],"////" space) - } -} - -{ - all_deps[$1] = 0 - for (i = 2; i <= NF; i++) - deps[$i] = deps[$i] " " $1 -} - -END { - show_deps(deps, all_deps, search, "") -} -' | while read pkg; do - . $WOK/${pkg##*/}/receipt - cat << _EOT_ -$(echo ${pkg%/*} | sed 's|/| |g') $(package_entry) -_EOT_ -done -} - -# Check package exists -package_exist() -{ - [ -f $WOK/$1/receipt ] && return 0 - cat << _EOT_ - -

$noresult

-
-_EOT_
-	return 1
-}
-
-# Display < > &
-htmlize()
-{
-	sed -e 's/&/\&/g' -e 's//\>/g'
-}
-
-display_packages_and_files()
-{
-last=""
-while read pkg file; do
-	pkg=${pkg%:}
-	if [ "$pkg" != "$last" ]; then
-		. $WOK/$pkg/receipt
-		
-		package_entry
-		last=$pkg
-	fi
-	echo "    $file"
-done
-}
-
-# Display search form and result if requested.
-if [ "$REQUEST_METHOD" != "POST" ]; then
-	xhtml_header
-	cat << _EOT_
-
-
-
- -

$package

-

$search

-_EOT_ - search_form - xhtml_footer -else - xhtml_header - cat << _EOT_ - - -
- -

$package

-

$search

-_EOT_ - search_form - if [ "$OBJECT" = "Depends" ]; then - if package_exist $SEARCH ; then - cat << _EOT_ - -

$deptree

-
-_EOT_
-			ALL_DEPS=""
-			dep_scan $SEARCH ""
-			SUGGESTED=""
-			. $WOK/$SEARCH/receipt
-			if [ -n "$SUGGESTED" ]; then
-				cat << _EOT_
-
- -

$deptree (SUGGESTED)

-
-_EOT_
-				ALL_DEPS=""
-				dep_scan "$SUGGESTED" "    "
-			fi
-			cat << _EOT_
-
- -

$rdeptree

-
-_EOT_
-			ALL_DEPS=""
-			rdep_scan $SEARCH
-			cat << _EOT_
-
-_EOT_ - fi - elif [ "$OBJECT" = "BuildDepends" ]; then - if package_exist $SEARCH ; then - cat << _EOT_ - -

$bdeplist

-
-_EOT_
-			BUILD_DEPENDS=""
-			. $WOK/$SEARCH/receipt
-			[ -n "$BUILD_DEPENDS" ] && for dep in $BUILD_DEPENDS ; do
-				if [ ! -s $WOK/$dep/receipt ]; then
-					cat << _EOT_
-$dep: not found !
-_EOT_
-					continue
-				fi
-				. $WOK/$dep/receipt
-				package_entry
-			done
-			cat << _EOT_
-
- -

$rbdeplist

-
-_EOT_
-			for dep in $(grep -l $SEARCH $WOK/*/receipt); do
-				BUILD_DEPENDS=""
-				. $dep
-				echo " $BUILD_DEPENDS " | grep -q " $SEARCH " &&
-				package_entry
-			done
-			cat << _EOT_
-
-_EOT_ - fi - elif [ "$OBJECT" = "FileOverlap" ]; then - if package_exist $SEARCH ; then - cat << _EOT_ - -

$overloading $SEARCH

-
-_EOT_
-			( unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep ^$SEARCH: ;
-			  unlzma -c $PACKAGES_REPOSITORY/files.list.lzma | grep -v ^$SEARCH: ) | awk '
-BEGIN { pkg=""; last="x" }
-{
-	if ($2 == "") next
-	if (index($2,last) == 1 && substr($2,1+length(last),1) == "/")
-		delete file[last]
-	last=$2
-	if (pkg == "") pkg=$1
-	if ($1 == pkg) file[$2]=$1
-	else if (file[$2] == pkg) print
-}
-' | display_packages_and_files
-			cat << _EOT_
-
-_EOT_ - fi - elif [ "$OBJECT" = "File" ]; then - cat << _EOT_ - -

$result

-
-_EOT_
-		last=""
-		unlzma -c $PACKAGES_REPOSITORY/files.list.lzma \
-		| grep $SEARCH | while read pkg file; do
-			echo "$file" | grep -q $SEARCH || continue
-			if [ "$last" != "${pkg%:}" ]; then
-				last=${pkg%:}
-				(
-				. $WOK/$last/receipt
-				cat << _EOT_
-
-$(package_entry)
-_EOT_
-				)
-			fi
-			echo "    $file"
-		done
-	elif [ "$OBJECT" = "File_list" ]; then
-		package_exist $SEARCH && cat << _EOT_
-
-

$result

-
-_EOT_
-		last=""
-		unlzma -c $PACKAGES_REPOSITORY/files.list.lzma \
-		| grep ^$SEARCH: |  sed 's/.*: /    /' | sort
-	elif [ "$OBJECT" = "Desc" ]; then
-		if [ -f $WOK/$SEARCH/description.txt ]; then
-			cat << _EOT_
-
-

$result

-
-
-$(htmlize < $WOK/$SEARCH/description.txt)
-
-_EOT_ - else - cat << _EOT_ - -

$result

-
-_EOT_
-			last=""
-			grep -i $SEARCH $PACKAGES_REPOSITORY/packages.desc | \
-			sort | while read pkg extras ; do
-				. $WOK/$pkg/receipt
-				package_entry
-			done
-		fi
-	elif [ "$OBJECT" = "Tags" ]; then
-		cat << _EOT_
-
-

$result

-
-_EOT_
-		last=""
-		grep ^TAGS= $WOK/*/receipt |  grep -i $SEARCH | \
-		sed "s|$WOK/\(.*\)/receipt:.*|\1|" | sort | while read pkg ; do
-				. $WOK/$pkg/receipt
-				package_entry
-			done
-	elif [ "$OBJECT" = "Receipt" ]; then
-		package_exist $SEARCH && cat << _EOT_
-
-

$result

-
-
-$(if [ -f  $WOK/$SEARCH/taz/*/receipt ]; then
-	cat $WOK/$SEARCH/taz/*/receipt
-  else
-    cat $WOK/$SEARCH/receipt
-  fi | htmlize)
-
-_EOT_ - else - cat << _EOT_ - -

$result

-
-_EOT_
-		for pkg in `ls $WOK/ | grep $SEARCH`
-		do
-			. $WOK/$pkg/receipt
-			DESC=" description"
-			[ -f $WOK/$pkg/description.txt ] || DESC=""
-			cat << _EOT_
-$(package_entry)$DESC
-_EOT_
-		done
-		equiv=$PACKAGES_REPOSITORY/packages.equiv
-		vpkgs="$(cat $equiv | cut -d= -f1 | grep $SEARCH)"
-		for vpkg in $vpkgs ; do
-	cat << _EOT_
-
- -

$result (package providing $vpkg)

-
-_EOT_
-			for pkg in $(grep $vpkg= $equiv | sed "s/$vpkg=//"); do
-				. $WOK/${pkg#*:}/receipt
-				package_entry
-			done
-		done
-	fi
-	cat << _EOT_
-
-_EOT_ - xhtml_footer -fi - -exit 0 diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/style/favicon.ico Binary file tazpkg-web/stuff/style/favicon.ico has changed diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/style/pics/tazpkg.png Binary file tazpkg-web/stuff/style/pics/tazpkg.png has changed diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/style/pics/website/header-img.png Binary file tazpkg-web/stuff/style/pics/website/header-img.png has changed diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/style/pics/website/logo.png Binary file tazpkg-web/stuff/style/pics/website/logo.png has changed diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/style/pics/website/network.png Binary file tazpkg-web/stuff/style/pics/website/network.png has changed diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/style/pics/website/text.png Binary file tazpkg-web/stuff/style/pics/website/text.png has changed diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/style/pics/website/xhtml10.png Binary file tazpkg-web/stuff/style/pics/website/xhtml10.png has changed diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/style/slitaz.css --- a/tazpkg-web/stuff/style/slitaz.css Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,446 +0,0 @@ -/* - CSS style for SliTaz Network - (c) 2011 SliTaz GNU/Linux -*/ - -html { - min-height: 102%; -} -body { - background: #ffffff; - color: black; - font: 13px sans-serif, vernada, arial; - margin: 0; - border-top: 34px solid #f1f1f1; -} -a { text-decoration: underline; color: #103a5e; } -a:hover { text-decoration: none; color: blue; } -img { border: 0pt none; } - -/* Accessibility */ - -#access { - position: absolute; - top: 4px; - right: 0px; - text-align: right; - width: auto; - margin: 0; - padding: 4px 4px 4px 20px; - font-size: 11px; - font-weight: bold; -} -#access a { - background: transparent; - color: #0F314E; - text-decoration: none; -} -#access a:hover { color: #b64b22; } -#access img { vertical-align: middle; } - -/* Header */ - -#header { - background: #351a0a url(pics/website/header-img.png) no-repeat top right; - color: black; - width: 100%; - height: 42px; - border-top: 1px solid black; - border-bottom: 1px solid #999; - margin-bottom: 33px; -} -#titre { - position: absolute; - font-size: 14px; - font-weight: bolder ; - left: 180px; - top: 4px; -} -#logo { - position: absolute; - float: left; - left: 16px; - top: -10px; - width: 200px; - height: 74px; -} - -/* Side bar */ - -#nav { - position: absolute; - top: 102px; - right: 80px; - color: #555555; - float: right; - width: 250px; - line-height: 1.5em; - text-align: left; - font-size: 12px; -} -#nav h4 { - font-size: 120%; - color: #666666; - font-weight: bold; - margin: 0; - padding: 0 0 1px 0; - border-bottom: 1px solid #cecece; -} -#nav a { - color: #0F314E; - background: inherit; - display: block; - text-decoration: none; - font-weight: bold; -} -#nav a:hover { - color: #b64b22; - text-decoration: none; - display: block; -} -#nav .nav_box ul { - list-style-type: none; - margin: 0; - padding: 10px 24px 10px 0px; - background-color: inherit; -} -#nav li { display: inline; } -#nav ul { - -moz-border-radius: 8px; - -webkit-border-radius: 8px; - border-radius: 8px; - list-style-type: none; - margin: 10px 0; - padding: 10px 24px 10px 24px; - background-color: #eaeaea; -} -.nav_box { - margin: 10px 0; - padding: 10px 24px 10px 24px; - background-color: #eaeaea; - text-align: justify; -} -#nav .nav_box p { line-height: 1.3em; } -#nav .nav_box p a { - display: inline; - font-weight: normal; - text-decoration: underline; -} -#nav .nav_box p a:hover { - text-decoration: none; - color: blue; - background: inherit; -} - -/* Page content */ - -#content, #content-full { - background: white; - color: black; - text-align: justify; - height: auto; -} -#content, #content-full { - margin: 6px 320px 0px 0px; - padding: 0px 40px 60px 80px; -} -#content-full { - margin: 0; - padding: 0px 80px 40px 80px; -} -#content li, #content-full li { - line-height: 1.5em; - text-align: left; -} -#news li { - list-style-type: square; - border-bottom: 1px dotted #BEBEBE; - margin-left: -25px; - padding: 4px 0px 4px 0px; -} -#news a { text-decoration: none; } - -/* Box and block. */ - -.infobox { - margin: 20px 60px; - padding: 12px; - background: #f8f8f8; -} -.infobox img { vertical-align: middle; } -.infobox:hover { background-color: #FBFBFB; } -.block { - /*padding-bottom: 35%;*/ - color: black; - min-height: 200px; - margin-bottom: 40px; -} -.block ul { - list-style-type: none; - margin: 0; - padding: 0 20px; -} -.block_left { - width: 46%; - float: left; - background-color: #eaeaea; - margin: 4px 2px; - padding: 0 10px 10px 10px; -} -.block_right { - width: 46%; - float: right; - background-color: #eaeaea; - margin: 4px 2px; - padding: 0 10px 10px 10px; -} -#block_top { - color: black; - background-color: #eaeaea; - min-height: 180px; - margin-bottom: 40px; - margin-right: 340px; - padding: 0 10px; -} -#block_nav { - width: 300px; - min-height: 180px; - float: right; - background-color: #eaeaea; - margin: 0; - padding: 0 10px; -} -.nav_box, .infobox, .block_left, .block_right, #block_top, -#block_nav, #footer { - -moz-border-radius: 8px; - -webkit-border-radius: 8px; - border-radius: 8px; - -moz-box-shadow: 0 1px 3px #666; - -webkit-box-shadow: 0 1px 3px #666; - box-shadow: 0 1px 3px #666; - /* CSS3 transition */ - -webkit-transition-property: background-color; - -webkit-transition-duration: 2s; - -moz-transition-property: background-color; - -moz-transition-duration: 2s; - transition-property: background-color; - transition-duration: 2s; -} -#block_nav { font-weight: bold; } -#block_nav a { text-decoration: none; } -#block_nav li a:hover { color: #b64b22; } -#block_nav ul { margin: 0; list-style-type: none; } -#block_nav h3 { font-size: 110%; } -.nav_box:hover, .block_left:hover, .block_right:hover, -#block_top:hover, #block_nav:hover, #footer:hover { - background-color: #f8f8f8; -} -.right_box { - width: 50%; - float: right; -} -/* Text transform at 45deg */ -.floor { - color: #999999; - font-size: 20px; - -webkit-transform: rotate(-45deg) skew(15deg, 15deg); - -moz-transform: rotate(-45deg) skew(15deg, 15deg); - -o-transform: rotate(-45deg) skew(15deg, 15deg); - -ms-transform: rotate(-45deg) skew(15deg, 15deg); - transform: rotate(-45deg) skew(15deg, 15deg); -} -#twitter, .feedbox { - margin-top: 20px; - -moz-border-radius: 8px; - -webkit-border-radius: 8px; - border-radius: 8px; - -moz-box-shadow: 0 1px 3px #666; - -webkit-box-shadow: 0 1px 3px #666; - box-shadow: 0 1px 3px #666; -} -.feedbox { - background-color: #f9f9f9; - padding: 10px 20px; - margin: 20px 100px; -} -.feedbox div { - height: 320px; - overflow: auto; -} -.feedbox ul { list-style-type: none; margin: 0; } - -/* Button */ - -.button { margin-left: 20px; } -.button a { - background-color: #b64b22; - color: #ffffff; - margin-right: 6px; - padding: 6px 10px; - font-size: 14px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - border-radius: 4px; - -moz-box-shadow: 0 1px 3px #666; - -webkit-box-shadow: 0 1px 3px #666; - box-shadow: 0 1px 3px #666; -} -.button a:hover, input[type=submit]:hover { - background-color: #a3431f; - color: #ffffff; -} -input[type=submit] { - border: 1px solid #b64b22; - background-color: #b64b22; - color: white; - font-weight: bold; - cursor: pointer; - padding: 3px 10px; - font-size: 14px; - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; - -moz-box-shadow: 0 0 5px #666; - -webkit-box-shadow: 0 0 5px#666; - box-shadow: 0 0 5px #666; - margin-left: -5px; -} -input[type=text] { - border: 1px solid #333333; - padding: 3px; - width: 100%; -} - -/* Clouds */ - -#cloud { - padding: 10px 0px; - line-height: 3em; - text-align: center; -} -#cloud a { padding: 0 2px; color: #444444; } -#cloud a.tag1 { font-size: 0.7em; font-weight: 100; } -#cloud a.tag2 { font-size: 0.8em; font-weight: 200; } -#cloud a.tag3 { font-size: 0.9em; font-weight: 300; } -#cloud a.tag4 { font-size: 1.0em; font-weight: 400; } -#cloud a.tag5 { font-size: 1.2em; font-weight: 500; } -#cloud a.tag6 { font-size: 1.4em; font-weight: 600; } -#cloud a.tag7 { font-size: 1.6em; font-weight: 700; } -#cloud a.tag8 { font-size: 1.8em; font-weight: 800; } -#cloud a.tag9 { font-size: 2.2em; font-weight: 900; } -#cloud a.tag10 { font-size: 2.5em; font-weight: 900; } - -/* Slideshow and gallery */ - -#slideshow -{ - overflow: hidden; - margin: 10px auto 10px; - position: relative; - width: 260px; - height: 163px; -} -#slideshow img -{ - border: 0; - width: 260px; - height: 163px; -} -#gallery { text-align: center; } - -/* HTML styles */ - -h1 { - color: #444444; - background: transparent; - text-align: left; - margin: 0px 0px 4px 0px; - font-size: 150%; - font-weight: bold; - padding: 5px 0 0 10px; -} -h2 { - color: #b64b22; - padding: 0; - margin: 20px 0 0 0; - font-size: 130%; - font-weight: bold; -} -h3 { - font-weight: bold; - color: #666666; - background: transparent; -} -h3 img, h2 img { - vertical-align: middle; - width: 20px; - height: 20px; - padding-right: 4px; -} -code, tt { - font-size: 12px; - color: #669900; -} -pre, pre.script { - padding: 10px; - color: black; - background: #E8E8E8; - border: 1px inset #606060; -} - -/* Packages pages */ - -.pkg_nav { - border-top: 1px solid black; - margin-top: 10px; - padding-top: 10px; -} -pre.package { - padding: 0px; - color: black; - background: white; -} -p.get { - text-align: center; - padding: 10px; - color: black; - background: #F3F3F3; - border: 1px solid #DEDEDE; - border-radius: 4px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -p.get a { - font-weight: bold; - text-decoration: none; -} -.pkgs-search { - text-align: center; - padding: 40px 20px 80px 20px; -} - -/* Footer */ - -#footer { - margin: 0px 80px 80px 80px; - padding: 10px; - background: #eaeaea; - color: #666666; - height: 180px; - clear: both; - border-radius: 8px; - -moz-border-radius: 8px; - -webkit-border-radius: 8px; - -moz-box-shadow: 0 1px 3px #666; - -webkit-box-shadow: 0 1px 3px #666; - box-shadow: 0 1px 3px #666; -} -#footer a { color: #666666; } -#footer a:hover { color: #333333; } -#footer ul { list-style-type: none; } -#footer li { padding: 2px; } -#footer h4 { margin: 0 20px; font-size: 125%; } - -.year:after { - /* content: "2007-2011"; */ - content: "2011"; -} diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/tazpkg-web --- a/tazpkg-web/stuff/tazpkg-web Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,290 +0,0 @@ -#!/bin/sh -# SliTaz Packages Web interface generator: http://pkgs.slitaz.org/ -# -# (C) 2011 SliTaz project - GNU General Public License v3. -# Christophe Lincoln -# - -. /etc/slitaz/tazpkg-web.conf - -RELEASE="$1" -PAGES_DIR=$WEB_INTERFACE/$RELEASE -DATE=`date +%Y-%m-%d\ \%H:%M:%S` -YEAR=`date +%Y` - -status() -{ - local CHECK=$? - echo -en "\033[70G" - if [ $CHECK = 0 ]; then - echo "Done" - else - echo "Failed" - fi - return $CHECK -} - -# Search from option with current version in first so users dont have -# to select the correct one. -search_form_option() -{ - if [ "$RELEASE" == "stable" ]; then - cat << _EOT_ - - - - -_EOT_ - else - cat << _EOT_ - - - - -_EOT_ - fi -} - -# xHTML Header. -xhtml_header() -{ - cat $LIB_DIR/html/header.html > $PAGES_DIR/$page.html - sed -i s/"_RELEASE_"/"$RELEASE"/ $PAGES_DIR/$page.html - sed -i s/"_PAGE_"/"$page"/ $PAGES_DIR/$page.html - sed -i s/"_DATE_"/"$DATE"/ $PAGES_DIR/$page.html -} - -# xHTML Footer. -xhtml_footer() -{ - cat $LIB_DIR/html/footer.html >> $PAGES_DIR/$page.html - sed -i s/"_DATE_"/"$DATE"/ $PAGES_DIR/$page.html - sed -i s/"_YEAR_"/"$YEAR"/ $PAGES_DIR/$page.html -} - -# Index pages with categories and search form. -gen_index_content() -{ - cat >> $PAGES_DIR/$page.html << _EOT_ - - -_EOT_ - sed -i s/"_RELEASE_"/"$RELEASE"/ $PAGES_DIR/$page.html -} - -# Packages

and infos in
. Some packages use EXTRAVERSION in
-# the receipt so keep the value or set it to the kernel version.
-pkgs_pages_content()
-{
-	for pkg in $WOK/*
-	do
-		DEPENDS=""
-		DEPENDS_LINKS=""
-		EXTRAVERSION=""
-		. $pkg/receipt
-		packages=$(($packages+1))
-		cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
-
-
-

- -install -$PACKAGE

-
-Version    : $VERSION
-Short desc : $SHORT_DESC
-Web site   : $WEB_SITE
-_EOT_
-		[ -z "$EXTRAVERSION" ] && EXTRAVERSION="_$KERNEL"
-		# Extraversion string or not
-		if [ -f "$PACKAGES_REPOSITORY/$PACKAGE-${VERSION}$EXTRAVERSION.tazpkg" ]; then
-			cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
-Download   : $PACKAGE-${VERSION}$EXTRAVERSION.tazpkg
-_EOT_
-			echo '
' >> $PAGES_DIR/$CATEGORY.html - else - # Check if package exists, could be virtual? - [ -f "$PACKAGES_REPOSITORY/$PACKAGE-$VERSION.tazpkg" ] && - cat >> $PAGES_DIR/$CATEGORY.html << _EOT_ -Download : $PACKAGE-$VERSION.tazpkg -_EOT_ - echo '
' >> $PAGES_DIR/$CATEGORY.html - fi - # Dependencies with link to the package information using - # category.html#anchor - if [ -n "$DEPENDS" ]; then - for dep in $DEPENDS - do - receipt=$WOK/$dep/receipt - if [ -f "$receipt" ]; then - cat=`grep CATEGORY $receipt | sed s/CATEGORY=\"// | sed s/\"//` - DEPENDS_LINKS=${DEPENDS_LINKS}"$dep " - fi - done - cat >> $PAGES_DIR/$CATEGORY.html << _EOT_ -

Depends : $DEPENDS_LINKS

-_EOT_ - fi - done -} - -# Pages footer -pages_footer() -{ - for page in $CATEGORIES - do - # Gen categories menu/links - echo '' >> $PAGES_DIR/$page.html - echo '

' >> $PAGES_DIR/$page.html - echo 'Categories' >> $PAGES_DIR/$page.html - for i in $CATEGORIES - do - cat >> $PAGES_DIR/$page.html << _EOF_ -| $i -_EOF_ - done - echo '

' >> $PAGES_DIR/$page.html - xhtml_footer - done -} - -# Home page with search form and tag cloud. -home_page() -{ - PAGES_DIR=$WEB_INTERFACE - page="index" - h2="Web interface" - RELEASE="" - xhtml_header - cat $LIB_DIR/html/home.html >> $PAGES_DIR/$page.html - xhtml_footer -} - -# Generate all categories pages and release index. -gen_all_pages() -{ - # Clean previews files. - rm -rf $PAGES_DIR - mkdir -p $PAGES_DIR - echo -e "\nStarting to build the $RELEASE Web interface... " - echo "================================================================================" - # Packages pages header, menu and content top at first. - echo -n "Generating all page headers..." - for page in $CATEGORIES - do - h2=$page - xhtml_header - cat $LIB_DIR/html/menu.html >> $PAGES_DIR/$page.html - sed -i s/"_RELEASE_"/"$RELEASE"/ $PAGES_DIR/$page.html - echo "

Category: $h2

" >> $PAGES_DIR/$page.html - done - status - # Scan the wok and classify packages by category. - echo -n "Scanning the wok and generating page contents..." - pkgs_pages_content - status - # Gen all packages pages footer. - echo -n "Generating all page footers..." - pages_footer - status - # Stable or Cooking index with categories and home page. - echo -n "Generating the main index..." - page="index" - h2="Categories" - xhtml_header - cat $LIB_DIR/html/menu.html >> $PAGES_DIR/$page.html - gen_index_content - xhtml_footer - home_page - status - echo "================================================================================" - echo -e "Pages generated: $WEB_INTERFACE\n" -} - -# Prefer the Hg wok in the chroot. On host running Tazbb the wok's -# are updated and copied automatically and so more up-to-date. - -case "$1" in - stats) - size=`du -sh $WEB_INTERFACE | awk '{ print $1 }'` - pages=`find $WEB_INTERFACE -name *.html | wc -l` - stable=`find $WEB_INTERFACE/stable -name *.html | wc -l` - cooking=`find $WEB_INTERFACE/cooking -name *.html | wc -l` - cat << _EOT_ - -Tazpkg-web statistics -================================================================================ -Web interface : $WEB_INTERFACE ($size) -xHTML pages : $pages (Stable $stable - Cooking $cooking) -Library path : $LIB_DIR -Stable path : $STABLE -Cooking path : $COOKING -================================================================================ - -_EOT_ - ;; - check) - RELEASE=$2 - [ -z "$RELEASE" ] && RELEASE=cooking - echo -e "\nChecking: $WEB_INTERFACE/$RELEASE\n" - for page in `cd $WEB_INTERFACE/$RELEASE && ls *.html` - do - if ! echo "$CATEGORIES index" | grep -qw ${page%.html}; then - echo "Wrong category: ${page%.html}" - fi - done && echo "" ;; - stable) - PACKAGES_REPOSITORY=$STABLE/packages - if [ -d $STABLE/chroot/home/slitaz/hg/wok ]; then - WOK=$STABLE/chroot/home/slitaz/hg/wok - else - WOK=$STABLE/wok - fi - KERNEL=`cat $WOK/linux/receipt | grep ^VERSION= | cut -d '"' -f 2` - gen_all_pages ;; - cooking) - PACKAGES_REPOSITORY=$COOKING/packages - if [ -d $COOKING/chroot/home/slitaz/hg/wok ]; then - WOK=$COOKING/chroot/home/slitaz/hg/wok - else - WOK=$COOKING/wok - fi - KERNEL=`cat $WOK/linux/receipt | grep ^VERSION= | cut -d '"' -f 2` - gen_all_pages ;; - *|usage) - cat << _EOT_ - -Tazpkg-web - SliTaz Packages Web interface generator. -Usage: `basename $0` [slitaz-release|stats|check] - -_EOT_ - ;; -esac - -exit 0 diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/tazpkg-web.conf --- a/tazpkg-web/stuff/tazpkg-web.conf Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -# tazpkg-web.conf: SliTaz packages Web interface configuration file. -# - -# Path to the Web interface. -WEB_INTERFACE="/var/www/vhosts/pkgs" - -# Path to xHTML and XML templates. -LIB_DIR="/var/lib/tazpkg-web" - -# Path to each version. -STABLE="/home/slitaz/stable" -COOKING="/home/slitaz/cooking" - -# Packages categories. -CATEGORIES=" -base-system -x-window -utilities -network -graphics -multimedia -office -development -system-tools -security -games -misc -meta -non-free" diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg-web/stuff/xml/rss-header.xml --- a/tazpkg-web/stuff/xml/rss-header.xml Tue Apr 03 13:45:02 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ - - - - SliTaz _RELEASE_ packages - http://www.slitaz.org/ - _DATE_ - Latest packages releases for SliTaz GNU/Linux - en - Tazpkg-web - - - SliTaz GNU/Linux - ../pics/website/slitaz-spider.png - http://pkgs.slitaz.org/ - diff -r d64d0a05e432 -r ebf5ca08edd3 tazpkg/receipt --- a/tazpkg/receipt Tue Apr 03 13:45:02 2012 +0200 +++ b/tazpkg/receipt Thu Apr 05 13:32:52 2012 +0200 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="tazpkg" -VERSION="4.9" +VERSION="4.9.2" CATEGORY="base-system" SHORT_DESC="SliTaz packages manager." MAINTAINER="pankso@slitaz.org"