#!/usr/bin/perl -w # # Integration with debian pam system: # # If debian/pam file exists, save it to $TMP/etc/pam.d/$PACKAGE use Debian::Debhelper::Dh_Lib; init(); foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $TMP=tmpdir($PACKAGE); $pam=pkgfile($PACKAGE,"pam"); if ($pam ne '') { if (! -d "$TMP/etc/pam.d") { doit("install","-d","$TMP/etc/pam.d"); } doit("install","-p","-m644",$pam,"$TMP/etc/pam.d/$PACKAGE"); } }