[Debian-live-changes] r1413 - in configs/daniel: . config
config/chroot_localhooks config/chroot_localincludes
config/chroot_localincludes/etc config/chroot_localincludes/etc/X11
config/chroot_localincludes/etc/X11/wmii
config/chroot_localincludes/usr
config/chroot_localincludes/usr/local
config/chroot_localincludes/usr/local/bin
config/chroot_localpackageslists config/chroot_sources
Daniel Baumann
daniel at alioth.debian.org
Wed May 9 07:11:47 UTC 2007
Author: daniel
Date: 2007-05-09 07:11:45 +0000 (Wed, 09 May 2007)
New Revision: 1413
Added:
configs/daniel/config/
configs/daniel/config/binary
configs/daniel/config/binary_grub/
configs/daniel/config/binary_localincludes/
configs/daniel/config/binary_syslinux/
configs/daniel/config/bootstrap
configs/daniel/config/chroot
configs/daniel/config/chroot_localhooks/
configs/daniel/config/chroot_localhooks/bash
configs/daniel/config/chroot_localhooks/readline
configs/daniel/config/chroot_localhooks/vim
configs/daniel/config/chroot_localhooks/wmii
configs/daniel/config/chroot_localhooks/xterm
configs/daniel/config/chroot_localincludes/
configs/daniel/config/chroot_localincludes/etc/
configs/daniel/config/chroot_localincludes/etc/X11/
configs/daniel/config/chroot_localincludes/etc/X11/wmii/
configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt
configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot
configs/daniel/config/chroot_localincludes/etc/X11/wmii/status
configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk
configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem
configs/daniel/config/chroot_localincludes/etc/X11/wmii/wallpaper
configs/daniel/config/chroot_localincludes/usr/
configs/daniel/config/chroot_localincludes/usr/local/
configs/daniel/config/chroot_localincludes/usr/local/bin/
configs/daniel/config/chroot_localincludes/usr/local/bin/build
configs/daniel/config/chroot_localincludes/usr/local/bin/cdebootstraps
configs/daniel/config/chroot_localincludes/usr/local/bin/chmods
configs/daniel/config/chroot_localincludes/usr/local/bin/chowns
configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs
configs/daniel/config/chroot_localincludes/usr/local/bin/dgets
configs/daniel/config/chroot_localincludes/usr/local/bin/diffs
configs/daniel/config/chroot_localincludes/usr/local/bin/diffs_debian
configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackage
configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackages
configs/daniel/config/chroot_localincludes/usr/local/bin/dputs
configs/daniel/config/chroot_localincludes/usr/local/bin/halt
configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums
configs/daniel/config/chroot_localincludes/usr/local/bin/prepare
configs/daniel/config/chroot_localincludes/usr/local/bin/pss
configs/daniel/config/chroot_localincludes/usr/local/bin/reboot
configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk
configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem
configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime
configs/daniel/config/chroot_localincludes/usr/local/bin/vis
configs/daniel/config/chroot_localpackages/
configs/daniel/config/chroot_localpackageslists/
configs/daniel/config/chroot_localpackageslists/daniel
configs/daniel/config/chroot_sources/
configs/daniel/config/chroot_sources/live-snapshot.binary
configs/daniel/config/chroot_sources/live-snapshot.bootstrap
configs/daniel/config/common
configs/daniel/config/source
Log:
Added: configs/daniel/config/binary
===================================================================
--- configs/daniel/config/binary 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/binary 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,57 @@
+# config/chroot: configuration for lh_binary_*
+
+# $LIVE_BOOTAPPEND: set boot parameters
+# (Default: empty)
+LIVE_BOOTAPPEND=""
+
+# $LIVE_ENCRYPTION: set encrytion
+# (Default: empty)
+LIVE_ENCRYPTION=""
+
+# $LIVE_USERNAME: set username
+# (Default: user)
+LIVE_USERNAME="user"
+
+# $LIVE_HOSTNAME: set hostname
+# (Default: debian)
+LIVE_HOSTNAME="debian"
+
+# $LIVE_FILESYSTEM: set filesystem
+# (Default: squashfs)
+LIVE_FILESYSTEM="squashfs"
+
+# $LIVE_MEMTEST: set memtest
+# (Default: memtest86+)
+LIVE_MEMTEST="memtest86+"
+
+# $LIVE_DEBIAN_INSTALLER: set debian-installer
+# (Default: disabled)
+LIVE_DEBIAN_INSTALLER="disabled"
+
+# $LIVE_ISO_VOLUME: set iso volume
+# (Default: Debian Live `date +%Y%m%d`)
+LIVE_ISO_VOLUME="Debian Live `date +%Y%m%d`"
+
+# $LIVE_SERVER_ADDRESS: set the netboot server address
+# (Default: 192.168.1.1)
+LIVE_SERVER_ADDRESS="192.168.1.1"
+
+# $LIVE_SERVER_PATH: set the netboot server directory
+# (Default: /srv/debian-live)
+LIVE_SERVER_PATH="/srv/debian-live"
+
+# $LIVE_BOOTLOADER: set bootloader
+# (Default: syslinux)
+LIVE_BOOTLOADER="syslinux"
+
+# $LIVE_GRUB_SPLASH: set custom grub splash
+# (Default: empty)
+LIVE_GRUB_SPLASH=""
+
+# $LIVE_SYSLINUX_SPLASH: set custom syslinux splash
+# (Default: empty)
+LIVE_SYSLINUX_SPLASH=""
+
+# $LIVE_BINARY_IMAGE: set image type
+# (Default: iso)
+LIVE_BINARY_IMAGE="usb-hdd"
Added: configs/daniel/config/bootstrap
===================================================================
--- configs/daniel/config/bootstrap 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/bootstrap 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,37 @@
+# config/bootstrap: configuration for lh_bootstrap_*
+
+# $LIVE_ARCHITECTURE: select the chroot architecture
+# (Default: autodetected)
+LIVE_ARCHITECTURE="i386"
+
+# $LIVE_DISTRIBUTION: select the distribution to use
+# (Default: etch)
+LIVE_DISTRIBUTION="etch"
+
+# $LIVE_DISTRIBUTION_CONFIG: set distribution config directory
+# (Default: empty)
+LIVE_DISTRIBUTION_CONFIG=""
+
+# $LIVE_BOOTSTRAP_FLAVOUR: select the flavour to use
+# (Default: standard)
+LIVE_BOOTSTRAP_FLAVOUR="standard"
+
+# $LIVE_MIRROR_BUILD: set the mirror to fetch packages from
+# (Default: http://ftp.debian.org/debian/)
+LIVE_MIRROR_BUILD="http://10.0.0.11/ftp.debian.org/debian/"
+
+# $LIVE_MIRROR_BUILD_SECURITY: set the security mirror to fetch packages from
+# (Default: http://security.debian.org/)
+LIVE_MIRROR_BUILD_SECURITY="http://10.0.0.11/ftp.debian.org/debian-security/"
+
+# $LIVE_MIRROR_IMAGE: set the mirror which ends up in the image
+# (Default: http://ftp.debian.org/debian/)
+LIVE_MIRROR_IMAGE="http://ftp.debian.org/debian/"
+
+# $LIVE_MIRROR_IMAGE_SECURITY: set the security mirror which ends up in the image
+# (Default: http://security.debian.org/)
+LIVE_MIRROR_IMAGE_SECURITY="http://security.debian.org/"
+
+# $LIVE_SECTIONS: select the section(s) to use
+# (Default: main)
+LIVE_SECTIONS="main contrib non-free"
Added: configs/daniel/config/chroot
===================================================================
--- configs/daniel/config/chroot 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,49 @@
+# config/chroot: configuration for lh_chroot_*
+
+# $LIVE_KERNEL_FLAVOUR: set the kernel flavour to use
+# (Default: autodetected)
+LIVE_KERNEL_FLAVOUR="686"
+
+# $LIVE_KERNEL_PACKAGES: set the kernel packages to use
+# (Default: autodetected)
+LIVE_KERNEL_PACKAGES="linux-image-2.6 squashfs-modules-2.6 unionfs-modules-2.6"
+
+# $LIVE_KEYRING_PACKAGES: set the keyring packages
+# (Default: empty)
+LIVE_KEYRING_PACKAGES=""
+
+# $LIVE_HOOKS: set hook commands
+# (Default: empty)
+LIVE_HOOKS=""
+
+# $LIVE_LANGUAGE: set the language to use
+# (Default: empty)
+LIVE_LANGUAGE=""
+
+# $LIVE_PACKAGES: set the packages to install
+# (Default: empty)
+LIVE_PACKAGES=""
+
+# $LIVE_PACKAGES_LISTS: set the package list to install
+# (Default: standard)
+LIVE_PACKAGES_LISTS="standard"
+
+# $LIVE_TASKS: set the tasks to install
+# (Default: empty)
+LIVE_TASKS=""
+
+# $LIVE_SECURITY: enable security updates
+# (Default: enabled)
+LIVE_SECURITY="enabled"
+
+# $LIVE_SYMLINKS: enable symlink convertion
+# (Default: disabled)
+LIVE_SYMLINKS="disabled"
+
+# $LIVE_SYSVINIT: enable sysvinit
+# (Default: disabled)
+LIVE_SYSVINIT="disabled"
+
+# $LIVE_INTERACTIVE: set interactive build
+# (Default: disabled)
+LIVE_INTERACTIVE="disabled"
Added: configs/daniel/config/chroot_localhooks/bash
===================================================================
--- configs/daniel/config/chroot_localhooks/bash 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localhooks/bash 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+cat >> /etc/profile << EOF
+
+if [ "\${TERM}" = "linux" ] && [ "\${SHELL}" = "/bin/bash" ]
+then
+ echo -e "\033[?6c"
+fi
+
+setterm -blength 0 -bfreq 0
+
+trap clear 0
+EOF
+
+cat >> /etc/skel/.bash_profile << EOF
+
+alias cp="cp -i"
+alias ln="ln -i"
+alias mv="mv -i"
+alias rm="rm -i"
+
+alias less="less -R"
+alias ls="ls --color"
+
+export GREP_OPTIONS="--color=auto"
+
+if [ -z "\${DISPLAY}" ] && [ "\`tty\`" = "/dev/tty1" ]
+then
+ startx
+fi
+EOF
Added: configs/daniel/config/chroot_localhooks/readline
===================================================================
--- configs/daniel/config/chroot_localhooks/readline 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localhooks/readline 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cat >> /etc/inputrc << EOF
+
+set bell-style visible
+EOF
Added: configs/daniel/config/chroot_localhooks/vim
===================================================================
--- configs/daniel/config/chroot_localhooks/vim 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localhooks/vim 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+cat >> /etc/vim/vimrc << EOF
+
+syntax on
+
+highlight WhitespaceEOL ctermbg=red guibg=red
+match WhitespaceEOL /\s\+$/
+EOF
Added: configs/daniel/config/chroot_localhooks/wmii
===================================================================
--- configs/daniel/config/chroot_localhooks/wmii 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localhooks/wmii 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+rm -f /etc/X11/wmii/welcome
+
+sed -i -e "s/^SELECTED_BG_COLOR=.*/SELECTED_BG_COLOR='#222222'/" \
+ -e "s/^SELECTED_FG_COLOR=.*/SELECTED_FG_COLOR='#ffffff'/" \
+ -e "s/^SELECTED_BORDER_COLOR=.*/SELECTED_BORDER_COLOR='#222222'/" \
+ -e "s/^NORMAL_BG_COLOR=.*/NORMAL_BG_COLOR='#000000'/" \
+ -e "s/^NORMAL_FG_COLOR=.*/NORMAL_FG_COLOR='#AAAAAA'/" \
+ -e "s/^NORMAL_BORDER_COLOR=.*/NORMAL_BORDER_COLOR='#000000'/" \
+ -e "s#wmiir write /wm/default/page/layout.*#wmiir write /wm/default/page/layout float#" \
+ -e "s/xsetroot.*//" \
+ -e "s/status &//" /etc/X11/wmii/wmiirc
+
+cat >> /etc/X11/wmii/wmiirc << EOF
+xloadimage -onroot /etc/X11/wmii/wallpaper
+#xsetroot -solid black
+xset b 0 0
+unclutter -idle 1 -root &
+
+while( ! wmiir read /wm/page/9/ )
+{
+ wmiir write /wm/ctl 'new'
+}
+wmiir write /wm/ctl 'select 1'
+
+status &
+EOF
Added: configs/daniel/config/chroot_localhooks/xterm
===================================================================
--- configs/daniel/config/chroot_localhooks/xterm 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localhooks/xterm 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+cat > /etc/X11/Xresources/xterm << EOF
+! /etc/X11/Xresources/xterm
+
+XTerm*background: black
+XTerm*cursorBlink: true
+XTerm*foreground: white
+XTerm*loginShell: true
+XTerm*scrollBar: false
+XTerm*utf8: 1
+XTerm*visualBell: true
+EOF
Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1 @@
+link ../../../usr/local/bin/halt
\ No newline at end of file
Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/halt
___________________________________________________________________
Name: svn:special
+ *
Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1 @@
+link ../../../usr/local/bin/reboot
\ No newline at end of file
Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/reboot
___________________________________________________________________
Name: svn:special
+ *
Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/status
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/status 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/status 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,45 @@
+#!/usr/lib/9base/bin/rc
+# periodically print date and load average to the bar
+
+PIDFILE=/tmp/.ixp-$USER/statuspid-$WMII_IDENT
+
+if(test -r $PIDFILE) {
+ kill -2 `{cat $PIDFILE} >[2]/dev/null
+}
+echo $pid >$PIDFILE
+
+label=`{wmiir read /bar/new}
+wmiir write /bar/$label/b1press 'wmiir write /wm/ctl ''select prev'''
+wmiir write /bar/$label/b3press 'wmiir write /wm/ctl ''select next'''
+wmiir write /bar/$label/b4press 'wmiir write /wm/ctl ''select prev'''
+wmiir write /bar/$label/b5press 'wmiir write /wm/ctl ''select next'''
+
+# install signal handler for artificial sigexit:
+fn sigint {
+ if(test -f $PIDFILE && ~ `{cat $PIDFILE} $pid)
+ rm -f $PIDFILE
+ wmiir write /bar/ctl 'destroy '^$label
+ exit
+}
+
+fn get_battery () {
+ proc_src=/proc/acpi/battery/*
+ if (test ! -d $proc_src) echo 0
+ if not {
+ awk 'BEGIN {batt=0; cap=1; rem=0;}
+ /^present:.*yes/ {batt=1}
+ /^last/ {cap=$4}
+ /^rem/ {rem=$3}
+ END{if (batt) print int(rem/cap*100)}' $proc_src/*
+ }
+}
+
+fn statustext {
+echo (`{get_battery} '|' `{/bin/date -R})
+}
+
+text=`{statustext}
+while(wmiir write /bar/$label/data $"text >[2]/dev/null) {
+ sleep 1
+ text=`{statustext}
+}
Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1 @@
+link ../../../usr/local/bin/suspend-disk
\ No newline at end of file
Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-disk
___________________________________________________________________
Name: svn:special
+ *
Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem
===================================================================
--- configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1 @@
+link ../../../usr/local/bin/suspend-mem
\ No newline at end of file
Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/suspend-mem
___________________________________________________________________
Name: svn:special
+ *
Added: configs/daniel/config/chroot_localincludes/etc/X11/wmii/wallpaper
===================================================================
(Binary files differ)
Property changes on: configs/daniel/config/chroot_localincludes/etc/X11/wmii/wallpaper
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/build
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/build 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/build 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+prepare
+dpkg-buildpackages
+cd ..
+rm -rf */
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/build
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/cdebootstraps
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/cdebootstraps 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/cdebootstraps 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,284 @@
+#!/bin/sh
+
+# cdebootstraps.sh - Wrapper for cdebootstrap(1)
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+# Static variables
+CODENAME_OLDSTABLE="sarge"
+CODENAME_OLDSTABLE_BACKPORTS="sarge"
+CODENAME_STABLE="etch"
+CODENAME_STABLE_BACKPORTS="etch"
+CODENAME_TESTING="lenny"
+CODENAME_UNSTABLE="sid"
+
+ACTION="${1}"
+DISTRIBUTION="${2}"
+
+# Dynamic variables
+DIRECTORY_CHROOT="/mnt/debian"
+
+MIRROR="http://10.0.0.11/ftp.debian.org/debian/"
+MIRROR_SECURITY="http://10.0.0.11/ftp.debian.org/debian-security/"
+MIRROR_BACKPORTS="http://10.0.0.11/ftp.debian.org/debian-backports/"
+
+USER="user"
+
+# Defaults
+if [ -z "${DISTRIBUTION}" ]
+then
+ DISTRIBUTION="unstable"
+fi
+
+case "${DISTRIBUTION}" in
+ oldstable-backports|"${CODENAME_OLDSTABLE}"-backports)
+ CHROOT="${DIRECTORY_CHROOT}/${CODENAME_OLDSTABLE}-backports"
+ DISTRIBUTION="${CODENAME_OLDSTABLE}"
+ ;;
+
+ oldstable|"${CODENAME_OLDSTABLE}")
+ CHROOT="${DIRECTORY_CHROOT}/${CODENAME_OLDSTABLE}"
+ DISTRIBUTION="${CODENAME_OLDSTABLE}"
+ ;;
+
+ stable-backports|"${CODENAME_STABLE}"-backports)
+ CHROOT="${DIRECTORY_CHROOT}/${CODENAME_STABLE}-backports"
+ DISTRIBUTION="${CODENAME_STABLE}"
+ ;;
+
+ stable|"${CODENAME_STABLE}")
+ CHROOT="${DIRECTORY_CHROOT}/${CODENAME_STABLE}"
+ DISTRIBUTION="${CODENAME_STABLE}"
+ ;;
+
+ testing|"${CODENAME_TESTING}")
+ CHROOT="${DIRECTORY_CHROOT}/${CODENAME_TESTING}"
+ DISTRIBUTION="${CODENAME_TESTING}"
+ ;;
+
+ unstable|"${CODENAME_UNSTABLE}")
+ CHROOT="${DIRECTORY_CHROOT}/${CODENAME_UNSTABLE}"
+ DISTRIBUTION="${CODENAME_UNSTABLE}"
+ ;;
+esac
+
+Chroot()
+{
+ COMMANDS="${1}"
+
+ # Executing commands in chroot
+ chroot "${CHROOT}" /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" TERM="${TERM}" ${COMMANDS}
+ # linux32 chroot "${CHROOT}" /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" TERM="${TERM}" ${COMMANDS}
+}
+
+case "${ACTION}" in
+ uninstall)
+ # Unmounting file system
+ fuser -km "${CHROOT}"
+ killall -9 syslogd || true
+ killall -9 klogd || true
+
+ umount "${CHROOT}"/sys || true
+ umount "${CHROOT}"/proc || true
+ umount "${CHROOT}"/lib/init/rw || true
+ umount "${CHROOT}"/dev/shm || true
+ umount "${CHROOT}"/dev/pts || true
+ umount "${CHROOT}"/dev || true
+ umount "${CHROOT}" || true
+
+ # Removing directory
+ rm -rf "${CHROOT}"
+ ;;
+
+ install)
+ # Creating directory
+ mkdir -p "${CHROOT}"
+
+ # Bootstrapping chroot
+ cdebootstrap ${DISTRIBUTION} ${CHROOT} ${MIRROR}
+ rm -rf ${CHROOT}/var/cache/bootstrap
+ ;;
+
+ configure)
+ # Hack network
+ cp /etc/resolv.conf "${CHROOT}"/etc
+ cp /etc/hosts "${CHROOT}"/etc
+
+ # Configuring sources.list
+ echo "deb ${MIRROR} ${DISTRIBUTION} main contrib non-free" > "${CHROOT}"/etc/apt/sources.list
+ echo "deb-src ${MIRROR} ${DISTRIBUTION} main contrib non-free" >> "${CHROOT}"/etc/apt/sources.list
+
+ if [ "${DISTRIBUTION}" != "${CODENAME_UNSTABLE}" ]
+ then
+ echo "deb ${MIRROR_SECURITY} ${DISTRIBUTION}/updates main contrib non-free" >> "${CHROOT}"/etc/apt/sources.list
+ echo "deb-src ${MIRROR_SECURITY} ${DISTRIBUTION}/updates main contrib non-free" >> "${CHROOT}"/etc/apt/sources.list
+ fi
+
+ Chroot "echo '${DISTRIBUTION}_`dpkg --print-architecture`' > /etc/debian_chroot"
+
+ # Updating indices
+ Chroot "apt-get --force-yes --yes install -f"
+ Chroot "apt-get --force-yes --yes install"
+ Chroot "apt-get --force-yes --yes update"
+ Chroot "apt-get --force-yes --yes upgrade"
+ Chroot "apt-get --force-yes --yes dist-upgrade"
+ Chroot "apt-get --force-yes --yes install -f"
+ Chroot "apt-get --force-yes --yes install"
+ Chroot "apt-get --force-yes --yes clean"
+ ;;
+
+ custom)
+ # Custom packages
+ Chroot "apt-get --force-yes --yes install vim"
+ Chroot "apt-get --force-yes --yes remove --purge ed nano nvi"
+ Chroot "apt-get --force-yes --yes remove --purge ppp"
+ Chroot "apt-get --force-yes --yes install build-essential debhelper dh-make lintian fakeroot gnupg locales less devscripts wdiff autotools-dev"
+
+ if [ "${DISTRIBUTION}" != "oldstable" ]
+ then
+ Chroot "apt-get --force-yes --yes install dpatch"
+ fi
+
+ if [ ${DISTRIBUTION} = "oldstable" ] || [ ${DISTRIBUTION} = "oldstable-backports" ]
+ then
+ Chroot "apt-get install --force-yes --yes adduser"
+ fi
+
+ Chroot "apt-get --force-yes --yes clean"
+
+ # Custom configuration
+ sed -i -e 's/.*syntax on/syntax on/' "${CHROOT}"/etc/vim/vimrc
+
+cat >> "${CHROOT}"/etc/vim/vimrc << "EOF"
+
+highlight WhitespaceEOL ctermbg=red guibg=red
+match WhitespaceEOL /\s\+$/
+EOF
+
+cat >> "${CHROOT}"/etc/profile << "EOF"
+
+alias cp="cp -i"
+alias ln="ln -i"
+alias mv="mv -i"
+alias rm="rm -i"
+
+alias less="less -R"
+alias ls="ls --color"
+
+export GREP_OPTIONS="--color=auto"
+
+#LANGUAGE="en_US"
+#LC_ALL="en_US"
+#LANG="en_US"
+#export LANGUAGE LC_ALL LANG
+EOF
+
+ echo "Root password"
+ Chroot "passwd"
+ Chroot "adduser ${USER}"
+ ;;
+
+ all)
+ "${0}" install ${DISTRIBUTION}
+ "${0}" configure ${DISTRIBUTION}
+ "${0}" custom ${DISTRIBUTION}
+ ;;
+
+ chroot)
+ # Enter chroot
+ #linux32 chroot "${CHROOT}" /bin/bash --login
+ chroot "${CHROOT}" /bin/bash --login
+ ;;
+
+ update)
+ # Updating chroot
+ Chroot "apt-get --force-yes --yes update"
+ Chroot "apt-get --force-yes --yes upgrade"
+ Chroot "apt-get --force-yes --yes dist-upgrade"
+ Chroot "apt-get --force-yes --yes clean"
+ ;;
+
+ save)
+ killall -9 syslogd || true
+ killall -9 klogd || true
+
+ # Unmounting file systems
+ umount "${CHROOT}"/sys || true
+ umount "${CHROOT}"/proc || true
+ umount "${CHROOT}"/lib/init/rw || true
+ umount "${CHROOT}"/dev/shm || true
+ umount "${CHROOT}"/dev/pts || true
+ umount "${CHROOT}"/dev || true
+
+ # Cleaning home directories
+ rm -f "${CHROOT}"/root/.bash_history
+ rm -f "${CHROOT}"/root/.viminfo
+ rm -f "${CHROOT}"/home/${USER}/.bash_history
+ rm -f "${CHROOT}"/home/${USER}/.viminfo
+ rm -rf "${CHROOT}"/var/tmp/vi.recover
+
+ # Saving chroot
+ rsync -av --delete "${CHROOT}"/ "${CHROOT}".snapshot
+
+ # Remounting file systems
+ mount proc-`basename ${CHROOT}` "${CHROOT}"/proc -t proc
+ ;;
+
+ restore)
+ killall -9 syslogd || true
+ killall -9 klogd || true
+
+ # Unmounting file systems
+ umount "${CHROOT}"/sys || true
+ umount "${CHROOT}"/proc || true
+ umount "${CHROOT}"/lib/init/rw || true
+ umount "${CHROOT}"/dev/shm || true
+ umount "${CHROOT}"/dev/pts || true
+ umount "${CHROOT}"/dev || true
+
+ # Restoring chroot
+ rsync -av --delete "${CHROOT}".snapshot/ "${CHROOT}"
+
+ # Remounting file systems
+ mount proc-`basename ${CHROOT}` "${CHROOT}"/proc -t proc
+ ;;
+
+ reset)
+ "${0}" restore `basename ${CHROOT}`
+ "${0}" update `basename ${CHROOT}`
+ "${0}" save `basename ${CHROOT}`
+ ;;
+esac
+
+#echo "debootstraps - Meta script for debootstrap(8)"
+#echo
+#echo -e "Usage: \t `basename ${0}` [TARGET] [DISTRIBUTION]"
+#echo -e "Usage: \t `basename ${0}` [OPTION]"
+#echo
+#echo "Targets:"
+#echo -e "\t uninstall: \t\t remove chroot"
+#echo -e "\t install: \t\t bootstrap chroot"
+#echo -e "\t configure: \t\t configure chroot"
+#echo -e "\t custom: \t\t install custom packages"
+#echo -e "\t all: \t\t execute all targets"
+#echo
+#echo -e "\t chroot: \t\t enter chroot"
+#echo -e "\t update: \t\t update chroot"
+#echo -e "\t save: \t\t saves chroot to \$CHROOT.snapshot"
+#echo -e "\t restore: \t\t restores chroot from \$CHROOT.snapshot"
+#echo
+#echo "Distributions:"
+#echo -e "\t oldstable: \t\t Debian GNU/Linux oldstable (Woody)"
+#echo -e "\t stable: \t\t Debian GNU/Linux stable (Sarge)"
+#echo -e "\t testing: \t\t Debian GNU/Linux testing (Etch)"
+#echo -e "\t unstable: \t\t Debian GNU/Linux unstable (Sid)"
+#echo -e "\t all: \t\t execute all distributions"
+#echo
+#echo "Options:"
+#echo -e "\t -h, --help: \t display this help and exit"
+#echo -e "\t -u, --usage: \t show usage and exit"
+#echo -e "\t -v, --version: \t output version information and exit"
+#exit 1
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/cdebootstraps
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/chmods
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/chmods 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/chmods 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+# chmods.sh - Setting default file access permissions
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+EXCLUDES="*.changes"
+EXECUTABLES="*.sh"
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+ echo "chmods.sh - Setting default file access permissions"
+ echo
+ echo "Usage: `basename ${0}` [DIRECTORY]"
+ exit 1
+fi
+
+# Setting path
+if [ ! -z "${1}" ]
+then
+ DIRECTORY="${1}"
+else
+ DIRECTORY="`pwd`"
+fi
+
+# Process directories
+find "${DIRECTORY}" -type d | xargs chmod 0755
+find "${DIRECTORY}" -type d -name lost+found | xargs chmod 0700
+
+# Process files
+find "${DIRECTORY}" -type f | xargs chmod 0644
+
+# Process excludes
+for EXCLUDES in ${EXCLUDES}
+do
+ find "${DIRECTORY}" -type f -name "${EXCLUDES}" | xargs chmod 0640
+done
+
+# Process executables
+for EXECUTABLE in ${EXECUTABLES}
+do
+ find "${DIRECTORY}" -type f -name "${EXECUTABLE}" | xargs chmod 0755
+done
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/chmods
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/chowns
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/chowns 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/chowns 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# chowns.sh - Setting default file owner and group
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+USER="root"
+GROUP="${USER}"
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+ echo "chowns.sh - Setting default file owner and group"
+ echo
+ echo "Usage: `basename ${0}` [USER]"
+ exit 1
+fi
+
+# Process data
+if [ ! -z "${1}" ]
+then
+ chown "${1}":"${1}" "`pwd`" -R
+else
+ chown "${USER}":"${GROUP}" "`pwd`" -R
+fi
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/chowns
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,194 @@
+#!/bin/sh
+
+# cpufreqs.sh - Setting cpu frequencies
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ] || [ -z "${1}" ]
+then
+ echo "cpufreqs.sh - Setting cpu frequencies"
+ echo
+ echo "Usage: `basename ${0}` {gov|per|use|ava|cur|man|max|min}"
+ echo "Usage: `basename ${0}` {governor|performance|userspace|available|current|manual|maximal|minimal}"
+ exit 1
+fi
+
+# Check if cpufreq is loaded
+if [ ! -d /sys/devices/system/cpu/cpu0/cpufreq ]
+then
+ echo "E: no cpu driver loaded (or sysfs not mounted)."
+ exit 1
+fi
+
+# Change directory
+cd /sys/devices/system/cpu
+
+case "${1}" in
+ gov|governor)
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+ echo "${CPU}: current governor `cat scaling_governor`."
+ done
+ ;;
+
+ per|performance)
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+
+ echo "${CPU}: current governor `cat scaling_governor`."
+
+ if [ "`cat scaling_governor`" = "performance" ]
+ then
+ echo "${CPU}: governor already set to `cat scaling_governor`."
+ else
+ cat scaling_available_governors | grep -q "performance"
+
+ if [ "${?}" = "0" ]
+ then
+ echo "performance" > scaling_governor
+ echo "${CPU}: governor set to `cat scaling_governor`."
+ else
+ echo "E: unavailable governor performance."
+ exit 1
+ fi
+ fi
+ done
+ ;;
+
+ use|userspace)
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+
+ echo "${CPU}: current governor `cat scaling_governor`."
+
+ if [ "`cat scaling_governor`" = "userspace" ]
+ then
+ echo "${CPU}: governor already set to `cat scaling_governor`."
+ else
+ cat scaling_available_governors | grep -q "userspace"
+
+ if [ "${?}" = "0" ]
+ then
+ echo "userspace" > scaling_governor
+ echo "${CPU}: governor set to `cat scaling_governor`."
+ else
+ echo "E: unavailable governor userspace."
+ exit 1
+ fi
+ fi
+ done
+ ;;
+
+ ava|available)
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+ echo "${CPU}: available frequencies: `cat scaling_available_frequencies`."
+ echo "${CPU}: available governors: `cat scaling_available_governors`."
+ done
+ ;;
+
+ cur|current)
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+ echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+
+ if [ "`cat scaling_cur_freq`" = "`cat scaling_max_freq`" ]
+ then
+ echo "${CPU}: frequency set to maximum."
+ elif [ "`cat scaling_cur_freq`" = "`cat scaling_min_freq`" ]
+ then
+ echo "${CPU}: frequency set to minimum."
+ fi
+ done
+ ;;
+
+ man|manual)
+ if [ -z "${2}" ]
+ then
+ echo "E: no frequency specified."
+ exit 1
+ fi
+
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+ cat scaling_available_frequencies | grep -q "${2}"
+
+ if [ "${?}" = "0" ]
+ then
+ echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+
+ if [ "`cat scaling_cur_freq`" = ${2} ]
+ then
+ echo "${CPU}: frequency already set to `cat scaling_cur_freq`kHz."
+ else
+ if [ "`cat scaling_governor`" = "userspace" ]
+ then
+ echo "${2}" > scaling_setspeed
+ echo "${CPU}: frequency set to `cat scaling_cur_freq`kHz."
+ else
+ echo "E: wrong governor `cat scaling_governor`."
+ exit 1
+ fi
+ fi
+ else
+ echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+ echo "E: unavailable frequency ${2}kHz."
+ exit 1
+ fi
+ done
+ ;;
+
+ max|maximal)
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+ echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+
+ if [ "`cat scaling_max_freq`" = "`cat scaling_cur_freq`" ]
+ then
+ echo "${CPU}: frequency already set to maximum."
+ else
+ if [ "`cat scaling_governor`" = "userspace" ]
+ then
+ cat scaling_max_freq > scaling_setspeed
+ echo "${CPU}: frequency set to `cat scaling_cur_freq`kHz."
+ else
+ echo "E: wrong governor `cat scaling_governor`."
+ exit 1
+ fi
+ fi
+ done
+ ;;
+
+ min|minimal)
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+ echo "${CPU}: current frequency `cat scaling_cur_freq`kHz."
+
+ if [ "`cat scaling_min_freq`" = "`cat scaling_cur_freq`" ]
+ then
+ echo "${CPU}: frequency already set to minimum."
+ else
+ if [ "`cat scaling_governor`" = "userspace" ]
+ then
+ cat scaling_min_freq > scaling_setspeed
+ echo "${CPU}: frequency set to `cat scaling_cur_freq`kHz."
+ else
+ echo "E: wrong governor `cat scaling_governor`."
+ exit 1
+ fi
+ fi
+ done
+ ;;
+esac
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/cpufreqs
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/dgets
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/dgets 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/dgets 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+CURDIR="`pwd`"
+SOURCE="`basename ${1} | awk -F_ '{ print $1 }'`"
+
+mkdir NEW
+cd NEW
+dget ${1}
+prepare
+
+cd "${CURDIR}"
+
+mkdir OLD
+cd OLD
+apt-get source --download-only ${SOURCE}
+prepare
+
+cd "${CURDIR}"
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/dgets
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/diffs
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/diffs 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/diffs 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+md5sum OLD/*.tar.gz NEW/*.tar.gz
+echo "pause..."
+read
+diff -Naurp OLD/*/ NEW/*/ > DIFF
+vi DIFF
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/diffs
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/diffs_debian
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/diffs_debian 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/diffs_debian 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+md5sum OLD/*.tar.gz NEW/*.tar.gz
+echo "pause..."
+read
+diff -Naurp OLD/*/debian NEW/*/debian > DIFF
+vi DIFF
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/diffs_debian
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackage
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackage 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackage 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/bin/dpkg-buildpackage -rfakeroot -k4B2B2B9E
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackage
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackages
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackages 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackages 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/bin/dpkg-buildpackage -rfakeroot -k4B2B2B9E -sa
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/dpkg-buildpackages
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/dputs
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/dputs 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/dputs 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,140 @@
+#!/bin/sh
+
+# dputs.sh - Wrapper for dput(1)
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ] || [ -z "${1}" ]
+then
+ echo "dputs.sh - Wrapper for dput(1)"
+ echo
+ echo "Usage: `basename ${0}` DISTRIBUTION [SPONSOR]"
+ exit 1
+fi
+
+# Check configuration
+if [ ! -r ~/.dput.cf ] || [ "${1}" = "config" ]
+then
+cat >> ~/.dput.cf << EOF
+[backports]
+fqdn = www.backports.org
+incoming = /
+method = ftp
+login = anonymous
+
+[security-master]
+fqdn = security-master.debian.org
+incoming = /pub/SecurityUploadQueue/
+method = ftp
+login = anonymous
+EOF
+exit 0
+fi
+
+CODENAME_OLDSTABLE="sarge"
+CODENAME_OLDSTABLE_BACKPORTS="sarge"
+CODENAME_STABLE="etch"
+CODENAME_STABLE_BACKPORTS="etch"
+CODENAME_TESTING="lenny"
+CODENAME_UNSTABLE="sid"
+
+DIRECTORY_CHROOT="/mnt/debian"
+
+DISTRIBUTION="${1}"
+SPONSOR="${2}"
+USER="user"
+
+if [ -z "${DISTRIBUTION}" ]
+then
+ DISTRIBUTION="unstable"
+fi
+
+case "${DISTRIBUTION}" in
+ oldstable-backports|"${CODENAME_OLDSTABLE}"-backports)
+ DISTRIBUTION="${CODENAME_OLDSTABLE}-backports"
+ ;;
+
+ stable-backports|"${CODENAME_STABLE}"-backports)
+ DISTRIBUTION="${CODENAME_STABLE}-backports"
+ ;;
+
+ stable-security|"${CODENAME_STABLE}"-security)
+ DISTRIBUTION="${CODENAME_STABLE}-security"
+ ;;
+
+ stable|"${CODENAME_STABLE}")
+ DISTRIBUTION="${CODENAME_STABLE}"
+ ;;
+
+ testing|"${CODENAME_TESTING}")
+ DISTRIBUTION="${CODENAME_TESTING}"
+ ;;
+
+ unstable|"${CODENAME_UNSTABLE}")
+ DISTRIBUTION="${CODENAME_UNSTABLE}"
+ ;;
+esac
+
+if [ "${SPONSOR}" = "sponsor" ]
+then
+ CHROOT="${DIRECTORY_CHROOT}/${DISTRIBUTION}/home/${USER}/NEW"
+ NAME="`grep -e 'Changed-By:' ${CHROOT}/*.changes | sed -e 's/Changed-By: //' -e 's/ <.*//' -e 's/ /-/g' | tr A-Z a-z | sed -e 's/é/e/g' -e 's/ü/ue/g'`"
+else
+ CHROOT="${DIRECTORY_CHROOT}/${DISTRIBUTION}/home/${USER}"
+fi
+
+PACKAGE="`basename ${CHROOT}/*.dsc | awk -F_ '{ print $1 }'`"
+VERSION="`basename ${CHROOT}/*.dsc | awk -F_ '{ print $2 }' | sed -e 's/.dsc//'`"
+
+CURDIR="`pwd`"
+
+if [ -z "${NAME}" ] || [ "`basename ${CURDIR}`" = "${NAME}" ]
+then
+ mkdir -p "${PACKAGE}"/"${VERSION}"
+ cd "${PACKAGE}"/"${VERSION}"
+ mv "${CHROOT}"/* ./
+ md5sums
+else
+ mkdir -p "${NAME}"/"${PACKAGE}"/"${VERSION}"
+ cd "${NAME}"/"${PACKAGE}"/"${VERSION}"
+ mv "${CHROOT}"/* ./
+ md5sums
+fi
+
+case "${DISTRIBUTION}" in
+ "${CODENAME_OLDSTABLE}"-backports|"${CODENAME_STABLE}"-backports)
+ dput backports *.changes
+ ;;
+
+ "${CODENAME_STABLE}"-security)
+ dput security-master *.changes
+ ;;
+
+ *)
+ dput ftp-master *.changes
+ ;;
+esac
+
+rm -f *.upload
+chmod 0640 *.changes
+
+TARBALL="`ls *.tar.gz`"
+
+if [ -f ../upstream/"${TARBALL}" ]
+then
+ rm -f "${TARBALL}"
+ ln -s ../upstream/"${TARBALL}" ./
+else
+ if [ ! -d ../upstream ]
+ then
+ mkdir ../upstream
+ fi
+
+ mv "${TARBALL}" ../upstream
+ ln -s ../upstream/"${TARBALL}" ./
+ cd ../upstream && md5sums
+fi
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/dputs
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/halt
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/halt 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/halt 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo sh -c "/sbin/halt"
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/halt
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,153 @@
+#!/bin/sh
+
+# md5sums.sh - Generate signed MD5 message digests files
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+Passphrase ()
+{
+ if [ -z "${PASSPHRASE}" ]
+ then
+ echo -n " * Enter passphrase: "
+ read -s -t 60 PASSPHRASE
+ echo
+ echo
+ fi
+
+ if [ -z "${PASSPHRASE}" ]
+ then
+ Passphrase
+ fi
+
+ trap "if [ ! -z ${PASSPHRASE} ]; then export PASSPHRASE=; fi; exit 0" 0 2 15
+}
+
+Md5sum ()
+{
+ if [ -z "${PASSPHRASE}" ]
+ then
+ Passphrase
+ fi
+
+ # Remove old digests
+ rm -f MD5SUM*
+
+ if [ ! -z "`ls`" ]
+ then
+ # Create digest
+ md5sum * > MD5SUMS
+
+ # Sign digest
+ echo "${PASSPHRASE}" | gpg --quiet --passphrase-fd 0 --clearsign MD5SUMS
+ mv -f MD5SUMS.asc MD5SUMS
+ fi
+}
+
+Md5check ()
+{
+ if [ -r MD5SUMS ]
+ then
+ gpg --verify MD5SUMS
+ md5sum -c MD5SUMS
+ elif [ -f MD5SUMS ]
+ then
+ echo "W: cannot read `pwd`/MD5SUMS: Permission denied."
+ fi
+}
+
+Main ()
+{
+ case "${1}" in
+ -c|--check)
+ Md5check
+ ;;
+
+ -cc|--check-recursive)
+ for DIRECTORY in *
+ do
+ if [ -d "${DIRECTORY}" ]
+ then
+ cd "${DIRECTORY}"
+ Md5check
+ cd ..
+ fi
+ done
+ ;;
+
+ -ccc|--check-double-recursive)
+ for PARENT_DIRECTORY in *
+ do
+ if [ -d "${PARENT_DIRECTORY}" ]
+ then
+ cd "${PARENT_DIRECTORY}"
+ "${0}" --check-recursive
+ cd ..
+ fi
+ done
+ ;;
+
+ --clean)
+ find "`pwd`" -type f -name "MD5SUM*" | xargs rm -f
+ ;;
+
+ --list)
+ find "`pwd`" -type f -name "MD5SUM*"
+ ;;
+
+ -s|--sum)
+ Md5sum
+ ;;
+
+ -ss|--sum-recursive)
+ for DIRECTORY in *
+ do
+ if [ -d "${DIRECTORY}" ]
+ then
+ cd "${DIRECTORY}"
+ Md5sum
+ cd ..
+ fi
+ done
+ ;;
+
+ -sss|--sum-double-recursive)
+ for PARENT_DIRECTORY in *
+ do
+ if [ -d "${PARENT_DIRECTORY}" ]
+ then
+ cd "${PARENT_DIRECTORY}"
+
+ for DIRECTORY in *
+ do
+ if [ -d "${DIRECTORY}" ]
+ then
+ cd "${DIRECTORY}"
+ Md5sum
+ cd ..
+ fi
+ done
+
+ cd ..
+ fi
+ done
+ ;;
+
+ -h|--help)
+ echo "md5sums.sh - Generate signed MD5 message digests files"
+ echo
+ echo "Usage: `basename ${0}` [-c|--check] [-cc|--recursive-check] [-ccc|--double-recursive-check]"
+ echo "Usage: `basename ${0}` [--clean] [--list]"
+ echo "Usage: `basename ${0}` [-s|--sum] [-ss|--sum-recursive] [-sss|--sum-double-recursive]"
+ exit 1
+ ;;
+
+ *)
+ Md5sum
+ ;;
+ esac
+}
+
+Main "${@}"
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/md5sums
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/prepare
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/prepare 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/prepare 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+tar xfz *.orig.tar.gz
+gunzip *.diff.gz
+cd */
+patch -Np1 -i ../*.diff
+rm -f ../*.diff
+chmod 755 debian/rules
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/prepare
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/pss
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/pss 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/pss 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# pss.sh - Greps through list of the current processes
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+GREP_OPTIONS="--color=auto -i"
+PS_OPTIONS="-eaf"
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+ echo "pss.sh - Greps through list of the current processes"
+ echo
+ echo "Usage: `basename ${0}` [GREP_PATTERN]"
+ exit 1
+fi
+
+# Process data
+ps "${PS_OPTIONS}" | grep -e "${1}"
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/pss
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/reboot
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/reboot 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/reboot 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo sh -c "/sbin/reboot"
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/reboot
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -n "${DISPLAY}" ]
+then
+ slock &
+fi
+
+sudo sh -c "echo 'disk' > /sys/power/state"
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-disk
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -n "${DISPLAY}" ]
+then
+ slock &
+fi
+
+sudo sh -c "echo 'mem' > /sys/power/state"
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/suspend-mem
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# vi-mtime.sh - Editing files without changing mtime
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+# Show help
+if [ -z "${1}" ]
+then
+ echo "vi-mtime.sh - Editing files without changing mtime"
+ echo
+ echo "Usage: `basename ${0}` FILE"
+ exit 1
+fi
+
+# Saving mtime
+touch -r "${1}" ."${1}".mtime
+
+# Process file
+vi "${1}"
+
+# Restoring mtime
+touch -r ."${1}".mtime "${1}"
+rm -f ."${1}".mtime
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/vi-mtime
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localincludes/usr/local/bin/vis
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/vis 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/vis 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# vis.sh - Editing files recursively
+#
+# This script is written by Daniel Baumann <daniel at debian.org>
+# and hereby placed in the public domain (no rights reserved).
+
+set -e
+
+# Show help
+if [ "${1}" = "-h" ] || [ "${1}" = "--help}" ]
+then
+ echo "vis.sh - Editing files recursively"
+ echo
+ echo "Usage: `basename ${0}` [-r|--recursive]"
+ exit 1
+fi
+
+case "${1}" in
+ -r|--recursive)
+ find "`pwd`" -type f -exec vi {} \;
+ ;;
+
+ *)
+ find "`pwd`" -maxdepth 1 -type f -exec vi {} \;
+ ;;
+esac
Property changes on: configs/daniel/config/chroot_localincludes/usr/local/bin/vis
___________________________________________________________________
Name: svn:executable
+ *
Added: configs/daniel/config/chroot_localpackageslists/daniel
===================================================================
--- configs/daniel/config/chroot_localpackageslists/daniel 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_localpackageslists/daniel 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,42 @@
+# /usr/share/make-live/lists/x11 - package list for make-live(1)
+
+# Minimal
+eject file sudo vim-tiny
+
+# Standard
+console-common kbd locales
+
+# X11
+xorg xresprobe
+
+################################################################################
+
+# Mozilla
+enigmail icedove iceweasel
+
+# WM
+dwm-tools unclutter wmii2 xloadimage xterm xtrlock
+
+# CD-ROM
+genisoimage wodim
+
+# Wireless
+firmware-ipw3945 ipw3945-modules-2.6-686 ipw3945d wireless-tools
+
+# Filesystems
+dosfstools e2fsprogs ext2resize hfsutils jfsutils ntfs-3g ntfsprogs
+reiser4progs reiserfsprogs ufsutils xfsprogs
+ddrescue sdd grub lilo gparted parted partimage
+
+# Network
+bmon curl dnsutils finger iftop iptraf irssi lynx mtr ncftp netcat nmap ntop
+ntpdate openssh-client rsync telnet-ssl tcpdump tcptraceroute traceroute
+tshark vpnc wget whois
+
+# Utilities
+bc bittorrent cvs gpm less screen strace subversion sudo vim
+
+# misc
+hdparm dmidecode procinfo pciutils usbutils hwinfo hwtools x86info cpuid
+testdisk
+clamav clamav-data wipe secure-delete minicom
Added: configs/daniel/config/chroot_sources/live-snapshot.binary
===================================================================
--- configs/daniel/config/chroot_sources/live-snapshot.binary 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_sources/live-snapshot.binary 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,9 @@
+## This is a sources.list for live-helper(7) to use packages from the
+## Debian Live Snapshot repository.
+##
+## To enable it, copy this file to your config/chroot_sources directory, once
+## as e.g. live-snapshot.build and once as live-snapshot.image.
+
+# Debian Live Snapshots
+deb http://live.debian.net/debian-snapshot/ ./
+deb-src http://live.debian.net/debian-snapshot/ ./
Added: configs/daniel/config/chroot_sources/live-snapshot.bootstrap
===================================================================
--- configs/daniel/config/chroot_sources/live-snapshot.bootstrap 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/chroot_sources/live-snapshot.bootstrap 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,9 @@
+## This is a sources.list for live-helper(7) to use packages from the
+## Debian Live Snapshot repository.
+##
+## To enable it, copy this file to your config/chroot_sources directory, once
+## as e.g. live-snapshot.build and once as live-snapshot.image.
+
+# Debian Live Snapshots
+deb http://live.debian.net/debian-snapshot/ ./
+deb-src http://live.debian.net/debian-snapshot/ ./
Added: configs/daniel/config/common
===================================================================
--- configs/daniel/config/common 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/common 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,115 @@
+# config/common: configuration for live-helper(7)
+
+# $LH_MODE: set distribution mode
+# (Default: debian)
+LH_MODE="debian"
+
+# $LH_APT: set package manager
+# (Default: aptitude)
+LH_APT="apt"
+
+# $LH_APT_FTPPROXY: set apt/aptitude ftp proxy
+# (Default: autodetected or empty)
+LH_APT_FTPPROXY=""
+
+# $LH_APT_HTTPPROXY: set apt/aptitude http proxy
+# (Default: autodetected or empty)
+LH_APT_HTTPPROXY=""
+
+# $LH_APT_GENERIC: set apt/aptitude generic indices
+# (Default: enabled)
+LH_APT_GENERIC="enabled"
+
+# $LH_APT_PDIFFS: set apt/aptitude pdiff indices
+# (Default: enabled)
+LH_APT_PDIFFS="enabled"
+
+# $LH_APT_RECOMMENDS: enable recommends
+# (Default: enabled)
+LH_APT_RECOMMENDS="enabled"
+
+# $LH_APT_SECURE: enable secure
+# (Default: enabled)
+LH_APT_SECURE="enabled"
+
+# $LH_BOOTSTRAP: select the bootstrap program
+# (Default: cdebootstrap)
+LH_BOOTSTRAP="cdebootstrap"
+
+# $LH_CACHE_INDICES: control if downloaded packages should be cached
+# (Default: disabled)
+LH_CACHE_INDICES="disabled"
+
+# $LH_CACHE_PACKAGES: control if downloaded packages should be cached
+# (Default: enabled)
+LH_CACHE_PACKAGES="enabled"
+
+# $LH_CACHE_STAGES: control if downloaded packages should be cached
+# (Default: bootstrap)
+LH_CACHE_STAGES="bootstrap"
+
+# $LH_DEBCONF_FRONTEND: set the debconf(1) frontend to use
+# (Default: noninteractive)
+LH_DEBCONF_FRONTEND="noninteractive"
+
+# $LH_DEBCONF_PRIORITY: set the debconf(1) priority to use
+# (Default: critical)
+LH_DEBCONF_PRIORITY="critical"
+
+# $LH_DEBCONF_NOWARNINGS: set debconf(1) warnings
+# (Default: yes)
+LH_DEBCONF_NOWARNINGS="yes"
+
+# $LH_GENISOIMAGE: set the genisoimage program
+# (Default: genisoimage)
+LH_GENISOIMAGE="genisoimage"
+
+# $LH_LOSETUP: set the losetup program
+# (Default: autodetected)
+LH_LOSETUP="losetup"
+
+# $LH_TASKSEL: set the tasksel program
+# (Default: aptitude)
+LH_TASKSEL="aptitude"
+
+# $LH_INITRAMFS: set the initramfs generator
+# (Default: casper)
+LH_INITRAMFS="live-initramfs"
+
+# $LIVE_ROOT: set the root directory
+# (Default: debian-live)
+LIVE_ROOT="debian-live"
+
+# $LIVE_INCLUDES: set includes
+# (Default: /usr/share/live-helper/includes)
+LIVE_INCLUDES="/usr/share/live-helper/includes"
+
+# $LIVE_TEMPLATES: set templates
+# (Default: /usr/share/live-helper/templates)
+LIVE_TEMPLATES="/usr/share/live-helper/templates"
+
+# Live-helper options
+
+# $LH_ROOT_COMMAND: use sudo or equivalent
+# (Default: empty)
+#LH_ROOT_COMMAND="sudo"
+
+# $LH_BREAKPOINTS: enable breakpoints
+# (Default: disabled)
+#LH_BREAKPOINTS="disabled"
+
+# $LH_DEBUG: enable debug
+# (Default: disabled)
+#LH_DEBUG="disabled"
+
+# $LH_FORCE: enable force
+# (Default: disabled)
+#LH_FORCE="disabled"
+
+# $LH_QUIET: enable quiet
+# (Default: disabled)
+#LH_QUIET="disabled"
+
+# $LH_VERBOSE: enable verbose
+# (Default: disabled)
+#LH_VERBOSE="disabled"
Added: configs/daniel/config/source
===================================================================
--- configs/daniel/config/source 2007-05-09 07:11:16 UTC (rev 1412)
+++ configs/daniel/config/source 2007-05-09 07:11:45 UTC (rev 1413)
@@ -0,0 +1,9 @@
+# config/chroot: configuration for lh_source_*
+
+# $LIVE_SOURCE: set source option
+# (Default: )
+LIVE_SOURCE="enabled"
+
+# $LIVE_SOURCE_IMAGE: set image type
+# (Default: generic)
+LIVE_SOURCE_IMAGE="generic"
More information about the Debian-live-changes
mailing list