3 . `dirname $0`/../config.sh
5 test -d ${archivedir} || mkdir -p ${archivedir}
10 if [ -z "${localdir}" ]
12 echo using remote mirror
15 echo "retrieve Release(.gpg) $dist"
16 test -d us/${dist} || mkdir -p us/${dist}
18 wget -q -N ${ftpsite}/dists/${dist}/Release &&
19 wget -q -N ${ftpsite}/dists/${dist}/Release.gpg )
21 foo=\$arch_${dist//-/_}
22 for arch in `eval echo $foo`
24 test ! "$arch" = "kfreebsd-i386" || continue
25 test ! "$arch" = "kfreebsd-amd64" || continue
26 test ! "$arch" = "armel" || continue
29 echo retrieve Packages $dist/$part/$arch
30 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
31 (cd us/${dist}/${part}/binary-${arch} &&
32 wget -q -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
34 #FIXME: no Contents files for p-u
35 test ! "$dist" = "experimental" || continue
36 echo retrieve Contents $dist/$arch
38 wget -q -N ${ftpsite}/dists/${dist}/Contents-${arch}.gz)
42 echo retrieve Sources $dist/$part
43 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
44 (cd us/${dist}/${part}/source &&
45 wget -q -N ${ftpsite}/dists/${dist}/${part}/source/Sources.gz)
49 echo using local mirror
52 echo "retrieve Releases(.gpg) $dist"
53 test -d us/${dist} || mkdir -p us/${dist}
54 rsync -t ${localdir}/dists/${dist}/Release us/${dist}/Release
55 rsync -t ${localdir}/dists/${dist}/Release.gpg us/${dist}/Release.gpg
57 foo=\$arch_${dist//-/_}
58 for arch in `eval echo $foo`
60 test ! "$arch" = "kfreebsd-i386" || continue
61 test ! "$arch" = "kfreebsd-amd64" || continue
62 test ! "$arch" = "armel" || continue
65 echo retrieve Packages $dist/$part/$arch
66 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
67 rsync -t ${localdir}/dists/${dist}/${part}/binary-${arch}/Packages.gz \
68 us/${dist}/${part}/binary-${arch}/Packages.gz
70 #FIXME: no Contents files for p-u
71 test ! "$dist" = "experimental" || continue
72 echo retrieve Contents $dist/$arch
73 rsync -t ${localdir}/dists/${dist}/Contents-${arch}.gz \
74 us/${dist}/Contents-${arch}.gz
78 echo retrieve Sources $dist/$part
79 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
80 rsync -t ${localdir}/dists/${dist}/${part}/source/Sources.gz \
81 us/${dist}/${part}/source/Sources.gz
88 for dist in sarge etch lenny
90 echo "retrieve Release(.gpg) $dist"
91 test -d security/${dist} || mkdir -p security/${dist}
92 (cd security/${dist} &&
93 wget -q -N ${security_ftpsite}/dists/${dist}/updates/Release &&
94 wget -q -N ${security_ftpsite}/dists/${dist}/updates/Release.gpg )
96 foo=\$arch_${dist//-/_}
97 for arch in `eval echo $foo`
101 echo retrieve Packages $dist/$part/security/$arch
102 test -d security/${dist}/${part}/binary-${arch} || mkdir -p security/${dist}/${part}/binary-${arch}
103 (cd security/${dist}/${part}/binary-${arch} &&
104 wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/binary-${arch}/Packages.gz)
109 echo retrieve Sources $dist/$part/security
110 test -d security/${dist}/${part}/source || mkdir -p security/${dist}/${part}/source
111 (cd security/${dist}/${part}/source &&
112 wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/source/Sources.gz)