Package: pam
Version: 1.1.8-3.6
Severity: normal

Hi, I've already uploaded -3.7 to DELAYED/5, here's the debdiff.
diff -u pam-1.1.8/debian/changelog pam-1.1.8/debian/changelog
--- pam-1.1.8/debian/changelog
+++ pam-1.1.8/debian/changelog
@@ -1,3 +1,13 @@
+pam (1.1.8-3.7) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * libpam-modules: Added a config for pam_mkhomedir, disabled by default.
+    (Closes: #568577)
+  * pam-auth-update: Add support for --enable option which is useful for
+    enabling non-default configs without prompting the admin. (LP: #1192719)
+
+ -- Timo Aaltonen <tjaal...@debian.org>  Fri, 02 Feb 2018 16:57:43 +0200
+
 pam (1.1.8-3.6) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u pam-1.1.8/debian/libpam-modules.install 
pam-1.1.8/debian/libpam-modules.install
--- pam-1.1.8/debian/libpam-modules.install
+++ pam-1.1.8/debian/libpam-modules.install
@@ -2,0 +3 @@
+debian/pam-configs/mkhomedir   usr/share/pam-configs/
diff -u pam-1.1.8/debian/local/pam-auth-update 
pam-1.1.8/debian/local/pam-auth-update
--- pam-1.1.8/debian/local/pam-auth-update
+++ pam-1.1.8/debian/local/pam-auth-update
@@ -39,7 +39,7 @@
 my $titletemplate = 'libpam-runtime/title';
 my $confdir = '/etc/pam.d';
 my $savedir = '/var/lib/pam';
-my (%profiles, @sorted, @enabled, @conflicts, @new, %removals);
+my (%profiles, @sorted, @enabled, @conflicts, @new, %removals, %to_enable);
 my $force = 0;
 my $package = 0;
 my $priority = 'high';
@@ -89,6 +89,13 @@
                }
                # --remove implies --package
                $package = 1 if (keys(%removals));
+       } elsif ($opt eq '--enable') {
+               while ($#ARGV >= 0) {
+                       last if ($ARGV[0] =~ /^--/);
+                       $to_enable{shift @ARGV} = 1;
+               }
+               # --enable implies --package
+               $package = 1 if (keys(%to_enable));
        }
 }
 
@@ -136,6 +143,10 @@
        $priority = 'high' unless ($force);
 }
 
+# add configs to enable
+push(@enabled,
+     grep { $to_enable{$_} } @sorted);
+
 # add any previously-unseen configs
 push(@enabled,
      grep { $profiles{$_}->{'Default'} eq 'yes' && !$seen{$_} } @sorted);
diff -u pam-1.1.8/debian/local/pam-auth-update.8 
pam-1.1.8/debian/local/pam-auth-update.8
--- pam-1.1.8/debian/local/pam-auth-update.8
+++ pam-1.1.8/debian/local/pam-auth-update.8
@@ -68,6 +68,10 @@
 priority of debconf questions to `medium' so that the user is not
 prompted by default.
 .TP
+.B \-\-enable \fIprofile \fR[\fIprofile\fR...]
+Enable the specified profiles in system configuration. This is used to
+enable profiles that are not on by default.
+.TP
 .B \-\-remove \fIprofile \fR[\fIprofile\fR...]
 Remove the specified profiles from the system configuration.
 .B pam\-auth\-update \-\-remove
only in patch2:
unchanged:
--- pam-1.1.8.orig/debian/pam-configs/mkhomedir
+++ pam-1.1.8/debian/pam-configs/mkhomedir
@@ -0,0 +1,7 @@
+Name: Create home directory on login
+Default: no
+Priority: 0
+Session-Type: Additional
+Session-Interactive-Only: yes
+Session:
+       optional                        pam_mkhomedir.so

Reply via email to