aboutsummaryrefslogtreecommitdiff
path: root/debian/local
diff options
context:
space:
mode:
authorSam Hartman <hartmans@debian.org>2021-08-26 14:17:22 -0600
committerSteve Langasek <steve.langasek@canonical.com>2021-09-15 17:52:40 -0700
commit3c81751953f00536c7528c8105c1327862b178ea (patch)
tree983c3b77ca91458344fb690f6a7a95827f01b5eb /debian/local
parent33d1a0b0b105d585a512a28273de3866ddd947ed (diff)
downloadpam-3c81751953f00536c7528c8105c1327862b178ea.tar.gz
pam-3c81751953f00536c7528c8105c1327862b178ea.tar.bz2
pam-3c81751953f00536c7528c8105c1327862b178ea.zip
pam-auth-update: support DPKG_ROOT
Patch from Johannes 'josch' Schauer to implement a --root argument to pam-auth-update and to use it in the call in libpam-runtime. * debian/local/pam-auth-update: support --root * debian/libpam-runtime.postinst: call with --root $DPKG_ROOT
Diffstat (limited to 'debian/local')
-rw-r--r--debian/local/pam-auth-update5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index 5b3c8a07..6c4134bb 100644
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -88,6 +88,11 @@ while ($#ARGV >= 0) {
$force = 1;
} elsif ($opt eq '--package') {
$package = 1;
+ } elsif ($opt eq '--root') {
+ my $rootdir = shift @ARGV;
+ $savedir = "${rootdir}$savedir";
+ $confdir = "${rootdir}$confdir";
+ $inputdir = "${rootdir}$inputdir";
} elsif ($opt eq '--remove') {
while ($#ARGV >= 0) {
last if ($ARGV[0] =~ /^--/);