. /etc/grml/grml-buildd.conf || die "Could not source /etc/grml/grml-buildd.conf. Exiting."
-which mutt >/dev/null 2>&1 || die "mutt binary not found. Exiting."
+which nail >/dev/null 2>&1 || die "nail binary not found. Exiting."
# exit if important variables aren't set:
[ -n "$STORAGE" ] || die "\$STORAGE is not set. Exiting."
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
DATE=$(date +'%Y%m%d_%H%M%S')
TMP_DIR="$(mktemp -d)"
-MUTT_HEADERS="$(mktemp)"
[ -n "$TMP_DIR" ] || die "Could not create \$TMP_DIR. Exiting."
-[ -n "$MUTT_HEADERS" ] || die "Could not create $\MUTT_HEADERS. Exiting."
# make sure we have same safe defaults:
[ -n "$OUTPUT_DIR" ] || OUTPUT_DIR="${STORAGE}/grml-live_${DATE}.$$"
[ -n "$FAI_LOGFILES" ] || FAI_LOGFILES=/var/log/fai/grml/last
-echo "my_hdr From: grml-live autobuild daemon <$FROM>" > $MUTT_HEADERS
-
# execute grml-live:
grml_live_run() {
if ! [ "$FORCE_REBUILD" = "1" ] ; then
send_mail() {
# create logs if using 'send_mail -e'
[ "$1" = "-e" ] && create_logs
- # attach logs only if we have some:
- [ -r "$ATTACHMENT" ] && MUTT_ATTACH="-a $ATTACHMENT" || MUTT_ATTACH=''
echo -en "Automatically generated mail by $SCRIPTNAME
See attached files:
/var/log/grml-buildd.stderr /var/log/grml-buildd.stdout $ATTACHMENT
-EOF " | \
- mutt -s "$SCRIPTNAME [${DATE}] - $RC_INFO" -a /var/log/grml-buildd.stderr $MUTT_ATTACH "$RECIPIENT"
+EOF" | \
+ nail -r "grml-live autobuild daemon <$FROM>" -s "$SCRIPTNAME [${DATE}] - $RC_INFO" -a /var/log/grml-buildd.stderr $ATTACHMENT "$RECIPIENT"
}
# make sure we store the final iso:
# allow clean exit:
bailout() {
if [ "$RC" = "0" ] ; then
- rm -rf "$TMP_DIR" "$MUTT_HEADERS" "$OUTPUT_DIR"
+ rm -rf "$TMP_DIR" "$OUTPUT_DIR"
else
- rm -f "$MUTT_HEADERS"
echo "building ISO failed, keeping build files [${OUTPUT_DIR} / ${TMP_DIR}]">&2
fi
# do you want to force rebuild of already present ISOs?
# Set it to '1' to force rebuild, otherwise use '0'.
-FORCE_REBUILD=0
+#FORCE_REBUILD=1
# what do you want to use for "From:" in notification mails?
# default: root@localhost
+grml-live (0.9.35) UNRELEASED; urgency=low
+
+ * No entries yet, will be added when releasing via git-dch.
+
+ -- Michael Prokop <mika@grml.org> Sun, 31 Jan 2010 11:23:03 +0100
+
grml-live (0.9.34) unstable; urgency=low
* Add scripts/GRMLBASE/38-udev to get rid of automatically generated
information about grml-live builds in a sqlite3 database.
More details are available in the provided grml-live-db manpage
and /usr/share/doc/grml-live-db/grml-live-db.html
+
+Package: grml-live-buildd
+Architecture: all
+Depends: ${misc:Depends}, grml-live, nail
+Description: autobuild daemon for grml-live
+ This package provides example scripts for a simple autobuild
+ daemon for the grml-live framework. Those scripts are used
+ for creating the official daily grml ISOs provided through
+ http://daily.grml.org/
--- /dev/null
+usr/share/grml-live/buildd
--- /dev/null
+buildd/grml-buildd.conf etc/grml/
+buildd/*.sh usr/share/grml-live/buildd/
usr/sbin
usr/share/doc/grml-live
usr/share/grml-live
-usr/share/grml-live/buildd usr/sbin
-buildd/grml-buildd.conf etc/grml/
-buildd/*.sh usr/share/grml-live/buildd/
docs/grml-live.8 usr/share/man/man8/
docs/grml-live-remaster.8 usr/share/man/man8/
etc/grml etc
--- /dev/null
+grml-live-buildd: unknown-section grml
dh_md5sums -p$@ -P$(b)/$@
dh_builddeb -p$@ -P$(b)/$@
+grml-live-buildd: install
+ @echo "--- Building: $@"
+ dh_installdirs -p$@ -P$(b)/$@
+ dh_link -p$@ -P$(b)/$@
+ dh_installdocs -p$@ -P$(b)/$@
+ dh_installchangelogs -p$@ -P$(b)/$@
+ dh_install -p$@ -P$(b)/$@
+ dh_strip -p$@ -P$(b)/$@
+ dh_compress -p$@ -P$(b)/$@
+ mkdir -p $(b)/$(@)/usr/share/lintian/overrides/
+ cp -av debian/overrides.$(@) $(b)/$(@)/usr/share/lintian/overrides/$(@)
+ dh_fixperms -p$@ -P$(b)/$@
+ dh_makeshlibs -p$@ -P$(b)/$@ -V
+ dh_installdeb -p$@ -P$(b)/$@
+ dh_shlibdeps -p$@ -P$(b)/$@
+ dh_installdebconf -p$@ -P$(b)/$@
+ dh_gencontrol -p$@ -P$(b)/$@
+ dh_md5sums -p$@ -P$(b)/$@
+ dh_builddeb -p$@ -P$(b)/$@
+
# Build architecture-dependent files here.
binary-all: build install
# Build architecture-independent files here.
-binary-indep: build install grml-live grml-live-addons grml-live-db
+binary-indep: build install grml-live grml-live-addons grml-live-db grml-live-buildd
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
set -e
# global variables
-GRML_LIVE_VERSION='0.9.34'
+GRML_LIVE_VERSION='0.9.35-pre1'
PN="$(basename $0)"
CMDLINE="$0 $@"
SOURCES_LIST_FILE='/etc/grml/fai/apt/sources.list'