summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-09-09 12:07:36 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-09-09 12:07:36 +0200
commit2caff90d837ea25e7892bd7fc2ecbf8f3bbb941c (patch)
treee139e0302ffb4bfec1db8d90923124972f38e11a
parent2be71b968c88c5150fd96fe31aae4243fe377ae0 (diff)
Add missing mailgraph.service file; d/control: Add requested default-mta to recommends
-rw-r--r--debian/changelog2
-rw-r--r--debian/control2
-rw-r--r--debian/mailgraph.service11
-rwxr-xr-xdebian/rules3
4 files changed, 17 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index e54d1e2..2aae34e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ mailgraph (1.14-16) UNRELEASED; urgency=medium
- Add debian/NEWS.Debian to mailgraph.docs.
- Correct debian/README.Debian.
* Declare compliance with Debian Policy 4.2.1. (No changes needed).
+ * Add missing mailgraph.service file.
* Migrate to debhelper 11:
- Change debian/compat to 11.
- Bump minimum debhelper version in debian/control to >= 11.
@@ -14,6 +15,7 @@ mailgraph (1.14-16) UNRELEASED; urgency=medium
- Change Vcs-* to point to the new repository.
- Use secure URI for homepage.
- Change priority from deprecated extra to optional.
+ - Add requested default-mta to recommends.
* debian/copyright:
- Use secure URI for copyright format and source.
- Change year to 2018 for packaging.
diff --git a/debian/control b/debian/control
index b7cfad0..d12c77c 100644
--- a/debian/control
+++ b/debian/control
@@ -22,7 +22,7 @@ Depends:
Pre-Depends:
debconf (>= 0.5) | debconf-2.0
Recommends:
- httpd | apache2, exim4 | postfix | sendmail | mail-transport-agent
+ httpd | apache2, default-mta | exim4 | postfix | sendmail | mail-transport-agent
Description: RRDtool frontend for Mail statistics
Mailgraph is a very simple mail statistics RRDtool frontend for
Postfix, Sendmail or Exim that produces daily, weekly, monthly and
diff --git a/debian/mailgraph.service b/debian/mailgraph.service
new file mode 100644
index 0000000..a4d9810
--- /dev/null
+++ b/debian/mailgraph.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=mailgraph mail log file analyzer
+After=
+
+[Service]
+Nice=19
+Type=forking
+ExecStart=/usr/sbin/mailgraph -d -l /var/log/mail.log --daemon-rrd=/var/lib/mailgraph --ignore-localhost
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index 76a9cb2..6714255 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,3 +8,6 @@ override_dh_auto_configure:
override_dh_auto_clean:
rm -f mailgraph
dh_auto_clean
+
+override_dh_installsystemd:
+ dh_installsystemd -pmailgraph --no-enable --name=mailgraph