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
27 echo retrieve Packages $dist/$part/$arch
28 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
29 (cd us/${dist}/${part}/binary-${arch} &&
30 wget -q -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
32 #FIXME: no Contents files for p-u
33 test ! "$dist" = "experimental" || continue
34 echo retrieve Contents $dist/$arch
36 wget -q -N ${ftpsite}/dists/${dist}/Contents-${arch}.gz)
40 echo retrieve Sources $dist/$part
41 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
42 (cd us/${dist}/${part}/source &&
43 wget -q -N ${ftpsite}/dists/${dist}/${part}/source/Sources.gz)
47 echo using local mirror
50 echo "retrieve Releases(.gpg) $dist"
51 test -d us/${dist} || mkdir -p us/${dist}
53 rsync -t ${localdir}/dists/${dist}/Release &&
54 rsync -t ${localdir}/dists/${dist}/Release.gpg )
56 foo=\$arch_${dist//-/_}
57 for arch in `eval echo $foo`
59 test ! "$arch" = "kfreebsd-i386" || continue
62 echo retrieve Packages $dist/$part/$arch
63 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
64 rsync -t ${localdir}/dists/${dist}/${part}/binary-${arch}/Packages.gz \
65 us/${dist}/${part}/binary-${arch}/Packages.gz
67 #FIXME: no Contents files for p-u
68 test ! "$dist" = "experimental" || continue
69 echo retrieve Contents $dist/$arch
70 rsync -t ${localdir}/dists/${dist}/Contents-${arch}.gz \
71 us/${dist}/Contents-${arch}.gz
75 echo retrieve Sources $dist/$part
76 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
77 rsync -t ${localdir}/dists/${dist}/${part}/source/Sources.gz \
78 us/${dist}/${part}/source/Sources.gz
87 foo=\$arch_${dist//-/_}
88 for arch in `eval echo $foo`
92 echo retrieve Packages $dist/$part/non-US/$arch
93 test -d non-US/${dist}/${part}/binary-${arch} || mkdir -p non-US/${dist}/${part}/binary-${arch}
94 (cd non-US/${dist}/${part}/binary-${arch} &&
95 wget -q -N ${nonus_ftpsite}/dists/${dist}/non-US/${part}/binary-${arch}/Packages.gz)
97 #FIXME: no Contents files for p-u
98 echo retrieve Contents $dist/non-US/$arch
100 wget -q -N ${nonus_ftpsite}/dists/${dist}/non-US/Contents-${arch}.gz)
104 echo retrieve Sources $dist/$part/non-US
105 test -d non-US/${dist}/${part}/source || mkdir -p non-US/${dist}/${part}/source
106 (cd non-US/${dist}/${part}/source &&
107 wget -q -N ${nonus_ftpsite}/dists/${dist}/non-US/${part}/source/Sources.gz)
113 for dist in oldstable stable testing
115 foo=\$arch_${dist//-/_}
116 for arch in `eval echo $foo`
120 echo retrieve Packages $dist/$part/security/$arch
121 test -d security/${dist}/${part}/binary-${arch} || mkdir -p security/${dist}/${part}/binary-${arch}
122 (cd security/${dist}/${part}/binary-${arch} &&
123 wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/binary-${arch}/Packages.gz)
128 echo retrieve Sources $dist/$part/security
129 test -d security/${dist}/${part}/source || mkdir -p security/${dist}/${part}/source
130 (cd security/${dist}/${part}/source &&
131 wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/source/Sources.gz)