]> git.donarmstrong.com Git - debhelper.git/blob - dh_installpam
r338: * Patch from Jorgen `forcer' Schaefer <forcer at mindless.com> (much
[debhelper.git] / dh_installpam
1 #!/usr/bin/perl -w
2 #
3 # Integration with debian pam system:
4 #
5 # If debian/pam file exists, save it to $TMP/etc/pam.d/$PACKAGE
6
7 use Debian::Debhelper::Dh_Lib;
8 init();
9
10 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
11         $TMP=tmpdir($PACKAGE);
12         $pam=pkgfile($PACKAGE,"pam");
13         
14         if ($pam ne '') {
15                 if (! -d "$TMP/etc/pam.d") {
16                         doit("install","-d","$TMP/etc/pam.d");
17                 }
18                 doit("install","-p","-m644",$pam,"$TMP/etc/pam.d/$PACKAGE");
19         }
20 }