From f7e86206f587b2ec1ab354e8c0e7336c54a243dc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 6 Nov 2014 17:01:00 -0200 Subject: Pbuilder: support for local repository (2) --- README.mdwn | 9 +++++++++ config.dot/pbuilder/hooks/D90update.link | 3 +++ pbuilderrc.dot.link | 4 ++-- 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 -- cgit v1.2.3