7 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
10 # And use one locale, no matter what the caller has set
14 report=$queuedir/REPORT
15 reportdis=$queuedir/REPORT.disembargo
16 timestamp=$(date "+%Y-%m-%d %H:%M")
19 LOCKFILE="$lockdir/unchecked.lock"
25 if ! lockfile -r8 "$LOCKFILE"; then
26 echo "aborting cron.unchecked because $LOCKFILE has already been locked"
32 changes=$(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs)
33 if [ -n "$changes" ]; then
35 echo "$timestamp": ${changes:-"Nothing to do in unchecked"} >> $report
36 dak process-upload -a -d "$unchecked" >> $report
40 changes=$(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs)
41 if [ -n "$changes" ]; then
43 echo "$timestamp": ${changes:-"Nothing to do in disembargo"} >> $reportdis
44 dak process-upload -a -d "$disembargo" >> $reportdis
47 for queue in embargoed unembargoed; do
48 echo "$timestamp: processing ${queue}" >> ${report}
49 dak process-policy ${queue} | mail -a "X-Debian: DAK" -e -s "Automatically accepted from ${queue}" team@security.debian.org -- -F "Debian FTP Masters" -f ftpmaster@ftp-master.debian.org
51 accepted=$(find ${queuedir}/accepted -type f -name "*.changes")
52 if [ -n "${accepted}" ]; then
56 # sync accepted files to ftpmaster
58 find ${queuedir}/accepted -type f -exec mv -t /srv/queued/ftpmaster '{}' +
60 # export policy queues
61 for queue in embargoed; do
62 cd ${queuedir}/${queue}
65 dak export -q ${queue} -d export.new --all
66 rsync -a --delete export.new/. export/.
71 if [ "${doanything}" = "false" ] && [ "${dopolicy}" = "false" ]; then
72 echo "$timestamp": Nothing to do >> $report
77 dak manage-build-queues -a
78 dak generate-packages-sources2 -a build-queues
79 dak generate-releases -a build-queues >/dev/null
80 ${scriptsdir}/update-buildd-archive ${base}/build-queues ${incoming}/debian-security-buildd
82 # export build queues in old format
83 # XXX: This should be removed later.
84 for suite in stable testing; do
85 overridecodename=$(dak admin suite show ${suite} | awk '$1 == "OverrideCodename:" { print $2 }')
86 rm -rf ${incoming}/${suite}.new
87 mkdir ${incoming}/${suite}.new
88 dak export-suite -s buildd-${suite} -d ${incoming}/${suite}.new
90 cd ${incoming}/${suite}.new
91 apt-ftparchive packages . ${overridedir}/override.${overridecodename}.all3 >Packages
92 gzip -9c --rsyncable <Packages >Packages.gz
93 apt-ftparchive sources . ${overridedir}/override.${overridecodename}.all3 >Sources
94 gzip -9c --rsyncable <Sources >Sources.gz
98 apt-ftparchive -qq -o APT::FTPArchive::Release::Origin="Debian" -o APT::FTPArchive::Release::Label="Debian" -o APT::FTPArchive::Release::Description="buildd $suite security" -o APT::FTPArchive::Release::Architectures="$archs" release ${suite}.new >${suite}.Release
100 gpg --secret-keyring /srv/security-master.debian.org/s3kr1t/dot-gnupg/secring.gpg --keyring /srv/security-master.debian.org/s3kr1t/dot-gnupg/pubring.gpg --no-options --batch --no-tty --armour --default-key 473041FA --detach-sign -o ${suite}.Release.gpg ${suite}.Release
102 mv ${suite}.Release ${suite}.new/Release
103 mv ${suite}.Release.gpg ${suite}.new/Release.gpg
105 if [ -d ${suite} ]; then
106 mv ${suite} ${suite}.old
108 mv ${suite}.new ${suite}
112 if [ "x${dopolicy}x" = "xtruex" ]; then
113 # We had something approved from a policy queue, push out new archive
115 #dak generate-filelist
118 #apt-ftparchive generate apt.conf
119 dak generate-packages-sources2 -a security
120 dak generate-releases -a security
121 /srv/security-master.debian.org/dak/config/debian-security/make-mirror.sh
122 sudo -u archvsync -H /home/archvsync/signal_security
128 $configdir/cron.buildd