zebra{srv,idx}-1.3 installed with symlinks (alternatives). This
[idzebra-moved-to-github.git] / debian / idzebra.postinst
diff --git a/debian/idzebra.postinst b/debian/idzebra.postinst
new file mode 100644 (file)
index 0000000..fab1e6c
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != configure ]; then exit 0; fi
+
+update-alternatives --quiet --install /usr/bin/zebraidx zebraidx \
+       /usr/bin/zebraidx-1.3 50 \
+       --slave /usr/share/man/man1/zebraidx.1.gz zebraidx.1.gz \
+       /usr/share/man/man1/zebraidx-1.3.1.gz
+
+update-alternatives --quiet --install /usr/bin/zebrasrv zebrasrv \
+       /usr/bin/zebrasrv-1.3 50 \
+       --slave /usr/share/man/man8/zebrasrv.8.gz zebrasrv.8.gz \
+       /usr/share/man/man8/zebrasrv-1.3.8.gz
+