summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config45
1 files changed, 16 insertions, 29 deletions
diff --git a/config b/config
index 8b4b8ab..51d89ea 100644
--- a/config
+++ b/config
@@ -1,40 +1,25 @@
#!/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=(
- # Arch
- {core,extra,testing,staging}
- {gnome,kde}-unstable
- {community,multilib}{,-testing,-staging}
- # Parabola
- libre{,-testing}
- libre-multilib{,-testing}
- pcr kernels cross java nonprism
- '~smv' '~xihh' '~brendan' '~lukeshu' '~emulatorman' '~aurelien' '~jorginho' '~coadde' '~drtan'
-)
-PKGPOOL='pool/parabola'
-SRCPOOL='sources/parabola'
-TESTING_REPO='testing'
-STABLE_REPOS=(
- # Arch
- {core,extra}
- {community,multilib}
- # Parabola
- libre
- libre-multilib
- pcr kernels cross java nonprism
- '~smv' '~xihh' '~brendan' '~lukeshu' '~emulatorman' '~aurelien' '~jorginho' '~coadde' '~drtan'
-)
-
-CLEANUP_DESTDIR="/srv/http/repo/private/cleanup-destdir"
+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/source-cleanup-destdir"
+SOURCE_CLEANUP_DESTDIR="/srv/http/repo/private/${_name}/source-cleanup"
SOURCE_CLEANUP_DRYRUN=false
# Time in days to keep moved sourcepackages
-SOURCE_CLEANUP_KEEP=30
+SOURCE_CLEANUP_KEEP=14
REQUIRE_SIGNATURE=true
@@ -55,7 +40,9 @@ SRCEXT=".src.tar.gz"
# Where to send error emails, and who they are from
LIST="dev@lists.parabolagnulinux.org"
-FROM="dbscripts+$(whoami)@$(hostname -f)"
+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