]> git.donarmstrong.com Git - debhelper.git/commitdiff
r361:
authorjoey <joey>
Fri, 21 Jul 2000 03:07:15 +0000 (03:07 +0000)
committerjoey <joey>
Fri, 21 Jul 2000 03:07:15 +0000 (03:07 +0000)
woaah, forgot to add these for a while

dh_installlogrotate [new file with mode: 0755]
dh_installlogrotate.1 [new file with mode: 0644]

diff --git a/dh_installlogrotate b/dh_installlogrotate
new file mode 100755 (executable)
index 0000000..4f04ed7
--- /dev/null
@@ -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 (file)
index 0000000..1f52272
--- /dev/null
@@ -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>