Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/conf/default.conf
blob: de0ab65df9331479aaacc33f09d8439ad00f63c1 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash

# set up some common variables

set -e
export LANG=C

# dirty hack to get this stuff debugable from a bash
if [ "x$0" == "x-bash" ] || [ "x$0" == "xbash" ]; then
  base_dir="$(pwd)"
else
  base_dir="$(dirname "$(readlink -f "$0")")/.."
fi

. "${base_dir}/bin/common-functions"

work_dir="${base_dir}/work"

declare -A repo_paths
repo_paths["packages"]="${work_dir}/repos/packages"
repo_paths["community"]="${work_dir}/repos/community"
repo_paths["archlinux32"]="${work_dir}/repos/packages32"

build_list_lock_file="/tmp/build-list.lock"

master_build_server="master.build.server"
master_build_server_port="22"
master_build_server_user="build-user"
master_build_server_identity="${work_dir}/.ssh/id_rsa"

max_parallel_build_per_client=2

repo_key='0xdeadbeef'
package_key='0x15eebadc0de'
master_mirror_directory='/path/to/master/mirror'

# possibly pull in custom modifications

[ -r "${base_dir}/conf/local.conf" ] && . "${base_dir}/conf/local.conf"

# check / set up environment

mkdir -p "${work_dir}"
touch "${work_dir}/build-list"
touch "${work_dir}/deletion-list"
mkdir -p "${work_dir}/build-list.loops"

for repo in "${!repo_paths[@]}"; do

  mkdir -p "${repo_paths["${repo}"]%/*}"

  if [ ! -d "${repo_paths["${repo}"]}/.git" ]; then
    if [ "${repo}" == "archlinux32" ]; then
      repo_source='git@github.com:archlinux32/packages.git'
    else
      repo_source="git://git.archlinux.org/svntogit/${repo}.git"
    fi
    git clone "${repo_source}" "${repo_paths["${repo}"]}"
  fi

done

if [ "${master_build_server_identity}" == "${work_dir}/.ssh/id_rsa" ] && \
  [ ! -f "${master_build_server_identity}" ]; then
  mkdir -p "${master_build_server_identity%/*}"
  ssh-keygen -b4096 -f "${master_build_server_identity}"
fi