summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-08-27 15:36:38 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-08-27 15:36:38 +0200
commit7b8c59efa065ba8b8578152f4d18e738f84e4978 (patch)
tree7b8bebc1064c86c85b65ecff14c736b283ae8fbe /debian
parent6f34a8d9c2a868e4b1a9ec6394f0b9d4768eefc3 (diff)
New debian/sane-utils.logrotate to pack and remove old logs
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/rules1
-rw-r--r--debian/sane-utils.dirs1
-rw-r--r--debian/sane-utils.logrotate9
4 files changed, 12 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 0d424dc..5b0275c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,7 @@ sane-backends (1.0.31-1~experimental1) UNRELEASED; urgency=medium
- Remove 7 not longer available symbols.
* debian/saned@.service:
- Switch Standard[Output|Error] from syslog to append:/var/log/saned.log.
+ - New debian/sane-utils.logrotate to pack and remove old logs.
-- Jörg Frings-Fürst <debian@jff.email> Mon, 01 Jun 2020 13:14:34 +0200
diff --git a/debian/rules b/debian/rules
index 125838a..4d9b6e1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -75,6 +75,7 @@ override_dh_install-arch:
# Install the pkg-config file
mkdir -p debian/libsane-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
cp tools/sane-backends.pc debian/libsane-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
+ cp debian/sane-utils.logrotate debian/sane-utils/etc/logrotate.d/sane-utils
override_dh_install-indep:
dh_install
diff --git a/debian/sane-utils.dirs b/debian/sane-utils.dirs
new file mode 100644
index 0000000..ebf3df5
--- /dev/null
+++ b/debian/sane-utils.dirs
@@ -0,0 +1 @@
+/etc/logrotate.d
diff --git a/debian/sane-utils.logrotate b/debian/sane-utils.logrotate
new file mode 100644
index 0000000..654e370
--- /dev/null
+++ b/debian/sane-utils.logrotate
@@ -0,0 +1,9 @@
+/var/log/saned.log {
+ daily
+ missingok
+ rotate 7
+ compress
+ copytruncate
+ notifempty
+ create 640 saned saned
+}