wok rev 9562
par2: fix CATEGORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 11 22:57:42 2011 +0200 (2011-04-11) |
parents | a3a1e544875b |
children | 3349744c4217 |
files | busybox/stuff/busybox-1.18-httpd.u par2/receipt |
line diff
1.1 --- a/busybox/stuff/busybox-1.18-httpd.u Mon Apr 11 13:33:54 2011 +0000 1.2 +++ b/busybox/stuff/busybox-1.18-httpd.u Mon Apr 11 22:57:42 2011 +0200 1.3 @@ -1,26 +1,20 @@ 1.4 -Httpd already support directory listing: 1.5 - 1.6 -Install /etc/httpd.conf, /var/www/cgi-bin/index.cgi and try ! 1.7 +Httpd already support directory listing. Install both files and try ! 1.8 1.9 ===>8=== /etc/httpd.conf ===>8=== 1.10 H:/var/www 1.11 ===>8=== /var/www/cgi-bin/index.cgi ===>8=== 1.12 #!/bin/sh 1.13 1.14 -path=$QUERY_STRING 1.15 - 1.16 -cat <<EOT 1.17 +[ ! -d ..$QUERY_STRING ] && echo "HTTP/1.1 404 Not Found" || cat <<EOT 1.18 Content-type: text/html 1.19 1.20 <!DOCTYPE html> 1.21 <html xmlns="http://www.w3.org/1999/xhtml"> 1.22 -<head> 1.23 - <title>Index of $path</title> 1.24 -</head> 1.25 +<head> <title>Index of $QUERY_STRING</title> </head> 1.26 <body> 1.27 - <h1>Index of $path</h1> 1.28 + <h1>Index of $QUERY_STRING</h1> 1.29 <ul> 1.30 -$(cd $PWD/..$path && { [ "$path" != "/" ] && echo "../"; ls -p; } | \ 1.31 +$({ [ "$QUERY_STRING" != "/" ] && echo "../"; ls -p ..$QUERY_STRING; } | \ 1.32 sed 's|.*| <li><a href="&">&</a></li>|') 1.33 </ul> 1.34 </body>
2.1 --- a/par2/receipt Mon Apr 11 13:33:54 2011 +0000 2.2 +++ b/par2/receipt Mon Apr 11 22:57:42 2011 +0200 2.3 @@ -3,7 +3,7 @@ 2.4 PACKAGE="par2" 2.5 SOURCE="par2cmdline" 2.6 VERSION="0.4" 2.7 -CATEGORY="system" 2.8 +CATEGORY="system-tools" 2.9 SHORT_DESC="Utility for posting and recovery of multi-part archives." 2.10 MAINTAINER="pascal.bellard@slitaz.org" 2.11 TARBALL="$SOURCE-$VERSION.tar.gz"