X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_installpam;h=85ee092751df8b5b36f0092ae16ae597427a5f93;hb=ad3d82f4a566c40f6992c4e5db795b3c0e9e87c7;hp=2262d810fe67251af704a47f8cca2c5b03c6e166;hpb=430dd853a0827cf0419d2531cf163d4c1e19c4f9;p=debhelper.git diff --git a/dh_installpam b/dh_installpam index 2262d81..85ee092 100755 --- a/dh_installpam +++ b/dh_installpam @@ -2,20 +2,20 @@ # # Integration with debian pam system: # -# If debian/pam file exists, save it to $TMP/etc/pam.d/$PACKAGE +# If debian/pam file exists, save it to $tmp/etc/pam.d/$package -BEGIN { push @INC, "debian", "/usr/lib/debhelper" } -use Dh_Lib; +use strict; +use Debian::Debhelper::Dh_Lib; init(); -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - $pam=pkgfile($PACKAGE,"pam"); +foreach my $package (@{$dh{DOPACKAGES}}) { + my $tmp=tmpdir($package); + my $pam=pkgfile($package,"pam"); if ($pam ne '') { - if (! -d "$TMP/etc/pam.d") { - doit("install","-d","$TMP/etc/pam.d"); + if (! -d "$tmp/etc/pam.d") { + doit("install","-d","$tmp/etc/pam.d"); } - doit("install","-p","-m644",$pam,"$TMP/etc/pam.d/$PACKAGE"); + doit("install","-p","-m644",$pam,"$tmp/etc/pam.d/$package"); } }