aboutsummaryrefslogtreecommitdiff
blob: bd1ebaeef0cdaaf6fc8ae14b8a756c3062ca3ae8 (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
33
34
35
36
37
38
#!/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="/var/tmp/mastermirror-staging/"
STAGEDIR_repo_gentoo="${BASE}/gentoo-x86-stage" # Legacy path
STAGEDIR_changelogs="${BASE}/stage/repo-gentoo-changelogs"
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.4 for all portage processing
export EPYTHON=python3.6

# XXX: If these change, then you MUST change the rsyncd modules
FINALDIR_repo_gentoo="${BASE}/gentoo-x86-final" # Legacy path
FINALDIR_changelogs="${BASE}/final/repo-gentoo-changelogs"
# snapshots-create.sh
UPLOAD="${BASE}/snapshots-final/"
REPODIR="${BASE}/gentoo-repo-final" # GITDIR is a magic variable for Git

# GPG info
# Signing key for Snapshot
#SIGNKEYID_snapshot="886182289048D40B3C3BADDA6DC226AAD8BA32AA"
#SIGNKEYID_snapshot="4AC0D5FE8F9296BA6A060A2ABB1D301B7DDAD20D"
#SIGNKEYID_snapshot="AE5454F967B56AB09AE160640838C26E239C75C4"
SIGNKEYID_snapshot="DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D"
# Signing key for rsync
SIGNKEYID_rsync="${SIGNKEYID_snapshot}"


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