summaryrefslogtreecommitdiff
path: root/dh_installlogrotate
diff options
context:
space:
mode:
authorjoey <joey>2000-07-21 03:07:15 +0000
committerjoey <joey>2000-07-21 03:07:15 +0000
commit7581642a039fa6afa47d7298d4d8707d4f6279cd (patch)
tree5cce651dd19c29148026682a5176eff447e323a6 /dh_installlogrotate
parent1d3b6f28c9aa8cf91b4f2f644ceeff01352c5b0b (diff)
r361:
woaah, forgot to add these for a while
Diffstat (limited to 'dh_installlogrotate')
-rwxr-xr-xdh_installlogrotate17
1 files changed, 17 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");
+ }
+}