aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-11-06 17:01:00 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-11-06 17:01:00 -0200
commitf7e86206f587b2ec1ab354e8c0e7336c54a243dc (patch)
tree77066fcbda3585d24d018ec6fd98fd8c751fba6f
parent988fee6db67abce1b0220abd40a7a78f6f3ae5de (diff)
downloaddebian-f7e86206f587b2ec1ab354e8c0e7336c54a243dc.tar.gz
debian-f7e86206f587b2ec1ab354e8c0e7336c54a243dc.tar.bz2
Pbuilder: support for local repository (2)
-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