blob: fa5d4b27bf772592d0cd9679600e3fc860db24c6 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
## Blacklist URL
BLACKLIST=http://repo.parabolagnulinux.org/docs/blacklist.txt
# Diff tool (vimdiff, gvimdiff, meld, etc)
DIFFTOOL=vimdiff
# The dir where you work on
WORKDIR=/home/$USER/packages
# The repos you'll be packaging for
# Tip: As early repos take precedence on $REPOS loops, you can use this as
# inverted order of precedence. Put testing repos first so fullpkg find new
# PKGBUILDs first, for instance.
REPOS=('core' 'extra' 'community' 'libre' 'libre-testing' 'social' 'sugar')
# The architectures
ARCHES=('i686' 'x86_64' 'mips64el' 'any')
## 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=${WORKDIR}/abslibre/patches
## Parabola hostname (should be the same used on ssh_config
PARABOLAHOST=parabola
## Run a command before releasing a package (ie. SSH connection, SSH tunnel, etc.)
HOOKPRERELEASE="ssh -fN parabola"
## Server destination of libre packages
# Don't change unless you know what you're doing and you won't screw
# anything ;)
LIBREDESTDIR=/home/parabolavnx/parabolagnulinux.org/repo
## ABSLibre
ABSLIBREGIT=http://projects.parabolagnulinux.org/abslibre.git
## Commit Command
## Should be git or hg
## Uncomment only one of those
#COMMITCMD=git
#COMMITCMD=hg
## Build cmd for fullpkg-ng
## Uncomment one of those or make one of your choice
FULLBUILDCMD="sudo libremakepkg -cumL -M --noconfirm -M --nocheck"
#FULLBUILDCMD="here is a place for cross-compiling build cmd"
# Checks if vars aren't empty
for VAR in CHROOTDIR CHROOT CHCOPY CACHEDIR PARABOLAHOST LIBREDESTDIR \
BLACKLIST WORKDIR PATCHDIR REPOS ARCHES ABSLIBREGIT \
COMMITCMD DIFFTOOL FULLBUILDCMD; do
[[ -z ${!VAR} ]] && {
echo "Configure $VAR var in /etc/libretools.conf"
exit 1
}
done
source /usr/bin/libremessages
## These are architecture specific files.
## Uncomment them if you installed libretools-arch
#source /etc/libretools.d/mips64el.conf
#source /etc/libretools.d/x86_64.conf
#source /etc/libretools.d/i686.conf
## Recommended SSH Config follows
# 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
#
## Repo server
# Host parabola
# Port 22
# HostName repo.parabolagnulinux.org
# User parabolavnx
# IdentityFile ~/.ssh/id_rsa
#
## Git server
# Host vparabola
# Port 1863
# HostName parabolagnulinux.org
# User parabola
# IdentityFile ~/.ssh/id_rsa
|