summaryrefslogtreecommitdiff
path: root/libretools.conf
blob: 05db5ceb213f4aa4cc8194f007ae7658eb399ce7 (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

# The directory where the chroots are stored
CHROOTDIR=/home/chroot

# The main chroot
CHROOT=root
# The working copy
CHCOPY=copy

# Obtains CacheDir from pacman.conf
CACHEDIR=`grep "^#\?CacheDir" /etc/pacman.conf | cut -d'=' -f2`

# Directory where you store PKGBUILD patches
PATCHDIR=

# Parabola hostname (should be the same used on ssh_config
PARABOLAHOST=parabola

# Server destination of libre packages
LIBREDESTDIR=parabolagnulinux.org/repo/free
LIBRESRCDIR=parabolagnulinux.org/repo/pkgbuilds

# Recommended SSH Config
# SSH host, it's better if you have it configured on ~/.ssh/config
# with ControlMaster auto (and a shell opened somewhere else)
#
# Example:
# Host *
#    Protocol 2
#    ControlMaster auto
#    ControlPath /tmp/ssh-%r@%h:%p
#
# Host parabola
#    Port 22
#    HostName parabolagnulinux.org
#    User parabolavnx
#    IdentityFile ~/.ssh/id_rsa
#
# $ cd pkgbuild/dir
# $ ssh parabola -fN
# $ librerelease extra


# Checks if vars aren't empty
for VAR in CHROOTDIR CHROOT CHCOPY CACHEDIR PARABOLAHOST LIBREDESTDIR LIBRESRCDIR; do
    [[ -z ${!VAR} ]] && {
        echo "Configure $VAR var in $0"
        exit 1
    }
done