From 7b8c59efa065ba8b8578152f4d18e738f84e4978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 27 Aug 2020 15:36:38 +0200 Subject: New debian/sane-utils.logrotate to pack and remove old logs --- debian/changelog | 1 + debian/rules | 1 + debian/sane-utils.dirs | 1 + debian/sane-utils.logrotate | 9 +++++++++ 4 files changed, 12 insertions(+) create mode 100644 debian/sane-utils.dirs create mode 100644 debian/sane-utils.logrotate (limited to 'debian') 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 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 +} -- cgit v1.2.3