diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-11-06 15:22:16 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-11-06 15:22:16 -0200 |
commit | 988fee6db67abce1b0220abd40a7a78f6f3ae5de (patch) | |
tree | 62c2b1d4a5f505bae57749952b341b3a1087d25c /pbuilderrc.dot.link | |
parent | 0b9fc45453eeba4c69cc1fc7daf03e0124a93628 (diff) | |
download | debian-988fee6db67abce1b0220abd40a7a78f6f3ae5de.tar.gz debian-988fee6db67abce1b0220abd40a7a78f6f3ae5de.tar.bz2 |
Pbuilder: support for local repository
Diffstat (limited to 'pbuilderrc.dot.link')
-rw-r--r-- | pbuilderrc.dot.link | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pbuilderrc.dot.link b/pbuilderrc.dot.link index 4fb9ddf..ce23a70 100644 --- a/pbuilderrc.dot.link +++ b/pbuilderrc.dot.link @@ -1,19 +1,24 @@ # See /usr/share/pbuilder/pbuilderrc for defaults -# Source custom configuration -if [ -e "$HOME/.custom/pbuilderrc" ]; then - source $HOME/.custom/pbuilderrc -fi - # Basic configuration ARCH=${ARCH:=amd64} DIST=${DIST:=sid} COMPONENTS=${COMPONENTS:=main contrib non-free} HOOKDIR=${HOOKDIR:=$HOME/.config/pbuilder/hooks/} +# Source custom configuration +if [ -e "$HOME/.custom/pbuilderrc" ]; then + source $HOME/.custom/pbuilderrc +fi + # Map distribution option to our env variable DISTRIBUTION="$DIST" +# Bindmounts +if [ ! -z "$BINDMOUNTS" ]; then + mkdir -p $BINDMOUNTS +fi + # Backports # https://wiki.ubuntu.com/PbuilderHowto#Using_backport_repositories_in_pbuilder # https://wiki.debian.org/BuildingFormalBackports#Building_multi-dependencies_packages @@ -25,6 +30,9 @@ fi # https://wiki.debian.org/AutomateBackports # https://wiki.debian.org/PbuilderTricks#How_to_include_local_packages_in_the_build if [ ! -z "$LOCALDEBS" ]; then + # Ensure it exists + mkdir -p $LOCALDEBS + if [ ! -z "$OTHERMIRROR" ]; then OTHERMIRROR="$OTHERMIRROR | deb file://${LOCALDEBS} ./" else |