[Lunar-commits] r14559 - lunar-iso/branches/lunar-iso-2.6/scripts

Jaime Buffery nestu at lunar-linux.org
Sun May 1 14:05:23 UTC 2005


Author: nestu
Date: 2005-05-01 14:05:21 +0000 (Sun, 01 May 2005)
New Revision: 14559

Modified:
   lunar-iso/branches/lunar-iso-2.6/scripts/etc
Log:
if there is a zlocal tarball at ${ISO_SOURCE}/template/zlocal.tar.bz2,
unpack it and make sure, ZLOCAL_OVERRIDES is set


Modified: lunar-iso/branches/lunar-iso-2.6/scripts/etc
===================================================================
--- lunar-iso/branches/lunar-iso-2.6/scripts/etc	2005-05-01 13:48:51 UTC (rev 14558)
+++ lunar-iso/branches/lunar-iso-2.6/scripts/etc	2005-05-01 14:05:21 UTC (rev 14559)
@@ -32,6 +32,24 @@
   echo "+ installing depends.cache"
   chroot $ISO_TARGET /sbin/lsh create_depends_cache
 )
+
+(
+  ZLOCAL_SOURCE=${ISO_SOURCE}/template/zlocal.tar.bz2
+  ZLOCAL_TARGET=${ISO_TARGET}/var/lib/lunar/moonbase/
+  LUNAR_CONF_FILE=${ISO_TARGET}/etc/lunar/local/config
+
+  if [ -f "${ZLOCAL_SOURCE}" ]; then
+     echo "unpacking zlocal tarball"
+     tar xfj ${ZLOCAL_SOURCE} -C ${ZLOCAL_TARGET}
+
+     echo "making sure ZLOCAL_OVERRIDES is set"
+     if  grep -v "\#" ${LUNAR_CONF_FILE} | grep -q "ZLOCAL_OVERRIDES" ; then
+        sed -i -e 's/.*ZLOCAL_OVERRIDES=.*/ZLOCAL_OVERRIDES=on/g' ${LUNAR_CONF_FILE}    
+     else
+        echo "ZLOCAL_OVERRIDES=on" >> ${LUNAR_CONF_FILE}
+     fi
+  fi
+)
   
 # manual fixes needed before compiling:
 [ ! -e $ISO_TARGET/lib/cpp ] && ln -s /usr/bin/cpp $ISO_TARGET/lib/cpp



More information about the Lunar-commits mailing list