3 . `dirname $0`/../config.sh
5 test -d ${archivedir} || mkdir -p ${archivedir}
10 if [ -z "${localdir}" ]
12 echo using remote mirror
15 foo=\$arch_${dist//-/_}
16 for arch in `eval echo $foo`
18 test ! "$arch" = "kfreebsd-i386" || continue
21 echo retrieve Packages $dist/$part/$arch
22 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
23 (cd us/${dist}/${part}/binary-${arch} &&
24 wget -q -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
26 #FIXME: no Contents files for p-u
27 test ! "$dist" = "experimental" || continue
28 echo retrieve Contents $dist/$arch
30 wget -q -N ${ftpsite}/dists/${dist}/Contents-${arch}.gz)
34 echo retrieve Sources $dist/$part
35 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
36 (cd us/${dist}/${part}/source &&
37 wget -q -N ${ftpsite}/dists/${dist}/${part}/source/Sources.gz)
41 echo using local mirror
44 foo=\$arch_${dist//-/_}
45 for arch in `eval echo $foo`
47 test ! "$arch" = "kfreebsd-i386" || continue
50 echo retrieve Packages $dist/$part/$arch
51 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
52 rsync -t ${localdir}/dists/${dist}/${part}/binary-${arch}/Packages.gz \
53 us/${dist}/${part}/binary-${arch}/Packages.gz
55 #FIXME: no Contents files for p-u
56 test ! "$dist" = "experimental" || continue
57 echo retrieve Contents $dist/$arch
58 rsync -t ${localdir}/dists/${dist}/Contents-${arch}.gz \
59 us/${dist}/Contents-${arch}.gz
63 echo retrieve Sources $dist/$part
64 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
65 rsync -t ${localdir}/dists/${dist}/${part}/source/Sources.gz \
66 us/${dist}/${part}/source/Sources.gz
75 foo=\$arch_${dist//-/_}
76 for arch in `eval echo $foo`
80 echo retrieve Packages $dist/$part/non-US/$arch
81 test -d non-US/${dist}/${part}/binary-${arch} || mkdir -p non-US/${dist}/${part}/binary-${arch}
82 (cd non-US/${dist}/${part}/binary-${arch} &&
83 wget -q -N ${nonus_ftpsite}/dists/${dist}/non-US/${part}/binary-${arch}/Packages.gz)
85 #FIXME: no Contents files for p-u
86 echo retrieve Contents $dist/non-US/$arch
88 wget -q -N ${nonus_ftpsite}/dists/${dist}/non-US/Contents-${arch}.gz)
92 echo retrieve Sources $dist/$part/non-US
93 test -d non-US/${dist}/${part}/source || mkdir -p non-US/${dist}/${part}/source
94 (cd non-US/${dist}/${part}/source &&
95 wget -q -N ${nonus_ftpsite}/dists/${dist}/non-US/${part}/source/Sources.gz)
101 for dist in oldstable stable testing
103 foo=\$arch_${dist//-/_}
104 for arch in `eval echo $foo`
108 echo retrieve Packages $dist/$part/security/$arch
109 test -d security/${dist}/${part}/binary-${arch} || mkdir -p security/${dist}/${part}/binary-${arch}
110 (cd security/${dist}/${part}/binary-${arch} &&
111 wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/binary-${arch}/Packages.gz)
116 echo retrieve Sources $dist/$part/security
117 test -d security/${dist}/${part}/source || mkdir -p security/${dist}/${part}/source
118 (cd security/${dist}/${part}/source &&
119 wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/source/Sources.gz)