aboutsummaryrefslogtreecommitdiff
blob: a420471f7d6f81db0e6a5df0758759ea386053d8 (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
#!/bin/bash
# Copyright 2005-2015 Gentoo Foundation; Distributed under the GPL v2
# might be earlier copyright, no history available

BASE="/var/tmp/gmirror-rsync"
[[ $HOSTNAME == kookaburra ]] && BASE="/var/tmp/gmirror"
EXPORTS="${BASE}/exports"
STAGEDIR="${BASE}/gentoo-x86-stage"
CACHEDIR="${BASE}/cache"
LOGDIR="${BASE}/logs"
TIMESLOG="${LOGDIR}/$(basename $0)-times.log"
PARALLEL_PARAMS="--jobs 10 --load-average 6"
PARALLEL_PARAMS_noloadavg="--jobs 8"
# Use Python3.3 for all portage processing
export EPYTHON=python3.3

# XXX: If these change, then you MUST change the rsyncd modules
FINALDIR="${BASE}/gentoo-x86-final"
# snapshots-create.sh
UPLOAD="${BASE}/snapshots-final/"

# common function
write_time_log() {
	echo "$1" >> ${TIMESLOG}
}