From: Marc Cromme Date: Fri, 30 Jun 2006 12:13:54 +0000 (+0000) Subject: added update-alternatives script calls to map zebraidz to zebraidx-2.0 and zebrasrv... X-Git-Tag: ZEBRA.2.0.0~66 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=d3171bed6fd79937cb996f95b363a34677170bc6;p=idzebra-moved-to-github.git added update-alternatives script calls to map zebraidz to zebraidx-2.0 and zebrasrv to zebrasrv-2.0 --- diff --git a/debian/idzebra-2.0-utils.postinst b/debian/idzebra-2.0-utils.postinst new file mode 100644 index 0000000..95e2be8 --- /dev/null +++ b/debian/idzebra-2.0-utils.postinst @@ -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-2.0 50 \ + --slave /usr/share/man/man1/zebraidx.1.gz zebraidx.1.gz \ + /usr/share/man/man1/zebraidx-2.0.1.gz + +update-alternatives --quiet --install /usr/bin/zebrasrv zebrasrv \ + /usr/bin/zebrasrv-2.0 50 \ + --slave /usr/share/man/man1/zebrasrv.8.gz zebrasrv.8.gz \ + /usr/share/man/man1/zebrasrv-2.0.8.gz + diff --git a/debian/idzebra-2.0-utils.prerm b/debian/idzebra-2.0-utils.prerm new file mode 100644 index 0000000..7b1d1a9 --- /dev/null +++ b/debian/idzebra-2.0-utils.prerm @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +case "$1" in + remove|deconfigure) + update-alternatives --quiet --remove zebraidx /usr/bin/zebraidx-2.0 + update-alternatives --quiet --remove zebrasrv /usr/bin/zebrasrv-2.0 + ;; + *) +esac