Here's the script I use to generate the pkglists every time I sync. It
is a little bit rough and it doesn't work with srclists yet:
#!/bin/sh
umask 333
FLAGS="-av $@"
MANDRAKE_SERVER=ftp.uninett.no
DEST=/export/dump/mirror/Mandrake-devel
MODULE=Mandrake-devel
TEMP=/tmp/$$.mandrake-sync
trap "rm -f $TEMP" INT TERM
function gen_pkglists
{
local COMPONENTS="cooker contrib"
local topdir=$DEST/cooker/i586/Mandrake
local basedir=$topdir/base
# we need the link so that 'genpkglist' can find the RPMs
ln -sf $topdir/RPMS $topdir/RPMS.cooker
ln -sf $DEST/contrib/RPMS $topdir/RPMS.contrib
# and this for the SRPMs
ln -sf $DEST/cooker/SRPMS $topdir/SRPMS.cooker
ln -sf $DEST/contrib/SRPMS $topdir/SRPMS.contrib
for component in $COMPONENTS; do
genpkglist --bloat --index $TEMP $topdir $component
bzip2 -c $basedir/pkglist.$component >
$basedir/pkglist.$component.bz2
#gensrclist $topdir $component $TEMP
#bzip2 -c $basedir/srclist.$component >
$basedir/srclist.$component.bz2
done
}
# the files to include
cat > $TEMP <<EOF
- hashfile
- pkglist.cooker
- pkglist.cooker.bz2
- srclist.cooker
- srclist.cooker.bz2
cooker/
cooker/i586/
cooker/i586/**
cooker/SRPMS/
cooker/SRPMS/**
contrib/
contrib/i586
contrib/RPMS/
contrib/RPMS/**
contrib/SRPMS/
contrib/SRPMS/**
EOF
rsync --include-from=$TEMP --exclude=* $FLAGS $MANDRAKE_SERVER::$MODULE
$DEST
gen_pkglists
rm -f $TEMP
chown -R nobody.users $DEST
On Sat, 2002-01-05 at 01:48, August Mayer wrote:
> Hey there,
>
> It seems that the package listing files for apt-get haven't been updated
> lately (e.g. base/pkglist.cooker has last been modified on dec 24th).
> Thus, most descriptions are outdated, and "apt-get install xyz" won't
> find the packages on the server.
>
> BTW: Is there a possibility to add those package listings to the script
> that builds the hdlists etc. ?
>
> And: Can the RPMs in the contrib directory also be somehow indexed for
> apt-get?
>
> thanks & greetings gust
>
>