wok rev 4503

slitaz-loram*: extract by default
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 22 12:40:18 2009 +0100 (2009-11-22)
parents 774563c05eba
children aa65a927a2f3
files slitaz-loram-cdrom/receipt slitaz-loram-http/receipt slitaz-loram/receipt
line diff
     1.1 --- a/slitaz-loram-cdrom/receipt	Fri Nov 20 15:41:08 2009 +0000
     1.2 +++ b/slitaz-loram-cdrom/receipt	Sun Nov 22 12:40:18 2009 +0100
     1.3 @@ -44,7 +44,7 @@
     1.4  $i {
     1.5  $i	FREEMEM=\$(free | awk '{ n = \$NF } END { print n }')	
     1.6  $i	if [ \$FREEMEM -gt \$(du -s \$FS | awk '{ print \$1+40000 }') ]; then
     1.7 -$i		if grep -q " extract-loram" /proc/cmdline &&
     1.8 +$i		if ! grep -q " keep-loram" /proc/cmdline &&
     1.9  $i		    [ -d \$FS -o \$FREEMEM -gt \$(du -s \$FS | \\
    1.10  $i			awk '{ print (\$1*4)+40000 }') ]; then
    1.11  $i			echo -n "Extracting loram..."
    1.12 @@ -170,6 +170,11 @@
    1.13  post_install()
    1.14  {
    1.15      set_patch "$1"
    1.16 +    cat <<EOF
    1.17 +----
    1.18 +'tazlito gen-distro' will create a loram-cdrom flavor
    1.19 +while this package is installed.
    1.20 +EOF
    1.21      if [ ! -x $1/bin/funionfs -a ! -d $1/var/lib/tazpkg/installed/aufs ]; then
    1.22          cat <<EOF
    1.23  ----
    1.24 @@ -188,4 +193,8 @@
    1.25  pre_remove()
    1.26  {
    1.27      set_patch '' -R 
    1.28 +    cat <<EOF
    1.29 +----
    1.30 +'tazlito gen-distro' will work as expected now.
    1.31 +EOF
    1.32  }
     2.1 --- a/slitaz-loram-http/receipt	Fri Nov 20 15:41:08 2009 +0000
     2.2 +++ b/slitaz-loram-http/receipt	Sun Nov 22 12:40:18 2009 +0100
     2.3 @@ -45,7 +45,7 @@
     2.4  $i	FREEMEM=\$(free | awk '{ n = \$NF } END { print n }')	
     2.5  $i	if [ \$FREEMEM -gt \$(du -s \$FS | awk '{ print \$1+40000 }') ]; then
     2.6  $i		status
     2.7 -$i		if grep -q " extract-loram" /proc/cmdline &&
     2.8 +$i		if ! grep -q " keep-loram" /proc/cmdline &&
     2.9  $i		    [ -d \$FS -o \$FREEMEM -gt \$(du -s \$FS | \\
    2.10  $i			awk '{ print (\$1*4)+40000 }') ]; then
    2.11  $i			echo -n "Extracting loram..."
    2.12 @@ -130,6 +130,11 @@
    2.13  post_install()
    2.14  {
    2.15      set_patch "$1"
    2.16 +    cat <<EOF
    2.17 +----
    2.18 +'tazlito gen-distro' will create a loram-http flavor 
    2.19 +while this package is installed.
    2.20 +EOF
    2.21      if [ ! -x $1/bin/funionfs ]; then
    2.22          cat <<EOF
    2.23  ----
    2.24 @@ -146,4 +151,8 @@
    2.25  pre_remove()
    2.26  {
    2.27      set_patch '' -R 
    2.28 +    cat <<EOF
    2.29 +----
    2.30 +'tazlito gen-distro' will work as expected now.
    2.31 +EOF
    2.32  }
     3.1 --- a/slitaz-loram/receipt	Fri Nov 20 15:41:08 2009 +0000
     3.2 +++ b/slitaz-loram/receipt	Sun Nov 22 12:40:18 2009 +0100
     3.3 @@ -50,7 +50,7 @@
     3.4  $i		echo -n "only... "
     3.5  $i	fi
     3.6  $i	FREEMEM=\$(free | awk '{ n = \$NF } END { print n }')
     3.7 -$i	if grep -q " extract-loram" /proc/cmdline && [ \$FREEMEM -gt \\
     3.8 +$i	if ! grep -q " keep-loram" /proc/cmdline && [ \$FREEMEM -gt \\
     3.9  $i	\$(du -s \$FS | awk '{ print (\$1*4)+40000 }') ]; then
    3.10  $i		echo -n "Extracting loram..."
    3.11  $i		. /etc/tazlito/loram.extract
    3.12 @@ -95,6 +95,10 @@
    3.13  post_install()
    3.14  {
    3.15      set_patch "$1"
    3.16 +    cat <<EOF
    3.17 +----
    3.18 +'tazlito gen-distro' will create a loram flavor while this package is installed.
    3.19 +EOF
    3.20      if [ ! -x $1/bin/funionfs -a ! -d $1/var/lib/tazpkg/installed/aufs ]; then
    3.21          cat <<EOF
    3.22  ----
    3.23 @@ -113,4 +117,8 @@
    3.24  pre_remove()
    3.25  {
    3.26      set_patch '' -R
    3.27 +    cat <<EOF
    3.28 +----
    3.29 +'tazlito gen-distro' will work as expected now.
    3.30 +EOF
    3.31  }