wok rev 3528

tazpkg-web: Minor edits
author Paul Issott <paul@slitaz.org>
date Sun Jun 21 22:21:53 2009 +0000 (2009-06-21)
parents 87cd9284651c
children 0fba0aa4ee0e
files tazpkg-web/receipt tazpkg-web/stuff/README tazpkg-web/stuff/search.cgi tazpkg-web/stuff/tazpkg-web tazpkg-web/stuff/tazpkg-web.conf
line diff
     1.1 --- a/tazpkg-web/receipt	Sun Jun 21 21:30:25 2009 +0000
     1.2 +++ b/tazpkg-web/receipt	Sun Jun 21 22:21:53 2009 +0000
     1.3 @@ -40,9 +40,9 @@
     1.4  	else
     1.5  		cat << _EOT_
     1.6  
     1.7 -To have Tazpkg-web interface on your local system you can add a vhost
     1.8 -to Lighttp (or Apache) and the hostname to /etc/hosts. And must copy
     1.9 -files from: /var/lib/tazpkg-web. Example:
    1.10 +To have a Tazpkg-web interface on your local system, you can add a vhost
    1.11 +to Lighttpd (or Apache) and the hostname to /etc/hosts. And you must also
    1.12 +copy files from: /var/lib/tazpkg-web. Example:
    1.13  
    1.14   # mkdir -p /var/www/vhosts/pkgs && cd /var/lib/tazpkg-web
    1.15   # cp -a search.cgi style/* /var/www/vhosts/pkgs
     2.1 --- a/tazpkg-web/stuff/README	Sun Jun 21 21:30:25 2009 +0000
     2.2 +++ b/tazpkg-web/stuff/README	Sun Jun 21 22:21:53 2009 +0000
     2.3 @@ -2,18 +2,19 @@
     2.4  ===============================================================================
     2.5  
     2.6  
     2.7 -Tazpkg-web package provide the files, scripts and search engine used for SliTaz
     2.8 -packages web interface. It not depends on Tazpkg packages manager or Tazwok but
     2.9 -need a wok with receipt and a packages (*.tazpkg) repository to scan and build
    2.10 -the static xHTML pages. Here is a brief overview of the files provided:
    2.11 +Tazpkg-web package provides the files, scripts and search engine used for the 
    2.12 +SliTaz packages web interface. It doesn't depend on the Tazpkg package manager 
    2.13 +or Tazwok, but needs a wok with a receipt and a packages (*.tazpkg) repository 
    2.14 +to scan and build the static xHTML pages. Here is a brief overview of the files
    2.15 +provided:
    2.16  
    2.17  
    2.18 - * html/           : Splitted xHTML template used to generate the full pages
    2.19 - * style/          : CSS style, pics and favicon
    2.20 - * xml/            : RSS template (will be use when merge tazrss)
    2.21 - * search.cgi      : CGI search engine using awk, grep, etc (all xHTML harcoded)
    2.22 - * tazpkg-web      : Utility who generate the categories and index's pages.
    2.23 - * tazpkg-web.conf : Tazpkg-web utility configuration file.
    2.24 + * html/           : Split xHTML template used to generate the full pages
    2.25 + * style/          : CSS stylesheets, pics and favicon
    2.26 + * xml/            : RSS template (will be used when merged with tazrss)
    2.27 + * search.cgi      : CGI search engine using awk, grep, etc (all xHTML hardcoded)
    2.28 + * tazpkg-web      : Utility which generates the categories and index pages
    2.29 + * tazpkg-web.conf : Tazpkg-web utility configuration file
    2.30  
    2.31  
    2.32  Online : http://pkgs.slitaz.org/
     3.1 --- a/tazpkg-web/stuff/search.cgi	Sun Jun 21 21:30:25 2009 +0000
     3.2 +++ b/tazpkg-web/stuff/search.cgi	Sun Jun 21 22:21:53 2009 +0000
     3.3 @@ -299,8 +299,8 @@
     3.4  SEARCH=$1
     3.5  case "$SEARCH" in
     3.6  glibc-base|gcc-lib-base) cat <<EOT
     3.7 -	glibc-base and gcc-lib-base are implicit dependencies
     3.8 -	<b>every</b> packages are supposed to depend on them.
     3.9 +	glibc-base and gcc-lib-base are implicit dependencies,
    3.10 +	<b>every</b> package is supposed to depend on them.
    3.11  EOT
    3.12  	return;;
    3.13  esac
     4.1 --- a/tazpkg-web/stuff/tazpkg-web	Sun Jun 21 21:30:25 2009 +0000
     4.2 +++ b/tazpkg-web/stuff/tazpkg-web	Sun Jun 21 22:21:53 2009 +0000
     4.3 @@ -136,7 +136,7 @@
     4.4  _EOT_
     4.5  			echo '</pre>' >> $PAGES_DIR/$CATEGORY.html
     4.6  		else
     4.7 -			# Check if package exist, could be virtual
     4.8 +			# Check if package exists, could be virtual?
     4.9  			[ -f "$PACKAGES_REPOSITORY/$PACKAGE-$VERSION.tazpkg" ] &&
    4.10  			cat >> $PAGES_DIR/$CATEGORY.html << _EOT_
    4.11  Download   : <a href="http://mirror.slitaz.org/packages/$RELEASE/$PACKAGE-$VERSION.tazpkg">$PACKAGE-$VERSION.tazpkg</a>
    4.12 @@ -203,7 +203,7 @@
    4.13  	echo -e "\nStarting to build the $RELEASE Web interface... "
    4.14  	echo "================================================================================"
    4.15  	# Packages pages header, menu and content top at first.
    4.16 -	echo -n "Generating all pages header..."
    4.17 +	echo -n "Generating all page headers..."
    4.18  	for page in $CATEGORIES
    4.19  	do
    4.20  		h2=$page
    4.21 @@ -213,11 +213,11 @@
    4.22  	done
    4.23  	status
    4.24  	# Scan the wok and classify packages by category.
    4.25 -	echo -n "Scanning the wok and generating page content..."
    4.26 +	echo -n "Scanning the wok and generating page contents..."
    4.27  	pkgs_pages_content
    4.28  	status
    4.29  	# Gen all packages pages footer.
    4.30 -	echo -n "Generating all pages footer..."
    4.31 +	echo -n "Generating all page footers..."
    4.32  	pages_footer
    4.33  	status
    4.34  	# Stable or Cooking index with categories and home page.
    4.35 @@ -236,7 +236,7 @@
    4.36  }
    4.37  
    4.38  # Prefer the Hg wok in the chroot. On host running Tazbb the wok's
    4.39 -# are updated and copied automaticaly and so more up-to-date.
    4.40 +# are updated and copied automatically and so more up-to-date.
    4.41  
    4.42  case "$1" in
    4.43  	stats)
     5.1 --- a/tazpkg-web/stuff/tazpkg-web.conf	Sun Jun 21 21:30:25 2009 +0000
     5.2 +++ b/tazpkg-web/stuff/tazpkg-web.conf	Sun Jun 21 22:21:53 2009 +0000
     5.3 @@ -11,7 +11,7 @@
     5.4  STABLE="/home/slitaz/stable"
     5.5  COOKING="/home/slitaz/cooking"
     5.6  
     5.7 -# Packages categoies.
     5.8 +# Packages categories.
     5.9  CATEGORIES="
    5.10  base-system
    5.11  x-window