summaryrefslogtreecommitdiff
path: root/config
blob: 51d89ea4f6f9e7eb486393959766b8d519b1891f (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
45
46
47
48
#!/bin/bash # non-executable, but put this there as a hint to text editors

case "$USER" in
	db-import-packages) _name=import-packages;;
	db-import-community) _name=import-community;;
	*) _name=parabola;;
esac

FTP_BASE="/srv/http/repo/public"
PKGREPOS=()
PKGPOOL=''
SRCPOOL=''

CLEANUP_DESTDIR="/srv/http/repo/private/${_name}/package-cleanup"
CLEANUP_DRYRUN=false
# Time in days to keep moved packages
CLEANUP_KEEP=30

SOURCE_CLEANUP_DESTDIR="/srv/http/repo/private/${_name}/source-cleanup"
SOURCE_CLEANUP_DRYRUN=false
# Time in days to keep moved sourcepackages
SOURCE_CLEANUP_KEEP=14

REQUIRE_SIGNATURE=true

LOCK_DELAY=10
LOCK_TIMEOUT=300

[ -n "${STAGING:-}" ] || STAGING="$HOME/staging/unknown/staging"
export TMPDIR="${TMPDIR:-/tmp}"
ARCHES=(i686 x86_64 mips64el)
DBEXT=".db.tar.gz"
FILESEXT=".files.tar.gz"
PKGEXT=".pkg.tar.?z"
SRCEXT=".src.tar.gz"

# Allowed licenses: get sourceballs only for licenses in this array
# Empty (commented out) to get sourceballs for all packages
#ALLOWED_LICENSES=('GPL' 'GPL1' 'GPL2' 'LGPL' 'LGPL1' 'LGPL2' 'LGPL2.1')

# Where to send error emails, and who they are from
LIST="dev@lists.parabolagnulinux.org"
FROM="dbscripts+${_name}@$(hostname -f)"

# Override default config with config.local
[ -f "$(dirname "${BASH_SOURCE[0]}")/config.local" ] && . "$(dirname "${BASH_SOURCE[0]}")/config.local"
[ -f "$(dirname "${BASH_SOURCE[0]}")/config.local.${_name}" ] && . "$(dirname "${BASH_SOURCE[0]}")/config.local.${_name}"
unset _name