summaryrefslogtreecommitdiff
path: root/config
blob: e906d969d3b210f325eb4bca1d51e01f6b662825 (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
39
40
41
42
43
44
#!/hint/bash
# Please try to refrain from adding new variables to this file.
# Instead, create separate ${toolname}.conf files.  Only add a
# variable here if multiple tools start needing the option.

FTP_BASE="/srv/repo/main"

PKGREPOS=()
ARCHES=()
PKGPOOL=''
SRCPOOL=''

# VCS backend
VCS=none

CLEANUP_DESTDIR="/srv/repo/package-cleanup"
CLEANUP_DRYRUN=false
# Time in days to keep moved packages
CLEANUP_KEEP=30

SOURCE_CLEANUP_DESTDIR="/srv/repo/source-cleanup"
SOURCE_CLEANUP_DRYRUN=true
# Time in days to keep moved sourcepackages
SOURCE_CLEANUP_KEEP=30

LOCK_DELAY=10

[ -n "${STAGING:-}" ] || STAGING="$HOME/staging/unknown/staging"
[[ $STAGING = /* ]] || STAGING="$PWD/$STAGING"
export TMPDIR="/tmp"
DBEXT=".db.tar.gz"
FILESEXT=".files.tar.gz"
SRCEXT=".src.tar.gz"

# bash glob listing allowed extensions. Note that db-functions turns on extglob.
PKGEXTS=".pkg.tar.@(gz|bz2|xz|lzo|lrz|Z|zst)"

# Where to send error emails, and who they are from
LIST="maintenance@lists.parabola.nu"
FROM="repo@repo.parabola.nu"

# Override default config with config.local
LOCAL_CONFIG=${DBSCRIPTS_CONFIG:-"$(dirname -- "$(readlink -e -- "${BASH_SOURCE[0]}")")/config.local"}
if [[ -f "${LOCAL_CONFIG}" ]]; then . "${LOCAL_CONFIG}"; fi