Don't over-write PAM config file
authorJamie Cameron <jcameron@webmin.com>
Fri, 20 Mar 2009 17:27:23 +0000 (17:27 +0000)
committerJamie Cameron <jcameron@webmin.com>
Fri, 20 Mar 2009 17:27:23 +0000 (17:27 +0000)
makedebian.pl

index 71c17aa..ac34082 100755 (executable)
@@ -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" )) {