Packages::Extensions ".udeb";
Contents "$(DIST)/../Contents-udeb";
};
-
-
-tree "dists/etch-backports"
-{
- FileList "/srv/backports-master.debian.org/database/dists/etch-backports_$(SECTION)_binary-$(ARCH).list";
- SourceFileList "/srv/backports-master.debian.org/database/dists/etch-backports_$(SECTION)_source.list";
- Sections "main contrib non-free";
- Architectures "alpha amd64 arm hppa hurd-i386 i386 ia64 mips mipsel m68k powerpc s390 sh sparc source";
- BinOverride "override.etch-backports.$(SECTION)";
- ExtraOverride "override.etch-backports.extra.$(SECTION)";
- SrcOverride "override.etch-backports.$(SECTION).src";
- Packages::Compress ". gzip bzip2";
- Sources::Compress ". gzip bzip2";
-};
-
-tree "dists/etch-backports/main"
-{
- FileList "/srv/backports-master.debian.org/database/dists/etch-backports_main_$(SECTION)_binary-$(ARCH).list";
- Sections "debian-installer";
- Architectures "alpha amd64 arm hppa hurd-i386 i386 ia64 mips mipsel m68k powerpc s390 sh sparc source";
- BinOverride "override.etch-backports.main.$(SECTION)";
- SrcOverride "override.etch-backports.main.src";
- BinCacheDB "packages-debian-installer-$(ARCH).db";
- Packages::Extensions ".udeb";
- Contents "$(DIST)/../Contents-udeb";
-};
+++ /dev/null
-#!/bin/bash
-
-# Copyright (c) 2005 Peter Palfrader <peter@palfrader.org>
-
-# WARNING: spaces in filenames/paths considered harmful.
-
-export SCRIPTVARS=/srv/backports-master.debian.org/dak/config/backports.org/vars
-. $SCRIPTVARS
-
-cd ${configdir}
-
-for suite in etch lenny; do
- source="${ftpdir}/dists/${suite}-backports"
- target="${base}/buildd/dists/${suite}-backports"
-
- if ! [ -d "$source" ]; then
- echo "Source '$source' does not exist or is not a directory or we can't acess it." >&2
- exit 1;
- fi
- if ! [ -d "$target" ]; then
- echo "Target '$target' does not exist or is not a directory or we can't acess it." >&2
- exit 1;
- fi
-
- for file in $( cd "$source" && find . -name 'Packages.gz' -o -name 'Packages' -o -name 'Sources.gz' -o -name 'Sources' -o -name 'Release' ); do
- basedir=$(dirname "$file")
- basename=$(basename "$file")
- targetdir="$target/$basedir"
- [ -d "$targetdir" ] || mkdir -p "$targetdir"
- if [ "$basename" = "Release" ]; then
- cp -a "$source/$file" "$target/$file"
- echo 'NotAutomatic: yes' >> "$target/$file"
- else
- cp -a "$source/$file" "$target/$file"
- fi
- done
-
-# postprocess top level Release file
- if ! [ -e "$target/Release" ]; then
- echo "Did not find $target/Release after copying stuff. something's fishy" >&2
- exit 1;
- fi
-
- cd "$target"
-
- perl -a -p -i -e '
- if (substr($_,0,1) eq " ") {
- if ($in_sha1 || $in_md5) {
- ($hash, $size, $file) = @F;
- $_="",next unless -f $file;
-
- (undef,undef,undef,undef,undef,undef,undef,$filesize,
- undef,undef,undef,undef,undef) = stat($file);
- if ($size != $filesize) {
- if ($in_sha1) {
- $hash = `sha1sum "$file" | cut -d " " -f 1`
- } else {
- $hash = `md5sum "$file" | cut -d " " -f 1`
- };
- chomp $hash;
- $_ = sprintf(" %s %16d %s\n", $hash, $filesize, $file);
- }
- }
- } else {
- $in_sha1 = ($F[0] eq "SHA1:") ? 1 : 0;
- $in_md5 = ($F[0] eq "MD5Sum:") ? 1 : 0;
- }
-' Release
-
- rm -f ${base}/buildd/dists/${suite}-backports/Release.gpg
- gpg --no-options --batch --no-tty --secret-keyring ${base}/s3kr1t/dot-gnupg/secring.gpg --output "Release.gpg" --armor --detach-sign "Release"
-done