From 078cc8c6e35382b28dc8b94782626d8de5ec64ba Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 3 Nov 2008 22:27:26 +0100 Subject: [PATCH] [ARCHIVE] archive.d.o now carries more data, so use it Add old security archives Add sarge-volatile and sarge-backports --- config.sh.sed.in | 9 ++++--- cron.d/100syncarchive | 32 +++++++++++++++++++++++++ cron.d/100syncarchive_backports | 41 ++++++++++++++++++++++++++++++++ cron.d/100syncarchive_volatile | 42 +++++++++++++++++++++++++++++++++ 4 files changed, 121 insertions(+), 3 deletions(-) create mode 100755 cron.d/100syncarchive_backports create mode 100755 cron.d/100syncarchive_volatile diff --git a/config.sh.sed.in b/config.sh.sed.in index fb317ed..b5053e6 100644 --- a/config.sh.sed.in +++ b/config.sh.sed.in @@ -25,7 +25,10 @@ localdir=/srv/archive.debian.org/ftp #ftproot=/org/ftp.root ftpsite=http://archive.debian.org/debian-archive -ddtp_ftpsite= +security_ftpsite=http://archive.debian.org/debian-security +volatile_ftpsite=http://archive.debian.org/debian-volatile +backports_ftpsite=http://archive.debian.org.org/backports.org +ddtp_ftpsite=http://ftp.de.debian.org/debian wget_cmd="wget --no-verbose --tries=2 --timeout=60" check_release_cmd="perl -I${libdir} ${bindir}/check-release --verbose --ignoremissing --keyring ${configdir}/trusted.gpg" @@ -38,10 +41,10 @@ search_url="/search" # polangs="de fi fr hu ja nl ru sv uk zh-cn" ddtplangs="ca cs da de eo es eu fi fr hu it ja km ko nl pl pt pt-br ru sk sv uk zh zh-cn zh-tw" -archives="us" +archives="us security backports volatile" sections="main contrib non-free" parts="$sections" -suites="bo hamm slink potato woody sarge" +suites="bo hamm slink potato woody sarge sarge-volatile sarge-backports" priorities="required important standard optional extra" dists="$suites" architectures="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc" diff --git a/cron.d/100syncarchive b/cron.d/100syncarchive index f2458ba..e57ed70 100755 --- a/cron.d/100syncarchive +++ b/cron.d/100syncarchive @@ -84,3 +84,35 @@ else $check_release_cmd $archivedir/us/${dist}/Release done fi + +# security archive +# +for dist in slink potato woody sarge +do + echo "retrieve Release(.gpg) $dist" + test -d security/${dist} || mkdir -p security/${dist} + (cd security/${dist} && + $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/Release && + $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/Release.gpg ) + + foo=\$arch_${dist//-/_} + for arch in `eval echo $foo` + do + for part in ${parts} + do + echo retrieve Packages $dist/$part/security/$arch + test -d security/${dist}/${part}/binary-${arch} || mkdir -p security/${dist}/${part}/binary-${arch} + (cd security/${dist}/${part}/binary-${arch} && + $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/${part}/binary-${arch}/Packages.gz) + done + done + for part in ${parts} + do + echo retrieve Sources $dist/$part/security + test -d security/${dist}/${part}/source || mkdir -p security/${dist}/${part}/source + (cd security/${dist}/${part}/source && + $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/${part}/source/Sources.gz) + done + + $check_release_cmd $archivedir/security/${dist}/Release +done diff --git a/cron.d/100syncarchive_backports b/cron.d/100syncarchive_backports new file mode 100755 index 0000000..6a9f6d0 --- /dev/null +++ b/cron.d/100syncarchive_backports @@ -0,0 +1,41 @@ +#!/bin/bash + +. `dirname $0`/../config.sh + +test -d ${archivedir} || mkdir -p ${archivedir} +cd ${archivedir} + +# backports archive +# +for dist in sarge +do + echo "retrieve Release(.gpg) $dist-backports" + test -d backports/${dist}-backports || mkdir -p backports/${dist}-backports + (cd backports/${dist}-backports && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Release && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Release.gpg ) + + foo=\$arch_${dist//-/_} + for arch in `eval echo $foo` + do + for part in ${parts} + do + echo retrieve Packages $dist-backports/$part/$arch + test -d backports/${dist}-backports/${part}/binary-${arch} || mkdir -p backports/${dist}-backports/${part}/binary-${arch} + (cd backports/${dist}-backports/${part}/binary-${arch} && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/${part}/binary-${arch}/Packages.gz) + done + echo retrieve Contents $dist-backports/$arch + (cd backports/${dist}-backports && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Contents-${arch}.gz) + done + for part in ${parts} + do + echo retrieve Sources $dist-backports/$part + test -d backports/${dist}-backports/${part}/source || mkdir -p backports/${dist}-backports/${part}/source + (cd backports/${dist}-backports/${part}/source && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/${part}/source/Sources.gz) + done + + $check_release_cmd $archivedir/backports/${dist}-backports/Release +done diff --git a/cron.d/100syncarchive_volatile b/cron.d/100syncarchive_volatile new file mode 100755 index 0000000..d5fd887 --- /dev/null +++ b/cron.d/100syncarchive_volatile @@ -0,0 +1,42 @@ +#!/bin/bash + +. `dirname $0`/../config.sh + +test -d ${archivedir} || mkdir -p ${archivedir} +cd ${archivedir} + +# volatile archive +# +for dist in sarge +do + echo "retrieve Release(.gpg) $dist-volatile" + test -d volatile/${dist}-volatile || mkdir -p volatile/${dist}-volatile + (cd volatile/${dist}-volatile && + $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/Release && + $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/Release.gpg ) + + foo=\$arch_${dist//-/_} + for arch in `eval echo $foo` + do + for part in ${parts} + do + echo retrieve Packages $dist-volatile/$part/$arch + test -d volatile/${dist}-volatile/${part}/binary-${arch} || mkdir -p volatile/${dist}-volatile/${part}/binary-${arch} + (cd volatile/${dist}-volatile/${part}/binary-${arch} && + $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/binary-${arch}/Packages.gz) + done + echo retrieve Contents $dist-volatile/$arch + (cd volatile/${dist}-volatile && + $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/Contents-${arch}.gz) + + done + for part in ${parts} + do + echo retrieve Sources $dist-volatile/$part + test -d volatile/${dist}-volatile/${part}/source || mkdir -p volatile/${dist}-volatile/${part}/source + (cd volatile/${dist}-volatile/$part/source && + $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/source/Sources.gz) + done + + $check_release_cmd $archivedir/volatile/${dist}-volatile/Release +done -- 2.39.2