Do not install package 'grml' via GRMLBASE; generate md5sum of ISO; update buildd/
authorMichael Prokop <devnull@localhost>
Sun, 9 Dec 2007 17:41:49 +0000 (18:41 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 9 Dec 2007 17:41:49 +0000 (18:41 +0100)
17 files changed:
buildd/functions.sh
buildd/grml-live_autobuild_grml-large_etch.sh
buildd/grml-live_autobuild_grml-large_sid.sh
buildd/grml-live_autobuild_grml-medium_etch.sh
buildd/grml-live_autobuild_grml-medium_sid.sh
buildd/grml-live_autobuild_grml-small_etch.sh
buildd/grml-live_autobuild_grml-small_sid.sh
buildd/grml-live_autobuild_grml64-large_etch.sh
buildd/grml-live_autobuild_grml64-large_sid.sh
buildd/grml-live_autobuild_grml64-medium_etch.sh
buildd/grml-live_autobuild_grml64-medium_sid.sh
buildd/grml-live_autobuild_grml64-small_etch.sh
buildd/grml-live_autobuild_grml64-small_sid.sh
buildd/upload_isos.sh
debian/changelog
etc/grml/fai/config/package_config/GRMLBASE
grml-live

index 7b979bc..08d2661 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Die Okt 30 09:47:34 CET 2007 [mika]
+# Latest change: Sun Dec 09 18:38:26 CET 2007 [mika]
 ################################################################################
 
 die() {
@@ -75,6 +75,14 @@ create_logs() {
   ( cd / && tar zcf $ATTACHMENT $FAI_LOGFILES $GRML_LOGFILE 1>/dev/null )
 }
 
+# store logs on remote server:
+upload_logs() {
+  [ -n "$RSYNC_MIRROR" ] || return 1
+#  eval $(grep '^LOGDIR=' $FAI_LOGFILES/variables.log)
+  rsync --times --partial -az --quiet /var/log/grml-buildd.* \
+  $FAI_LOGFILES $GRML_LOGFILE $RSYNC_MIRROR/logs/"${NAME}_${DATE}"/
+}
+
 # store information of ISO size:
 iso_details() {
   if ! [ -f "$OUTPUT_DIR/grml_isos/$ISO_NAME" ] ; then
@@ -86,6 +94,9 @@ iso_details() {
 
 # send status mail:
 send_mail() {
+  # attach logs only if we have some:
+  [ -r "$ATTACHMENT" ] && MUTT_ATTACH="-a $ATTACHMENT" || MUTT_ATTACH=''
+
   echo -en "Automatically generated mail by $SCRIPTNAME
 
 $ISO_DETAILS
@@ -110,10 +121,8 @@ The following packages could not be installed:
 
 $(grep -i "Couldn't find.*package" $FAI_LOGFILES/software.log | sed 's/\(.*\)"\(.*\)"\(.*\)/\2/' | sort -u || echo "* nothing")
 
-Find details in the attached logs." | \
-  mutt -s "$SCRIPTNAME [${DATE}] - $RC_INFO" \
-       -a $ATTACHMENT \
-       $RECIPIENT
+EOF " | \
+  mutt -s "$SCRIPTNAME [${DATE}] - $RC_INFO" $MUTT_ATTACH "$RECIPIENT"
 }
 
 # make sure we store the final iso:
index bf81709..f4b7362 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=i386
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 94863d0..67a6de0 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=i386
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 772816e..8db8a7e 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=i386
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 27bff66..aaf2eed 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=i386
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 5d967f2..a727c51 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=i386
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 08783fc..5609a5e 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=i386
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 98c185d..30d961b 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=amd64
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 5467a29..c5cf4a2 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=amd64
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 0844239..7a42a72 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=amd64
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 9edb820..5335901 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=amd64
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 3c87def..1c5def9 100755 (executable)
@@ -15,6 +15,7 @@ ARCH=amd64
 grml_live_run
 
 create_logs
+# upload_logs
 
 iso_details
 
index 25d3453..8b5462d 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Mon Oct 22 19:50:36 CEST 2007 [mika]
+# Latest change: Sun Dec 09 18:10:08 CET 2007 [mika]
 ################################################################################
 
 . /etc/grml/grml-buildd.conf || exit 1
@@ -19,6 +19,7 @@ for file in *.iso ; do
     chmod 664 "$file"
     chmod 664 "${file}".md5
 done
-rsync --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR
+
+rsync --times --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR
 
 ## END OF FILE #################################################################
index b78f5b6..e915013 100644 (file)
@@ -9,8 +9,11 @@ grml-live (0.0.12) unstable; urgency=low
     does not exist yet.
   * Update buildd/cleanup.sh and add buildd/files/.logo.png, 
     buildd/files/.style.css, buildd/files/HEADER.html and
-    buildd/link_latest.sh (create symlinks for latest snapshot ISOs).
-
+    buildd/link_latest.sh (create symlinks for latest snapshot ISOs)
+    and provide upload_logs().
+  * Generate md5sum of ISO if using class 'RELEASE'.
+  * Do not install package 'grml' via GRMLBASE because we want
+    to use grml-small in GRML_SMALL and GRML_MEDIUM.
 
  -- Michael Prokop <mika@grml.org>  Sun, 09 Dec 2007 17:28:01 +0100
 
index ecce0d5..62b923c 100644 (file)
@@ -11,7 +11,6 @@ debconf-utils
 deborphan
 eject
 file
-grml
 grml2hd
 grml2hd-utils
 grml2usb
index 9692c97..d402757 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Dec 09 17:53:23 CET 2007 [mika]
+# Latest change: Sun Dec 09 18:18:27 CET 2007 [mika]
 ################################################################################
 
 # read configuration files, set some misc variables {{{
@@ -563,14 +563,27 @@ if [ -f "${ISO_OUTPUT}/${ISO_NAME}" -a -z "$UPDATE" ] ; then
    ewarn "$ISO_OUTPUT exists already, skipping stage 'iso build'" ; eend 0
 else
    mkdir -p "$ISO_OUTPUT" || bailout 6 "Problem with creating $ISO_OUTPUT for stage 'iso build'"
+
    CURRENT_DIR=$(pwd)
-   cd "$BUILD_OUTPUT" &&
-   log "mkisofs -V grml '$VERSION' -publisher 'grml-live | grml.org' -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b $BOOT_FILE -o ${ISO_OUTPUT}/${ISO_NAME} ."
-   mkisofs -V "grml $VERSION" -publisher 'grml-live | grml.org' \
-           -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table    \
-           -b $BOOT_FILE \
-           -o "${ISO_OUTPUT}/${ISO_NAME}" . ; RC=$?
-   cd $CURRENT_DIR
+   if cd "$BUILD_OUTPUT" ; then
+      log "mkisofs -V grml '$VERSION' -publisher 'grml-live | grml.org' -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b $BOOT_FILE -o ${ISO_OUTPUT}/${ISO_NAME} ."
+      mkisofs -V "grml $VERSION" -publisher 'grml-live | grml.org' \
+              -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table    \
+              -b $BOOT_FILE \
+              -o "${ISO_OUTPUT}/${ISO_NAME}" . ; RC=$?
+
+      # generate md5sum of ISO if we are using class 'RELEASE':
+      case $CLASSES in *RELEASES*)
+         [ "$RC" = 0 ] && \
+         ( cd $ISO_OUTPUT && \
+         md5sum ${ISO_NAME} > ${ISO_NAME}.md5 && \
+         touch -r ${ISO_NAME} ${ISO_NAME}.md5 )
+         ;;
+      esac
+
+      cd $CURRENT_DIR
+   fi
+
    if [ "$RC" = 0 ] ; then
       log "Finished execution of stage 'iso build' [$(date)]"
       einfo "Finished execution of stage 'iso build'" ; eend 0