diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-07-07 23:26:17 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-04-15 10:11:40 -0700 |
commit | efa67f62434728d622b9d8c88817b6efcf822511 (patch) | |
tree | 4b3f507d06af996855fc29ac1a534363df3088d6 /.pbuilderrc | |
parent | eb29ceccc63e5fc103bcfacd7e5a88cb659e13e8 (diff) | |
download | dotfiles-efa67f62434728d622b9d8c88817b6efcf822511.tar.gz |
add pbuilderrc
Diffstat (limited to '.pbuilderrc')
-rw-r--r-- | .pbuilderrc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.pbuilderrc b/.pbuilderrc new file mode 100644 index 00000000..f3140f0b --- /dev/null +++ b/.pbuilderrc @@ -0,0 +1,22 @@ +# mapreri's config to put everything under $HOME, since I'm only using +# pbuilder for a little while + +DISTRIBUTION="${DIST:-unstable}" +ARCHITECTURE="${ARCH:-$(dpkg --print-architecture)}" + +HOME="${HOME:-/home/spwhitton}" +HOOKDIR="$HOME/local/pbuilder/hooks" +BUILDPLACE="$HOME/local/pbuilder/build" +CCACHEDIR="/var/cache/ccache-sbuild" +BASES="$HOME/local/pbuilder/chroots" +BASETGZ="$BASES/${DISTRIBUTION}-${ARCHITECTURE}-base.tgz" +BUILDRESULT="$HOME/local/pbuilder/result/$DISTRIBUTION/$ARCHITECTURE" +BINDMOUNTS="${BINDMOUNTS:+"$BINDMOUNTS" }$HOME/local/pbuilder/result" + +# be sure those directories exist, and not owned by root, before doing anything else +sudo -u "${SUDO_USER:-$(id -un)}" mkdir -pv "$BUILDPLACE" "$BASES" "$CCACHEDIR" "$BUILDRESULT" +mkdir -p "$HOME/local/pbuilder/cache/apt/$DISTRIBUTION/$ARCHITECTURE" +touch "$HOME/local/pbuilder/.duplicity-ignore" + +APTCACHE="$HOME/local/pbuilder/cache/apt/$DISTRIBUTION/$ARCHITECTURE" +AUTOCLEANAPTCACHE=yes |