Don't over-write PAM config file

This commit is contained in:
Jamie Cameron
2009-03-20 17:27:23 +00:00
parent ab0e5cb70c
commit fd9d3bb342

View File

@@ -37,6 +37,7 @@ $preuninstall_file = "$debian_dir/prerm";
$postuninstall_file = "$debian_dir/postrm";
$copyright_file = "$debian_dir/copyright";
$changelog_file = "$debian_dir/changelog";
$conffiles_file = "$debian_dir/conffiles";
-d "tarballs" || die "makedebian.pl must be run in the $ucproduct root directory";
-r "/etc/debian_version" || die "makedebian.pl must be run on Debian";
@@ -145,6 +146,11 @@ while(<BSD>) {
close(BSD);
close(COPY);
# Create the config files file, for those we don't want to replace
open(CONF, ">$conffiles_file");
print CONF $pam_file,"\n";
close(CONF);
# Get the changes for each module and version
$changes = { };
foreach $f (sort { $a cmp $b } ( glob("*/CHANGELOG"), "CHANGELOG" )) {