summaryrefslogtreecommitdiff
path: root/.pbuilderrc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-07-07 23:26:17 +0100
committerSean Whitton <spwhitton@spwhitton.name>2019-04-15 10:11:40 -0700
commitefa67f62434728d622b9d8c88817b6efcf822511 (patch)
tree4b3f507d06af996855fc29ac1a534363df3088d6 /.pbuilderrc
parenteb29ceccc63e5fc103bcfacd7e5a88cb659e13e8 (diff)
downloaddotfiles-efa67f62434728d622b9d8c88817b6efcf822511.tar.gz
add pbuilderrc
Diffstat (limited to '.pbuilderrc')
-rw-r--r--.pbuilderrc22
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