3 # Executed daily via cron, out of dak's crontab.
6 export SCRIPTVARS=/org/security.debian.org/dak/config/debian-security/vars
9 ################################################################################
13 # disabled by ajt 2008-01-01: requires auth
14 rsync --password-file /srv/non-us.debian.org/s3kr1t/rsync-password -ql security-master@ftp-master::indices/override\* $overridedir
17 find . -name override\*.gz -type f -maxdepth 1 -mindepth 1 | xargs gunzip -f
18 find . -type l -maxdepth 1 -mindepth 1 | xargs --no-run-if-empty rm
20 for suite in $suites; do
22 oldstable) override_suite=sarge;;
23 stable) override_suite=etch;;
24 testing) override_suite=lenny;;
25 *) echo "Unknown suite type ($suite)"; exit 1;;
27 for component in $components; do
28 for override_type in $override_types; do
29 case $override_type in
32 udeb) type=".debian-installer" ;;
35 if [ "$override_type" = "udeb" ]; then
36 if [ ! "$component" = "main" ]; then
39 if [ "$suite" = "unstable" ]; then
40 dak control-overrides -q -S -t $override_type -s $suite -c updates/$component < override.$override_suite.$component$type
43 # XXX removed 2007-08-16 ajt
44 #dak control-overrides -q -S -t $override_type -s $suite -c updates/$component < override.$override_suite.$component$type
49 dak control-overrides -q -a -t $override_type -s $suite -c updates/$component < override.sid.$component$type
52 dak control-overrides -q -a -t $override_type -s $suite -c updates/$component < override.sid.$component$type
55 dak control-overrides -q -a -t $override_type -s $suite -c updates/$component < override.sid.$component$type
57 *) echo "Unknown suite type ($suite)"; exit 1;;
63 # Generate .all3 overides for the buildd support
64 for dist in sarge etch lenny; do
65 rm -f override.$dist.all3
66 components="main contrib non-free";
67 if [ -f override.$dist.main.debian-installer ]; then
68 components="$components main.debian-installer"
70 for component in $components; do
71 cat override.$dist.$component >> override.$dist.all3
72 if [ -e "override.$dist.$component.src" ]; then
73 cat override.$dist.$component.src >> override.$dist.all3.src
78 ################################################################################
80 # Freshen Packages-Arch-Specific
81 wget -qN http://buildd.debian.org/quinn-diff/Packages-arch-specific -O $base/buildd/Packages-arch-specific
83 ################################################################################
88 apt-ftparchive -q clean apt.conf
89 apt-ftparchive -q clean apt.conf.buildd
91 symlinks -d -r $ftpdir
93 pg_dump obscurity > /org/security.debian.org/dak-backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
97 echo "VACUUM; VACUUM ANALYZE;" | psql obscurity 2>&1 | egrep -v "^NOTICE: Skipping \"pg_.*only table or database owner can VACUUM it$|^VACUUM$"
100 ################################################################################