[Logcheck-commits] CVS logcheck/src

CVS User ttroxell logcheck-devel@lists.alioth.debian.org
Wed, 05 Jan 2005 18:04:23 -0700


Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv8819/src

Modified Files:
	dh_installlogcheck 
Log Message:
-remove changelog line for de-commenter
-touch cron.d/logcheck in postinst as discussed on l-devel and d-devel
-update dh_installlogcheck to current, patched version in debhelper
-re-conditionalize permission setting on <1.3.33 (I got joeyh to patch 
dh_installogcheck allready)



--- /cvsroot/logcheck/logcheck/src/dh_installlogcheck	2004/04/19 18:22:06	1.1.1.1
+++ /cvsroot/logcheck/logcheck/src/dh_installlogcheck	2005/01/06 01:04:23	1.2
@@ -2,7 +2,7 @@
 
 =head1 NAME
 
-dh_installlogcheck - install logcheck rulefiles into etc/logcheck/.*
+dh_installlogcheck - install logcheck rulefiles into etc/logcheck/
 
 =cut
 
@@ -16,32 +16,36 @@
 =head1 DESCRIPTION
 
 dh_installlocgheck is a debhelper program that is responsible for
-installing logcheck rulefiles into etc/logcheck/.* in package build
-directories. The files debian/package.logcheck.cracking.d,
-debian/package.logcheck.violations.d,
-debian/package.logcheck.violations.ignore.d,
-debian/package.logcheck.ignore.d.workstation,
-debian/package.logcheck.ignore.d.server and
-debian/package.logcheck.ignore.d.paranoid are installed.
+installing logcheck rule files into subdirectories of etc/logcheck/ in
+package build directories. The files debian/package.logcheck.cracking,
+debian/package.logcheck.violations,
+debian/package.logcheck.violations.ignore,
+debian/package.logcheck.ignore.workstation,
+debian/package.logcheck.ignore.server and
+debian/package.logcheck.ignore.paranoid are installed if present.
 
 =cut
 
 init();
 
 foreach my $package (@{$dh{DOPACKAGES}}) {
-    my $tmp=tmpdir($package);
+	my $tmp=tmpdir($package);
 
-    foreach my $type (qw{ignore.d.workstation ignore.d.server
-			     ignore.d.paranoid cracking.d
-			     violations.d violations.ignore.d}) {
-	my $logcheck=pkgfile($package,"logcheck.$type");
-	if ($logcheck) {
-	    if (! -d "$tmp/etc/logcheck/$type.d") {
-		doit("install","-m",700,"-o",0,"-g",0,"-d","$tmp/etc/logcheck/$type");
-	    }
-	    doit("install","-m",644,$logcheck,"$tmp/etc/logcheck/$type/$package");
+	foreach my $type (qw{ignore.d.workstation ignore.d.server
+	                     ignore.d.paranoid cracking.d
+                             violations.d violations.ignore.d}) {

[22 lines skipped]