#!/bin/sh
-# Filename: /usr/share/grml-live/buildd/cleanup.sh
+# Filename: cleanup.sh
# Purpose: clean up daily builds directory - remove old files
# 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: YDATE [mika]
+# Latest change: Sun Dec 09 18:02:43 CET 2007 [mika]
################################################################################
set -e
. /etc/grml/grml-buildd.conf
-[ -n "$RECIPIENT" ] || RECIPIENT=root@localhost
-
[ -n "$MIRROR_DIRECTORY" ] || exit 1
cd $MIRROR_DIRECTORY || exit 2
# we want to always keep a few images, no matter how old they are
# but get rid of the oldest ones first of course :)
-# so: how many images do we want to keep?
+# so: how many images do we want to keep? DAYS=3 usually means 'keep 4 images'
DAYS=3
REMOVE_ME=""
for flavour in grml-small_etch grml-small_sid grml-medium_etch grml-medium_sid grml_sid grml_etch \
grml64-small_etch grml64-small_sid grml64-medium_etch grml64-medium_sid grml64_sid grml64_etch ; do
- FILE_COUNT=$(ls -1 $flavour*.iso | wc -l)
+ FILE_COUNT=$(ls -1 $flavour/$flavour*.iso | wc -l)
if [ "$FILE_COUNT" -gt "$DAYS" ] ; then
- FILES=$(ls -1 $flavour*.iso | tail -"$DAYS")
- OLD_FILES=$(ls $flavour*.iso | grep -v "$FILES")
+ FILES=$(ls -1 $flavour/$flavour*.iso | tail -"$DAYS")
+ OLD_FILES=$(ls $flavour/$flavour*.iso | grep -v "$FILES")
for file in $OLD_FILES ; do
REMOVE_ME="$REMOVE_ME $(find $file -mtime +$DAYS)"
done
fi
done
-[ -d .delete ] || mkdir .delete
+[ -d .archive ] || mkdir .archive
-# move them before we really delete them:
for file in $REMOVE_ME ; do
+ # remove ISOs:
test -f ${file} && rm -f $file
- test -f ${file}.md5 && mv ${file}.md5 .delete
+ # ... but keep their md5sum:
+ test -f ${file}.md5 && mv ${file}.md5 .archive
done
# inform on successful removal:
if [ "$(echo "$REMOVE_ME" | tr -d ' ' )" != "" ] ; then
- echo "deleted files $REMOVE_ME" | mail -s "daily-builds cleanup script" $RECIPIENT
+ echo "deleted files $REMOVE_ME" | mail -s "daily-builds cleanup script" mika@grml.org
fi
## END OF FILE #################################################################
--- /dev/null
+/* This stylesheet was created by Michael Prokop for grml.org */
+/* Design was inspired by TeZeuZ: */
+/* http://www.oswd.org/user/profile/id/6272 */
+/* http://alumnos.elo.utfsm.cl/~osrehe - thx! */
+
+@media all {
+ html {background-color: #FFDA62;}
+ abbr[title] {border-bottom: 0px}
+ a {color:#C70036; text-decoration: underline}
+ acronym[title] {border-bottom: 1px dashed #000}
+ a.current {color:#999999}
+ a:hover {text-decoration: underline}
+ a.plain {text-decoration: none}
+ a.plain:hover {text-decoration: underline}
+ a.smalllink {font-size: 80%}
+ body {font-family: verdana, tahoma, helvetica, arial, sans-serif; font-size: 100%; background-color:#FFDA62; margin: 1em}
+ cite {font-size: 80%}
+ div.container {width: 90%; height: auto; text-align: left; background-color:#FFFFFF; border-style:solid; border-width:1px; border-color:#CFB8B8; margin: 0px auto 0px auto}
+ div.content {background-color:#FFFFFF; padding: 0.5em 0.5em 0.5em 0.5em; border-style:solid; border-width:1px; border-color:#F0F0F0; margin: 0.5em 0.5em 0.5em 0.5em}
+ div.content h3 a {color:#996666}
+ div.copyright {line-height: 3em; text-align:center; font-size:50%; background-color: #F8F8F8; color: #999999}
+ div.menu h3 a{color:#996666}
+ div.menu h3{font-size:70%; border-top-style:solid; border-top-width:1px; border-top-color:#E5E5E5; margin-bottom: -1em; border-bottom-width:0px}
+ div.menu {width: 10em; float: left; clear: left; background-color:#FFFFFF; padding: 0.5em 0.5em 0.5em 0.5em; border-style:solid; border-width:1px; border-color:#E5E5E5; margin: 0.5em 0.5em 0em 0.3em}
+ div.news a {font-weight:bold}
+ div.news {background-color:#FFFFFF; padding: 0em 0.5em 0.5em 0.5em; border-style:solid; border-width:1px; border-color:#E5E5E5; margin: 0em 0.5em 0.5em 12.2em}
+ div.news h3 a {color:#996666}
+ div.sub_links a {color: #FFFFFF}
+ div.sub_links {margin-top:0.5em; text-align:center; color: #FFFFFF; font-size:55%; clear: both; background-color:#8B8D7B}
+ h1 {color:#9C6562 ; font-size:110%; font-weight:bold}
+ /*h2 {color:#CC3300; font-size:90%; font-weight:bold}
+ h3 {color:#996666; font-size:70%; font-weight:bold; padding-bottom:0.3em; border-bottom-style:solid; border-bottom-width:1px; border-bottom-color:#CFB8B8;*/
+ h2 {color:#00309C; font-size:100%; font-weight:bold}
+ h3 {color:#996666; font-size:90%; font-weight:bold; padding-bottom:0.3em; border-bottom-style:solid; border-bottom-width:1px; border-bottom-color:#CFB8B8;
+ margin-bottom:0em}
+ h4 {color:#7F7F7F; font-size:80%; font-weight:bold}
+ p {text-align:justify; color:#666666; font-size: 70%; line-height: 1.5em}
+ ul {color:#666666; font-size:70%}
+ #texbox {}
+ .toc {font-size:70%}
+ ol {font-size:70%}
+/*div.search {
+ width: 10em;
+ float: left;
+ clear: left;
+ background-color:#FFFFFF;
+ padding: 0.5em 0.5em 0.5em 0.5em;
+ border-style:solid; border-width:1px; border-color:#E5E5E5;
+ margin: 0.5em 0.5em 0.3em 0.3em;
+}
+div.search h3{font-size:70%; border-bottom-width:0px}
+.searchbox {font-size:70%; color:#666666; border-style:solid; border-width:1px; border-color:#E5E5E5; margin-bottom:0.5em}
+div.copyright a {color: #AAA}
+ ul {font-size:70%; color:#666666; line-height: 1.5em; list-style: none}
+ .tablenoprint {display: none}
+ .nav {display: none}
+*/
+}
+
+@media screen {
+ .active {background-color: #FFCC33}
+ .rahmen {background-color: #FEDB64; font-size: 90%; padding: 5px; border: 1px dotted black}
+ abbr[title], acronym[title] {cursor: help}
+}
+
+@media print {
+ body {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
+ .rahmen {padding: 5px; border: 1px dotted black}
+}
--- /dev/null
+<html>
+<head>
+<title>grml: daily grml snapshots / builds</title>
+<link rel="stylesheet" href=".style.css" type="text/css" />
+</head>
+
+<body>
+
+<div class="container">
+<div class="content">
+
+<h1>Daily grml snapshots</h1>
+
+<img src=".logo.png" style="float: right; margin-left: 20px" alt="*" />
+
+<h2>About</h2>
+
+<p>This directory contains automatically generated snapshots of the <a
+href="http://grml.org/">grml Linux Live-CD</a> which were build using <a
+href="http://grml.org/grml-live/">grml-live</a>.</p>
+
+<p>Feel free to use the ISOs but please notice that they are neither official <a
+href="http://grml.org/beta-tester/">devel releases</a> nor <a
+href="http://grml.org/download/">stable releases</a> - so: <strong>PLEASE
+USE THEM WITH CAUTION!</strong></p>
+
+<p>Please <a href="http://grml.org/bugs/">report any bugs you notice</a>!
+Thanks for helping us improve grml!</p>
+
+<p><em>Notice: if the md5sum (.md5) of a file is missing please do not download
+the ISO yet as there might be problems with the ISO.</em></p>
+
+<h2>Explanation of directory-/filenames</h2>
+
+<ul>
+ <li>grml_etch: normal, 32bit version based on Debian/etch (stable)
+ <li>grml_sid: normal, 32bit version based on Debian/sid (unstable)
+ <li>grml-medium_etch: medium, 32bit version based on Debian/etch (stable)
+ <li>grml-medium_sid: medium, 32bit version based on Debian/sid (unstable)
+ <li>grml-small_etch: small, 32bit version based on Debian/etch (stable)
+ <li>grml-small_sid: small, 32bit version based on Debian/sid (unstable)
+ <li>grml64_etch: normal, 64bit version based on Debian/etch (stable)
+ <li>grml64_sid: normal, 64bit version based on Debian/sid (unstable)
+ <li>grml64-medium-etch: medium, 64bit version based on Debian/etch (stable)
+ <li>grml64-medium-sid: medium, 64bit version based on Debian/sid (unstable)
+ <li>grml64-small-etch: small, 64bit version based on Debian/etch (stable)
+ <li>grml64-small-sid: small, 64bit version based on Debian/sid (unstable)
+</ul>
+
+<p>The <em>base.tgz</em> files can be used for the base chroot/debootstrap
+system. Place base.tgz as /etc/grml/fai/config/basefiles/I386.tar.gz and
+base64.tgz as /etc/grml/fai/config/basefiles/AMD64.tar.gz</p>
+
+<h2>Contact</h2>
+
+<p>Problems? Questions? <a href="http://grml.org/contact/">Contact us</a>.</p>
+
+<!--
+<h2>Important information by Sun Dec 9 13:13:59 UTC 2007</h2>
+
+<p><strong>Current ISOs are known to be broken, we are investigating on that.</strong></p>
+-->
--- /dev/null
+#!/bin/sh
+# Filename: /usr/share/grml-live/buildd/link_latest.sh
+# Purpose: create symlinks to the most recent snapshot ISOs
+# 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 18:02:45 CET 2007 [mika]
+################################################################################
+
+set -e
+
+. /etc/grml/grml-buildd.conf
+
+[ -n "$MIRROR_DIRECTORY" ] || exit 1
+cd $MIRROR_DIRECTORY || exit 2
+
+for flavour in grml-small_etch grml-small_sid grml-medium_etch grml-medium_sid grml_sid grml_etch \
+ grml64-small_etch grml64-small_sid grml64-medium_etch grml64-medium_sid grml64_sid grml64_etch ; do
+ ISO="$(ls -1 $flavour/*.iso | tail -1)"
+ if [ -n "$ISO" ] ; then
+ ln -sf $ISO $(basename ${ISO%%_[0-9]*})_latest.iso
+ ln -sf ${ISO}.md5 $(basename ${ISO%%_[0-9]*})_latest.iso.md5
+ fi
+done
+
+## END OF FILE #################################################################
Drop syslinux from Depends.
* Mention -u option if using the option by accident and the chroot
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).
+
-- Michael Prokop <mika@grml.org> Sun, 09 Dec 2007 17:28:01 +0100