summaryrefslogtreecommitdiff
path: root/dh_installpam
diff options
context:
space:
mode:
authorjoey <joey>2001-02-09 00:57:53 +0000
committerjoey <joey>2001-02-09 00:57:53 +0000
commit053f6f8b4e7431d32511aef209188a084e8c7e79 (patch)
tree209a51c8c8fdbcce25c834198f1b3ef705dcb5b0 /dh_installpam
parentae0346306694bb2c52193f6352755c223e6e8935 (diff)
r420: big monsta changes
Diffstat (limited to 'dh_installpam')
-rwxr-xr-xdh_installpam15
1 files changed, 8 insertions, 7 deletions
diff --git a/dh_installpam b/dh_installpam
index 72f8d7dd..85ee0927 100755
--- a/dh_installpam
+++ b/dh_installpam
@@ -2,19 +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
+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");
}
}