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"
21 # So first we should go and see if any process-policy action is done
22 dak process-policy embargoed | mail -a "X-Debian: DAK" -e -s "Automatically accepted from embargoed" team@security.debian.org -- -F "Debian FTP Masters" -f ftpmaster@ftp-master.debian.org
23 dak process-policy unembargoed | mail -a "X-Debian: DAK" -e -s "Automatically accepted from unembargoed" team@security.debian.org -- -F "Debian FTP Masters" -f ftpmaster@ftp-master.debian.org
25 # Now, if this really did anything, we can then sync it over. Files
26 # in newstage mean they are (late) accepts of security stuff, need
27 # to sync to ftp-master
33 if ! lockfile -r8 "$LOCKFILE"; then
34 echo "aborting cron.unchecked because $LOCKFILE has already been locked"
39 for queue in embargoed; do
40 cd ${queuedir}/${queue}/COMMENTS
41 comments=$(find . -maxdepth 1 -mindepth 1 -type f '(' -name "ACCEPT.*.changes" -o -name "REJECT.*.changes" ')' | sed -e "s,./,," | xargs)
42 if [ -n "$comments" ]; then
44 echo "$timestamp": ${comments:-"Nothing to do for ${queue}"} >> $report
45 dak process-policy ${queue} >> ${report}
46 find /srv/security-master.debian.org/queue/accepted -type f -exec mv -t /srv/queued/ftpmaster '{}' +
51 changes=$(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs)
52 if [ -n "$changes" ]; then
54 echo "$timestamp": ${changes:-"Nothing to do in unchecked"} >> $report
55 dak process-upload -a -d "$unchecked" >> $report
59 changes=$(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs)
61 if [ -n "$changes" ]; then
63 echo "$timestamp": ${changes:-"Nothing to do in disembargo"} >> $reportdis
64 dak process-upload -a -d "$disembargo" >> $reportdis
67 if [ "${doanything}" = "false" ] && [ "${dopolicy}" = "false" ]; then
68 echo "$timestamp": Nothing to do >> $report
73 dak manage-build-queues -a
74 dak generate-packages-sources2 -a build-queues
75 dak generate-releases -a build-queues >/dev/null
77 # export build queues in old format
78 # XXX: This should be removed later.
79 for suite in stable testing; do
80 overridecodename=$(dak admin suite show ${suite} | awk '$1 == "OverrideCodename:" { print $2 }')
81 rm -rf ${incoming}/${suite}.new
82 dak export-suite -s buildd-${suite} -d ${incoming}/${suite}.new
84 cd ${incoming}/${suite}.new
85 apt-ftparchive packages . ${overridedir}/override.${overridecodename}.all3 >Packages
86 gzip -9c --rsyncable <Packages >Packages.gz
87 apt-ftparchive sources . ${overridedir}/override.${overridecodename}.all3 >Sources
88 gzip -9c --rsyncable <Sources >Sources.gz
92 apt-ftparchive -qq -o APT::FTPArchive::Release::Origin="Debian" -o APT::FTPArchive::Release::Label="Debian" -o APT::FTPArchive::Release::Description="buildd $suite incoming" -o APT::FTPArchive::Release::Architectures="$archs" release ${suite}.new >${suite}.Release
94 gpg --secret-keyring /srv/security-master.debian.org/s3kr1t/dot-gnupg/secring.gpg /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
96 mv ${suite}.Release ${suite}.new/Release
97 mv ${suite}.Release.gpg ${suite}.new/Release.gpg
99 mv ${suite} ${suite}.old
100 mv ${suite}.new ${suite}
104 if [ "x${dopolicy}x" = "xtruex" ]; then
105 # We had something approved from a policy queue, push out new archive
107 #dak generate-filelist
110 #apt-ftparchive generate apt.conf
111 dak generate-packages-sources2 -a security
112 dak generate-releases -a security
113 /srv/security-master.debian.org/dak/config/debian-security/make-mirror.sh
114 sudo -u archvsync -H /home/archvsync/signal_security
120 $configdir/cron.buildd