summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 10:45:45 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 10:45:45 -0400
commita79d7c7251f4e6fd2f8b288b5c91a77a66ecff65 (patch)
treef44145d6cda8bb20070edf1ce464ad60b6bf3a04 /config
parentf73a4a8844641b780644b8b96865372dc34936bd (diff)
parent752bd700e9da464006bfbd9877cc858dfad545ba (diff)
Merge branch 'lukeshu/xbs' into testmerge
# Conflicts: # test/lib/common.inc # test/test.d/create-filelists.sh # test/test.d/db-move.sh # test/test.d/db-remove.sh # test/test.d/db-repo-add.sh # test/test.d/db-repo-remove.sh # test/test.d/db-update.sh # test/test.d/ftpdir-cleanup.sh # test/test.d/sourceballs.sh
Diffstat (limited to 'config')
-rw-r--r--config33
1 files changed, 22 insertions, 11 deletions
diff --git a/config b/config
index 3df6c95..bd05ac8 100644
--- a/config
+++ b/config
@@ -1,18 +1,22 @@
-FTP_BASE="/srv/ftp"
-SVNREPO=''
-SVNUSER=''
+#!/hint/bash
+
+case "$USER" in
+ db-import-packages) _name=import-packages;;
+ db-import-community) _name=import-community;;
+ *) _name=parabola;;
+esac
+
+FTP_BASE="/srv/repo/main"
PKGREPOS=()
PKGPOOL=''
SRCPOOL=''
-TESTING_REPO=''
-STABLE_REPOS=()
-CLEANUP_DESTDIR="/var/tmp"
+CLEANUP_DESTDIR="/srv/repo/private/${_name}/package-cleanup"
CLEANUP_DRYRUN=false
# Time in days to keep moved packages
CLEANUP_KEEP=30
-SOURCE_CLEANUP_DESTDIR="/var/tmp"
+SOURCE_CLEANUP_DESTDIR="/srv/repo/private/${_name}/source-cleanup"
SOURCE_CLEANUP_DRYRUN=false
# Time in days to keep moved sourcepackages
SOURCE_CLEANUP_KEEP=14
@@ -22,8 +26,8 @@ REQUIRE_SIGNATURE=true
LOCK_DELAY=10
LOCK_TIMEOUT=300
-STAGING="$HOME/staging"
-TMPDIR="/var/tmp"
+[ -n "${STAGING:-}" ] || STAGING="$HOME/staging/unknown/staging"
+export TMPDIR="${TMPDIR:-/tmp}"
ARCHES=(i686 x86_64)
DBEXT=".db.tar.gz"
FILESEXT=".files.tar.gz"
@@ -31,7 +35,14 @@ PKGEXT=".pkg.tar.?z"
SRCEXT=".src.tar.gz"
# Allowed licenses: get sourceballs only for licenses in this array
-ALLOWED_LICENSES=('GPL' 'GPL1' 'GPL2' 'LGPL' 'LGPL1' 'LGPL2' 'LGPL2.1')
+# 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.parabola.nu"
+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" ] && . "$(dirname "${BASH_SOURCE[0]}")/config.local"
+[ -f "$(dirname "${BASH_SOURCE[0]}")/config.local.${_name}" ] && . "$(dirname "${BASH_SOURCE[0]}")/config.local.${_name}"
+unset _name