aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.mdwn9
-rwxr-xr-xconfig.dot/pbuilder/hooks/D90update.link3
-rw-r--r--pbuilderrc.dot.link4
3 files changed, 14 insertions, 2 deletions
diff --git a/README.mdwn b/README.mdwn
index 23f4b58..5fd9c14 100644
--- a/README.mdwn
+++ b/README.mdwn
@@ -3,3 +3,12 @@ Rhatto's debian dotfiles
This is the repository for rhatto's debian devscripts configuration.
More information at https://git.sarava.org/?p=metadot.git
+
+You might want use it with the following ~/.custom/pbuilderrc:
+
+ # Local package repository, see, see, see, see
+ # https://wiki.debian.org/AutomateBackports
+ # https://wiki.debian.org/PbuilderTricks#How_to_include_local_packages_in_the_build
+ EXTRAPACKAGES="apt-utils"
+ BINDMOUNTS="/path/to/debian/packages/build-area/${DIST}-${ARCH}"
+ export LOCALDEBS="$BINDMOUNTS"
diff --git a/config.dot/pbuilder/hooks/D90update.link b/config.dot/pbuilder/hooks/D90update.link
index 0c5ac42..d644b66 100755
--- a/config.dot/pbuilder/hooks/D90update.link
+++ b/config.dot/pbuilder/hooks/D90update.link
@@ -5,8 +5,11 @@
set -e
+# Generated local repository metadata
if [ ! -z "$LOCALDEBS" ]; then
+ echo "deb [trusted=yes] file://${LOCALDEBS} ./" >> /etc/apt/sources.list
( cd $LOCALDEBS; apt-ftparchive packages . > Packages )
fi
+# Update package list
/usr/bin/apt-get update
diff --git a/pbuilderrc.dot.link b/pbuilderrc.dot.link
index ce23a70..60a6106 100644
--- a/pbuilderrc.dot.link
+++ b/pbuilderrc.dot.link
@@ -34,9 +34,9 @@ if [ ! -z "$LOCALDEBS" ]; then
mkdir -p $LOCALDEBS
if [ ! -z "$OTHERMIRROR" ]; then
- OTHERMIRROR="$OTHERMIRROR | deb file://${LOCALDEBS} ./"
+ OTHERMIRROR="$OTHERMIRROR | deb [trusted=yes] file://${LOCALDEBS} ./"
else
- OTHERMIRROR="deb file://${LOCALDEBS} ./"
+ OTHERMIRROR="deb [trusted=yes] file://${LOCALDEBS} ./"
fi
fi