Copying misc. files to target system

Thomas Lange lange at informatik.uni-koeln.de
Sat Jan 16 13:08:25 CET 2016


    > Would you mind posting the script? I've never used apt-ftparchive. I am
This is the layout of my local repository

 cskoeln/pool/koeln/wheezy
 cskoeln/pool/koeln/jessie
 cskoeln/pool/koeln
 cskoeln/pool
 cskoeln/dists/wheezy/koeln/binary-amd64
 cskoeln/dists/wheezy/koeln/binary-i386
 cskoeln/dists/wheezy/koeln
 cskoeln/dists/wheezy
 cskoeln/dists/jessie/koeln/binary-amd64
 cskoeln/dists/jessie/koeln/binary-i386
 cskoeln/dists/jessie/koeln
 cskoeln/dists/jessie
 cskoeln/dists
 cskoeln/


I put the deb files into cskoeln/pool/koeln/jessie (or wheezy) and call
this script. The repository will not be signed.

#! /bin/bash

# make Packages.gz for internal cskoeln reporitory
# (c) T. Lange 2008


export mdir=/path/to/local/repro/cskoeln


mkindex() {

    dir=$1
    cd $mdir || return

    tmp=$(mktemp)
    apt-ftparchive packages pool/koeln/$dir > $tmp

    perl -ane 'BEGIN {$/="\n\n"}; print if /Architecture: (all|i386)/' $tmp | gzip -9 > $mdir/dists/$dir/koeln/binary-i386/Packages.gz &

    perl -ane 'BEGIN {$/="\n\n"}; print if /Architecture: (all|i386|amd64)/' $tmp | gzip -9 > $mdir/dists/$dir/koeln/binary-amd64/Packages.gz &

    wait
    rm $tmp
}

#mkindex wheezy
mkindex jessie


-- 
regards Thomas


More information about the linux-fai mailing list