Misc clean / architecture change

This commit is contained in:
Alexandre Aubin 2017-09-01 17:34:59 +02:00
parent 66320bf7be
commit 9d14773c5a
6 changed files with 32 additions and 3 deletions

View file

@ -22,12 +22,13 @@ DEFAULT_ARCH="amd64"
HOME_VINAIGRETTE="/home/vinaigrette"
GIT_REPOS="$HOME_VINAIGRETTE/gitrepos/"
REPO_DIR=/var/www/repo/debian
PBUILDER_HOME="$HOME_VINAIGRETTE/scripts/pbuilder/"
PBUILDER_IMAGES="$HOME_VINAIGRETTE/images/"
PBUILDER_RESULTS="$PBUILDER_HOME/result"
DAILY_PACKAGES="$PBUILDER_HOME/packages/"
REPO_DIR=/var/www/repo/debian
PBUILDER_CONF="$PBUILDER_HOME/config/pbuilder/"
# Scripts

View file

@ -0,0 +1,6 @@
# ARM-specific configuration
DEBOOTSTRAP=debootstrap
#DEBOOTSTRAPOPTS=( '--variant=buildd' )
ARCHITECTURE=armhf

View file

@ -0,0 +1,18 @@
# this is your configuration file for pbuilder.
# the file in /usr/share/pbuilder/pbuilderrc is the default template.
# /etc/pbuilderrc is the one meant for overwriting defaults in
# the default template
#
# read pbuilderrc.5 document for notes on specific options.
# default distribution
DISTRIBUTION="jessie"
# default location for the user hooks directory
HOOKDIR="/etc/pbuilder/hooks"
# main mirror site for Debian
MIRRORSITE="http://cdn.debian.net/debian"
# extra packages which the system should install
EXTRAPACKAGES="lintian"

View file

@ -4,7 +4,7 @@ max_threads = 1
max_jobs = 5
kill_timeout = 90
source_cmd = /home/vinaigrette/scripts/rebuildd/get-sources ${d} ${p} ${v}
build_cmd = /home/vinaigrette/scripts/rebuildd/build-binaries ${d} ${p} ${v} ${a}
build_cmd = /home/vinaigrette/scripts/pbuilder/build-binaries ${d} ${p} ${v} ${a}
post_build_cmd = /home/vinaigrette/scripts/rebuildd/upload-binaries ${d} ${p} ${v} ${a} ${j}
dists = jessie stretch
work_dir = /var/cache/rebuildd/build

View file

@ -1,5 +1,6 @@
apt-get install nginx pbuilder reprepro rebuildd gawk sendxmpp -y
apt-get install qemu-system-arm debootstrap -y
apt-get install python-virtualenv python3-pip -y
VINAIGRETTE_HOME="/home/vinaigrette"
@ -31,6 +32,9 @@ ln -s $VINAIGRETTE_HOME/config/rebuildd.conf /etc/rebuildd/rebuilddrc
ln -s $VINAIGRETTE_HOME/images /var/cache/pbuilder/images
ln -s /var/cache/pbuilder/result $PBUILDER_RESULTS
ln -s $PBUILDER_CONF/pbuilder.conf /etc/pbuilderrc
cp $VINAIGRETTE_HOME/config/nginx.conf /etc/nginx/sites-enabled/repo.conf
cat $VINAIGRETTE_HOME/config/keys/$DEBSIGN_KEYID.pub | apt-key add

View file

@ -49,7 +49,7 @@ fi
case $arch in
armhf)
pbuilder build --debbuildopts "${DEBBUILDOPTS}" \
--configfile /etc/pbuilder/rc.d/armhf \
--configfile $PBUILDER_CONF/armhf.conf \
--basetgz $BASE_TGZ "${EXTRA_OPTS[@]}" $DSC_FILE
exit_code=$?
;;