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
42 dak control-overrides -q -a -t $override_type -s $suite -c updates/$component < override.sid.$component$type
45 dak control-overrides -q -a -t $override_type -s $suite -c updates/$component < override.sid.$component$type
48 dak control-overrides -q -a -t $override_type -s $suite -c updates/$component < override.sid.$component$type
50 *) echo "Unknown suite type ($suite)"; exit 1;;
56 # Generate .all3 overides for the buildd support
57 for dist in sarge etch lenny; do
58 rm -f override.$dist.all3
59 components="main contrib non-free";
60 if [ -f override.$dist.main.debian-installer ]; then
61 components="$components main.debian-installer"
63 for component in $components; do
64 cat override.$dist.$component >> override.$dist.all3
65 if [ -e "override.$dist.$component.src" ]; then
66 cat override.$dist.$component.src >> override.$dist.all3.src
71 ################################################################################
73 # Freshen Packages-Arch-Specific
74 wget -qN http://buildd.debian.org/quinn-diff/Packages-arch-specific -O $base/buildd/Packages-arch-specific
76 ################################################################################
81 apt-ftparchive -q clean apt.conf
82 apt-ftparchive -q clean apt.conf.buildd
84 symlinks -d -r $ftpdir
86 pg_dump obscurity > /org/security.debian.org/dak-backup/dump_$(date +%Y.%m.%d-%H:%M:%S)
90 echo "VACUUM; VACUUM ANALYZE;" | psql obscurity 2>&1 | egrep -v "^NOTICE: Skipping \"pg_.*only table or database owner can VACUUM it$|^VACUUM$"
93 ################################################################################