# HG changeset patch # User Aleksej Bobylev # Date 1457569436 -7200 # Node ID 77be6b57303b3216ef75062df60c864bb286c435 # Parent 3b127f92c05745c8c367e56f99d182716e054b93 Up: ntpclient(2015_365); change output of some post_install() diff -r 3b127f92c057 -r 77be6b57303b krb5/receipt --- a/krb5/receipt Wed Mar 09 19:55:45 2016 +0200 +++ b/krb5/receipt Thu Mar 10 02:23:56 2016 +0200 @@ -54,9 +54,9 @@ # Pre and post install commands for Tazpkg. post_install() { - cat < /dev/null | grep -q '/usr/bin/ntpclient -s -h' || - crontab - -u root << EOT -$(crontab -l 2> /dev/null) + [ -n "$1" -o -n "$quiet" ] && return + echo -en '\nDo you want to run ntpclient in automatic mode (y/N): ' + read -t 30 anser + if [ "$anser" == 'y' ]; then + srv='fr.pool.ntp.org' + action 'Setting up crontab for ntpclient...' + crontab -l 2>/dev/null | grep -q '/usr/bin/ntpclient -s -h' || + crontab - -u root </dev/null) 0 0 * * * /usr/bin/ntpclient -s -h $srv EOT - status - else - echo "Don't forget to run ntpclient -s -h " - fi + else + echo "Don't forget to run ntpclient -s -h " + fi } - diff -r 3b127f92c057 -r 77be6b57303b pcmciautils/receipt --- a/pcmciautils/receipt Wed Mar 09 19:55:45 2016 +0200 +++ b/pcmciautils/receipt Thu Mar 10 02:23:56 2016 +0200 @@ -40,5 +40,7 @@ post_install() { + echo tazpkg reconfigure udev --root="$1" + echo } diff -r 3b127f92c057 -r 77be6b57303b slitaz-configs-base/receipt --- a/slitaz-configs-base/receipt Wed Mar 09 19:55:45 2016 +0200 +++ b/slitaz-configs-base/receipt Thu Mar 10 02:23:56 2016 +0200 @@ -57,7 +57,7 @@ post_install() { - echo; echo -n "Updating ~/.xinitrc" + [ -z "$quiet" ] && echo -en "\nUpdating ~/.xinitrc" for i in $(ls -d "$1/root" "$1"/home/* 2> /dev/null); do [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i" done diff -r 3b127f92c057 -r 77be6b57303b tazwikiss/receipt --- a/tazwikiss/receipt Wed Mar 09 19:55:45 2016 +0200 +++ b/tazwikiss/receipt Thu Mar 10 02:23:56 2016 +0200 @@ -17,7 +17,7 @@ # Rules to configure and make the package. compile_rules() { - mkdir -p $DESTDIR 2> /dev/null + mkdir -p $DESTDIR 2>/dev/null cp -a $src/$PACKAGE/rootfs/* $DESTDIR } @@ -93,6 +93,7 @@ grep -q ' httpd ' "$1/etc/rcS.conf" || sed -i 's/ slim"/ httpd slim"/' "$1/etc/rcS.conf" if [ -z "$1" ]; then + echo # Start Web server. /etc/init.d/httpd stop /etc/init.d/httpd start @@ -100,7 +101,7 @@ fi while read line; do [ -x "$1/$line" ] && continue - echo "WARNING: $line not found, $PACKAGE will not work !" + echo "WARNING: $line not found, $PACKAGE will not work!" done <