aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/04_invoke-rc.d.diff
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2024-03-29 11:16:52 +0100
committervg <vgm+dev@devys.org>2024-03-29 11:16:52 +0100
commit8eae1aca826e08d953a43978bae554f20d07897a (patch)
treebcbb8a580d5b29f35bb90d6ef1a05d80aed67e66 /debian/patches/04_invoke-rc.d.diff
parent9f542a1e74323a7247a19de9d7349a7269c63002 (diff)
downloadfetchmail-8eae1aca826e08d953a43978bae554f20d07897a.tar.gz
fetchmail-8eae1aca826e08d953a43978bae554f20d07897a.tar.bz2
fetchmail-8eae1aca826e08d953a43978bae554f20d07897a.zip
get debian directory from debian archive
Diffstat (limited to 'debian/patches/04_invoke-rc.d.diff')
-rw-r--r--debian/patches/04_invoke-rc.d.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/04_invoke-rc.d.diff b/debian/patches/04_invoke-rc.d.diff
new file mode 100644
index 00000000..8fc1bcf5
--- /dev/null
+++ b/debian/patches/04_invoke-rc.d.diff
@@ -0,0 +1,19 @@
+Description: patch contrib files to run invoke-rc.d instead of /etc/init.d/* directly
+ This is required by policy 4.0.0.
+Author: Nicolas Boulenguez <nicolas@debian.org>
+
+--- a/contrib/fetchmail.logrotate
++++ b/contrib/fetchmail.logrotate
+@@ -46,11 +46,7 @@
+ sharedscripts
+ postrotate
+ if [ -f /var/run/fetchmail/fetchmail.pid ]; then \
+- if [ -x /usr/sbin/invoke-rc.d ]; then \
+- invoke-rc.d fetchmail restart > /dev/null; \
+- else \
+- /etc/init.d/fetchmail restart > /dev/null; \
+- fi; \
++ invoke-rc.d fetchmail restart > /dev/null;
+ fi;
+ endscript
+ }