3 # Executed after cron.unchecked
8 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
10 SSH_SOCKET=~/.ssh/buildd.debian.org.socket
11 DISTS=$(dak admin s list)
13 if [ -e $ftpdir/Archive_Maintenance_In_Progress ]; then
17 for dist in $DISTS; do
18 eval SOURCES_$dist=`stat -c "%Y" $base/buildd/$dist/Sources.gz`
19 eval PACKAGES_$dist=`stat -c "%Y" $base/buildd/$dist/Packages.gz`
23 apt-ftparchive -qq -o APT::FTPArchive::Contents=off generate apt.conf.buildd
26 for dist in $DISTS; do
28 darchs=$(dak admin s-a list-arch $dist | tr '\n' ' ')
29 codename=$(dak admin s show ${dist} | grep ^Codename | awk '{print $2}')
30 apt-ftparchive -qq -o APT::FTPArchive::Release::Codename="${codename}" -o APT::FTPArchive::Release::Origin="Debian" -o APT::FTPArchive::Release::Label="Debian" -o APT::FTPArchive::Release::Description="buildd $dist security" -o APT::FTPArchive::Release::Architectures="${darchs}" release $dist > Release
31 gpg --secret-keyring ${base}/s3kr1t/dot-gnupg/secring.gpg --keyring ${base}/s3kr1t/dot-gnupg/pubring.gpg --no-options --batch --no-tty --armour --default-key 55BE302B --detach-sign -o Release.gpg Release
38 for dist in $DISTS; do
39 eval NEW_SOURCES_$dist=`stat -c "%Y" $base/buildd/$dist/Sources.gz`
40 eval NEW_PACKAGES_$dist=`stat -c "%Y" $base/buildd/$dist/Packages.gz`
43 if [ ${!new} -gt ${!old} ]; then
44 if [ -z "$dists" ]; then
53 if [ ${!new} -gt ${!old} ]; then
54 if [ -z "$dists" ]; then
63 if [ ! -z "$dists" ]; then
64 # setup ssh master process
65 ssh wbadm@buildd -S $SSH_SOCKET -MN 2> /dev/null &
67 while [ ! -S $SSH_SOCKET ]; do
70 trap 'kill -TERM $SSH_PID' 0
87 ssh wbadm@buildd -S $SSH_SOCKET trigger.security $send