summaryrefslogtreecommitdiffstats
path: root/debian/exim4-localscan-plugin-config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:47:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:47:27 +0000
commitd5eb37dd4a5a433c40c3c1e7ead424add62663f8 (patch)
tree6a18289cb463d11227d1fa4c990548e50a09d917 /debian/exim4-localscan-plugin-config
parentAdding upstream version 4.92. (diff)
downloadexim4-d5eb37dd4a5a433c40c3c1e7ead424add62663f8.tar.xz
exim4-d5eb37dd4a5a433c40c3c1e7ead424add62663f8.zip
Adding debian version 4.92-8+deb10u6.debian/4.92-8+deb10u6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/exim4-localscan-plugin-config')
-rwxr-xr-xdebian/exim4-localscan-plugin-config12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/exim4-localscan-plugin-config b/debian/exim4-localscan-plugin-config
new file mode 100755
index 0000000..08fd2cc
--- /dev/null
+++ b/debian/exim4-localscan-plugin-config
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+case "$1" in
+ --localscan-apiversion)
+ sed -rn 's/#define LOCAL_SCAN_ABI_VERSION_(MAJOR|MINOR) *([0-9]+).*/\2/p' \
+ /usr/include/exim4/local_scan.h \
+ | (read MAJOR; read MINOR; echo ${MAJOR}.${MINOR})
+ ;;
+ *)
+ echo Usage: $0 --localscan-apiversion
+ ;;
+esac