]> git.deb.at Git - deb/packages.git/blobdiff - cron.d/100syncarchive_kfreebsd
* Add back some parts of the cron job (100syncarchive_*)
[deb/packages.git] / cron.d / 100syncarchive_kfreebsd
diff --git a/cron.d/100syncarchive_kfreebsd b/cron.d/100syncarchive_kfreebsd
new file mode 100755 (executable)
index 0000000..9700f69
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/bash
+
+. `dirname $0`/../config.sh
+
+test -d ${archivedir} || mkdir -p ${archivedir}
+cd ${archivedir}
+
+# Main archive
+#
+arch=kfreebsd-i386
+
+for dist in unstable experimental
+  do
+  for part in ${parts} main/debian-installer
+    do
+    echo retrieve Packages $dist/$part/$arch
+    test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
+    (cd us/${dist}/${part}/binary-${arch} &&
+       wget -q -N ${kfreebsd_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
+  done
+  echo retrieve Contents $dist/$arch
+  (cd us/${dist} &&
+      wget -q -N ${kfreebsd_ftpsite}/dists/${dist}/Contents-${arch}.gz)
+done
+