summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdh_installlogrotate17
-rw-r--r--dh_installlogrotate.129
2 files changed, 46 insertions, 0 deletions
diff --git a/dh_installlogrotate b/dh_installlogrotate
new file mode 100755
index 00000000..4f04ed74
--- /dev/null
+++ b/dh_installlogrotate
@@ -0,0 +1,17 @@
+#!/usr/bin/perl -w
+#
+# Install logrotate config files.
+
+use Debian::Debhelper::Dh_Lib;
+init();
+
+foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
+ $TMP=tmpdir($PACKAGE);
+ $file=pkgfile($PACKAGE,"logrotate");
+ if ($file) {
+ if (! -d "$TMP/etc/logrotate.d") {
+ doit("install","-o",0,"-g",0,"-d","$TMP/etc/logrotate.d");
+ }
+ doit("install","-m",644,$file,"$TMP/etc/logrotate.d/$PACKAGE");
+ }
+}
diff --git a/dh_installlogrotate.1 b/dh_installlogrotate.1
new file mode 100644
index 00000000..1f522728
--- /dev/null
+++ b/dh_installlogrotate.1
@@ -0,0 +1,29 @@
+.TH DH_INSTALLLOGROTATE 1 "" "Debhelper Commands" "Debhelper Commands"
+.SH NAME
+dh_installlogrotate \- install logrotate config files
+.SH SYNOPSIS
+.B dh_logrotate
+.I "[debhelper options]"
+.SH "DESCRIPTION"
+dh_installlogrotate is a debhelper program that is responsible for installing
+logrotate config files into etc/logrotate.d in package build directories.
+The file debian/logrotate is installed. If your package generates multiple
+binary packages (or if you just prefer to do it), you can also use filenames
+like debian/package.logrotate, where "package" is replaced with the name of
+the binary package this logrotate config file goes into.
+.SH OPTIONS
+.TP
+.B debhelper options
+See
+.BR debhelper (1)
+for a list of options common to all debhelper commands.
+.SH ENVIRONMENT
+See
+.BR debhelper (1)
+for a list of environment variables that affect all debhelper commands.
+.SH "SEE ALSO"
+.BR debhelper (1)
+.SH "CONFORMS TO"
+Debian policy, version 3.0.1
+.SH AUTHOR
+Joey Hess <joeyh@debian.org>