[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: download.kde.org



Thomas Templin <templin@gnuwhv.de> writes:

> Hat jemand einen Tip für mich wie ich _nur_ für die i386 arch die 
> KDE3.1.2 Pakete spiegeln kann? Ich würde sie gerne für eine 
> Netzinstallation lokal vorhalten.

Ich mache das mit lftp und nachfolgendem Script.

,----
| #! /bin/sh
| #
| # This script simply mirrors the latest KDE binaries for Debian woody.
| #
| # Author: Jorg Desch <jd AT die DASH deschs DOT de>
| 
| KDE_MIRROR="ftp://ftp.uni-kl.de/pub/linux/kde";
| 
| # the remote site to mirror
| URL_REMOTE1="$KDE_MIRROR/stable/latest/Debian/dists/woody/main/binary-i386/"
| URL_REMOTE2="$KDE_MIRROR/stable/latest/Debian/pool/"
| URL_REMOTE3="$KDE_MIRROR/stable/koffice-1.2.1/Debian/woody/i386/"
| URL_REMOTE4="$KDE_MIRROR/stable/apps/KDE3.x/"
| 
| # all the mirrored files are stored in $URL_LOCAL/backported
| URL_LOCAL="~/archive/backports/kde.org/"
| 
| # GLOB pattern to exclude sources. Uncomment this to include the source packages too.
| EXCLUDE_SRC="-X *.dsc -X *.tar.gz -X *.diff.gz -X *.changes -X *alpha.deb -X *powerpc.deb"
| 
| # this is the mirror command that should be used.
| LFTP_MIRROR="mirror --only-newer --no-perms --delete --parallel=4"
| 
| echo "info: mirror $URL_REMOTE1"
| time lftp -c "$LFTP_MIRROR $EXCLUDE_SRC $URL_REMOTE1 $URL_LOCAL"
| echo "info: mirror $URL_REMOTE2"
| time lftp -c "$LFTP_MIRROR $EXCLUDE_SRC $URL_REMOTE2 $URL_LOCAL"
| echo "info: mirror $URL_REMOTE3"
| time lftp -c "$LFTP_MIRROR $EXCLUDE_SRC $URL_REMOTE3 $URL_LOCAL"
| echo "info: mirror $URL_REMOTE4"
| time lftp -c "$LFTP_MIRROR -X *.rpm $URL_REMOTE4 $URL_LOCAL"
`----


Damit das Ganze klappt, braucht Du eine hinreichend neue Version von
lftp. Diese findest Du auf meinem lieblings Backport-Server unter:

http://people.debian.org/~nobse/debian/woody/backported/lftp/
http://people.debian.org/~nobse/

-- 
Joerg Desch <jd AT die-deschs DOT de> or <joerg.desch AT t-online DOT de>




Reply to: