# HG changeset patch # User Pascal Bellard # Date 1446305539 -3600 # Node ID 48d2c4c7a227a319240d137b552e606a5ef5795d # Parent a10bae21f60273e7bdc310edb24d54703e1a3966 Update wiki, add module-serial diff -r a10bae21f602 -r 48d2c4c7a227 custom-console/receipt --- a/custom-console/receipt Sat Oct 31 12:53:44 2015 +0100 +++ b/custom-console/receipt Sat Oct 31 16:32:19 2015 +0100 @@ -8,6 +8,7 @@ LICENSE="BSD" WEB_SITE="http://tiny.slitaz.org/" DEPENDS="base-tiny" +SUGGESTED="module-usbserial module-serial" CONFIG_FILES="/etc/inittab" # Rules to gen a SliTaz package suitable for Tazpkg. @@ -28,7 +29,7 @@ [ -n "$TTYS" ] || TTYS=ttyS0 [ -n "$SPEED" ] || SPEED=38400 cat < Device diff -r a10bae21f602 -r 48d2c4c7a227 lpd-config/receipt --- a/lpd-config/receipt Sat Oct 31 12:53:44 2015 +0100 +++ b/lpd-config/receipt Sat Oct 31 16:32:19 2015 +0100 @@ -8,6 +8,7 @@ LICENSE="BSD" WEB_SITE="http://tiny.slitaz.org/" DEPENDS="base-tiny" +SUGGESTED="module-lp module-usblp" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r a10bae21f602 -r 48d2c4c7a227 lpd-spooling-config/receipt --- a/lpd-spooling-config/receipt Sat Oct 31 12:53:44 2015 +0100 +++ b/lpd-spooling-config/receipt Sat Oct 31 16:32:19 2015 +0100 @@ -8,6 +8,7 @@ LICENSE="BSD" WEB_SITE="http://tiny.slitaz.org/" DEPENDS="base-tiny" +SUGGESTED="module-lp module-usblp" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() diff -r a10bae21f602 -r 48d2c4c7a227 module-serial/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/module-serial/receipt Sat Oct 31 16:32:19 2015 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="module-serial" +VERSION="2.6.14" +CATEGORY="base-system" +SHORT_DESC="Kernel module for the serial port" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +WEB_SITE="http://tiny.slitaz.org/" +WANTED="linux" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + local path + export src=$WOK/$WANTED/source/linux-$VERSION + export _pkg=$WOK/$WANTED/install + path=lib/modules/$(ls $_pkg/lib/modules)/kernel + mkdir -p $fs/$path $fs/dev + $src/slitaz/list_modules.sh drivers/serial | while read module; do + dir=$path/$(dirname $module) + [ -d $fs/$dir ] || mkdir -p $fs/$dir + cp -a $_pkg/$path/$module $fs/$dir + done + for i in 0 1 2 3; do + mknod $fs/dev/ttyS$i c 4 $((64+$i)) + done +} + +# Post install/remove commands for Tazpkg. +post_install() +{ + echo ${PACKAGE#*-} >> $1/modules +} diff -r a10bae21f602 -r 48d2c4c7a227 module-usbserial/receipt --- a/module-usbserial/receipt Sat Oct 31 12:53:44 2015 +0100 +++ b/module-usbserial/receipt Sat Oct 31 16:32:19 2015 +0100 @@ -16,12 +16,15 @@ export src=$WOK/$WANTED/source/linux-$VERSION export _pkg=$WOK/$WANTED/install path=lib/modules/$(ls $_pkg/lib/modules)/kernel - mkdir -p $fs/$path + mkdir -p $fs/$path $fs/dev $src/slitaz/list_modules.sh drivers/usb/serial/usbserial.ko | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done + for i in 0 1 2 3; do + mknod $fs/dev/ttyS$i c 188 $i + done } # Post install/remove commands for Tazpkg. diff -r a10bae21f602 -r 48d2c4c7a227 p910nd/receipt --- a/p910nd/receipt Sat Oct 31 12:53:44 2015 +0100 +++ b/p910nd/receipt Sat Oct 31 16:32:19 2015 +0100 @@ -12,6 +12,7 @@ [ -n "$TARGET" ] || TARGET="i486" BUILD_DEPENDS="uclibc-cross-compiler-$TARGET" DEPENDS="base-tiny" +SUGGESTED="module-lp module-usblp" CONFIG_FILES="/etc/inetd.conf /etc/rcS.conf" # Rules to configure and make the package. diff -r a10bae21f602 -r 48d2c4c7a227 wiki/stuff/var/www/wiki/config-de.sh --- a/wiki/stuff/var/www/wiki/config-de.sh Sat Oct 31 12:53:44 2015 +0100 +++ b/wiki/stuff/var/www/wiki/config-de.sh Sat Oct 31 16:32:19 2015 +0100 @@ -1,10 +1,11 @@ -PASSWORD="test" +PASSWORD="" PAGES_DIR="pages/" BACKUP_DIR="historique/" LANG="de" WIKI_TITLE="WiKiss" -START_PAGE="Startseite" +#START_PAGE="Startseite" +START_PAGE="Welcome" HOME_BUTTON="Startseite" HELP_BUTTON="Hilfe" DEFAULT_CONTENT="Die Seite %page% ist leer." diff -r a10bae21f602 -r 48d2c4c7a227 wiki/stuff/var/www/wiki/config-fr.sh --- a/wiki/stuff/var/www/wiki/config-fr.sh Sat Oct 31 12:53:44 2015 +0100 +++ b/wiki/stuff/var/www/wiki/config-fr.sh Sat Oct 31 16:32:19 2015 +0100 @@ -1,4 +1,4 @@ -PASSWORD="test" +PASSWORD="" PAGES_DIR="pages/" BACKUP_DIR="historique/" diff -r a10bae21f602 -r 48d2c4c7a227 wiki/stuff/var/www/wiki/config.sh --- a/wiki/stuff/var/www/wiki/config.sh Sat Oct 31 12:53:44 2015 +0100 +++ b/wiki/stuff/var/www/wiki/config.sh Sat Oct 31 16:32:19 2015 +0100 @@ -1,4 +1,4 @@ -PASSWORD="test" +PASSWORD="" PAGES_DIR="pages/" BACKUP_DIR="historique/" diff -r a10bae21f602 -r 48d2c4c7a227 wiki/stuff/var/www/wiki/index.sh --- a/wiki/stuff/var/www/wiki/index.sh Sat Oct 31 12:53:44 2015 +0100 +++ b/wiki/stuff/var/www/wiki/index.sh Sat Oct 31 16:32:19 2015 +0100 @@ -5,13 +5,14 @@ # Copyright (C) Pascal Bellard # Based on WiKiss - http://wikiss.tuxfamily.org/ -. /usr/bin/httpd_helper.sh +. /usr/bin/httphelper.sh -CONFIG=config-${HTTP_ACCEPT_LANGUAGE%%,*}.sh -[ -r "$CONFIG" ] || CONFIG=config.sh +cd $(dirname $0) +CONFIG=config-${HTTP_ACCEPT_LANGUAGE%%[,;_-]*}.sh +[ -x "$CONFIG" ] || CONFIG=config.sh . ./$CONFIG -WIKI_VERSION="TazWiKiss 0.3" +WIKI_VERSION="Based on WiKiss 0.3" # Initialisations toc='' # Table Of Content @@ -55,6 +56,12 @@ cache_auth "$PASSWORD" } +sedesc() +{ + echo "$1" | sed 's|[/&"]|\\&|g' | \ + sed ':a;N;$!ba;s|\n|\\n|g;s|'$(echo -en "\r")'||g' +} + plugin_call_method() { local status @@ -69,13 +76,16 @@ . $i eval $name "$@" [ $? == 0 ] && status=true - done + done 2> /tmp/tazwiki$$stderr + [ -s /tmp/tazwiki$$stderr ] && + logger -t "httpd/wiki/plugin" < /tmp/tazwiki$$stderr + rm -f /tmp/tazwiki$$stderr 2> /dev/null $status } curdate() { - date '+%Y/%m/%d %H:%M' + date '+%Y-%m-%d %H:%M' } filedate() @@ -108,18 +118,20 @@ # Ecrire les modifications, s'il y a lieu PAGE_txt="$PAGES_DIR$PAGE_TITLE.txt" +plugin_call_method "init" $PAGE_txt if [ -n "$content" ]; then # content => page if authentified; then - sed 's/ $PAGE_txt < $PAGE_txt <> $complete_dir_s$(curdate).bak <> "$complete_dir_s$(curdate).bak" <|' \ - -e 's|-\(.*\)$|\1|' \ - -e 's|+\(.*\)$|\1|' + -e 's|^-\(.*\)$|\1|' \ + -e 's|^+\(.*\)$|\1|' } # Actions speciales du Wiki case "$action" in edit) editable=false - HISTORY="$HISTORY_BUTTON
" + HISTORY="$HISTORY_BUTTON
" + CONTENT="$(sed 's/%/\%/g' <