From 7581642a039fa6afa47d7298d4d8707d4f6279cd Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 21 Jul 2000 03:07:15 +0000 Subject: [PATCH] r361: woaah, forgot to add these for a while --- dh_installlogrotate | 17 +++++++++++++++++ dh_installlogrotate.1 | 29 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100755 dh_installlogrotate create mode 100644 dh_installlogrotate.1 diff --git a/dh_installlogrotate b/dh_installlogrotate new file mode 100755 index 0000000..4f04ed7 --- /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 0000000..1f52272 --- /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 -- 2.39.5