blob: 1fc3cd37f6309273964893683601e27504ef91a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
INFRA="
albatross
bobolink
boobie
kookaburra
jay
magpie
quetzal
starling
swan
"
cd /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/portage_mirrors
# Grab mirrors from the web
[[ -d ./var ]] || mkdir ./var
./get-mirror-list-portage.rb > ./var/g.mirrors
# infra mirrors, "manually added" to list to check
for i in ${INFRA}; do
echo "gentoo rsync://$i.gentoo.org" >> ./var/g.mirrors
done
# fatal if the state file is NOT present.
[[ -e ./var/mirmon.state ]] || touch ./var/mirmon.state
# run mirmon
/usr/bin/perl ../../mirmon -c ./mirmon.conf -q -get update
[[ -d ../../htdocs/rsync ]] || mkdir ../../htdocs/rsync
# Set up a nice link to our mirror page directly:
sed \
-e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors-rsync.xml">mirrors</a></H2>#' \
>../../htdocs/rsync/index.html <../../htdocs/rsync/index-wip.html
|