]> git.deb.at Git - deb/packages.git/commitdiff
[ARCHIVE] archive.d.o now carries more data, so use it
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 3 Nov 2008 21:27:26 +0000 (22:27 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 3 Nov 2008 21:27:26 +0000 (22:27 +0100)
Add old security archives
Add sarge-volatile and sarge-backports

config.sh.sed.in
cron.d/100syncarchive
cron.d/100syncarchive_backports [new file with mode: 0755]
cron.d/100syncarchive_volatile [new file with mode: 0755]

index fb317ed7853e00da0ea62a34f7f8f8d766c1dfcd..b5053e637bd1e7ae7b6a3ed0240caf79b8caa9b7 100644 (file)
@@ -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"
index f2458ba67302f18b8183fa23466fd78f3a7255f8..e57ed70007613000c205802717c5e7ba89df0fc5 100755 (executable)
@@ -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 (executable)
index 0000000..6a9f6d0
--- /dev/null
@@ -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 (executable)
index 0000000..d5fd887
--- /dev/null
@@ -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