allows Zebra 1.3 to co-exist with Zebra 2.0.
-## $Id: Makefile.am,v 1.14.2.2 2006-06-07 07:43:47 adam Exp $
+## $Id: Makefile.am,v 1.14.2.3 2006-08-14 13:37:12 adam Exp $
AUTOMAKE_OPTIONS=foreign
cp $(srcdir)/debian/control $(distdir)/debian
cp $(srcdir)/debian/changelog $(distdir)/debian
cp $(srcdir)/debian/rules $(distdir)/debian
- cp $(srcdir)/debian/postinst $(distdir)/debian
+ cp $(srcdir)/debian/*.postinst $(distdir)/debian
+ cp $(srcdir)/debian/*.prerm $(distdir)/debian
cp $(srcdir)/debian/copyright $(distdir)/debian
mkdir -p $(distdir)/perl
cd $(srcdir)/perl && ./doswig
dnl Zebra, Index Data Aps, 1995-2006
-dnl $Id: configure.in,v 1.91.2.24 2006-08-14 08:37:47 adam Exp $
+dnl $Id: configure.in,v 1.91.2.25 2006-08-14 13:37:12 adam Exp $
dnl
AC_INIT(include/zebraver.h)
AM_INIT_AUTOMAKE(idzebra,1.3.37)
+PACKAGE_SUFFIX="-1.3"
+AC_SUBST(PACKAGE_SUFFIX)
dnl ------ Substitutions
AC_SUBST(TCL_INCLUDE)
AC_SUBST(TCL_LIB)
+idzebra (1.3.37-2) unstable; urgency=low
+
+ * zebra{srv,idx}-1.3 installed with symlinks (alternatives).
+
+ -- Adam Dickmeiss <adam@indexdata.dk> Mon, 14 Aug 2006 15:34:40 +0200
+
idzebra (1.3.37-1) unstable; urgency=low
* Internal. Upstream.
--- /dev/null
+#!/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
+
--- /dev/null
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove|deconfigure)
+ update-alternatives --quiet --remove zebraidx /usr/bin/zebraidx-1.3
+ update-alternatives --quiet --remove zebrasrv /usr/bin/zebrasrv-1.3
+ ;;
+ *)
+esac
+++ /dev/null
-#!/bin/bash
-# Postinst script for Zebra
dh_installdeb -p idzebra
#dh_installman -p idzebra doc/zebraidx.1 doc/zebrasrv.8
- dh_installman -p idzebra debian/tmp/usr/share/man/man1/zebraidx.1 debian/tmp/usr/share/man/man8/zebrasrv.8
+ dh_installman -p idzebra debian/tmp/usr/share/man/man1/zebraidx-1.3.1 debian/tmp/usr/share/man/man8/zebrasrv-1.3.8
dh_strip
dh_compress -a
dh_shlibdeps -p idzebra $(LOCAL_LINK)
- cat debian/postinst >> debian/idzebra/DEBIAN/postinst
- chmod +x debian/idzebra/DEBIAN/postinst
-
dh_gencontrol -p idzebra
dh_md5sums -p idzebra
-## $Id: Makefile.am,v 1.23.2.1 2004-08-19 13:10:23 adam Exp $
+## $Id: Makefile.am,v 1.23.2.2 2006-08-14 13:37:18 adam Exp $
docdir=$(datadir)/doc/@PACKAGE@
SUPPORTFILES = \
PNGFILES=zebra.png
EPSFILES=zebra.eps
-MANFILES=zebraidx.1 zebrasrv.8
+MANFILES=zebraidx$(PACKAGE_SUFFIX).1 zebrasrv$(PACKAGE_SUFFIX).8
REFFILES=zebraidx-man.sgml zebrasrv-man.sgml
$(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
zvrank.txt marc_indexing.xml
-zebraidx.1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
+zebraidx$(PACKAGE_SUFFIX).1: zebraidx-man.sgml zebraidx-options.xml zebraidx-commands.xml
if test ! -f zebraidx-options.xml ; then ln -s $(srcdir)/zebraidx-options.xml .; fi
if test ! -f zebraidx-commands.xml ; then ln -s $(srcdir)/zebraidx-commands.xml .; fi
docbook2man $(srcdir)/zebraidx-man.sgml
+ mv zebraidx.1 zebraidx$(PACKAGE_SUFFIX).1
-zebrasrv.8: zebrasrv-man.sgml
+zebrasrv$(PACKAGE_SUFFIX).8: zebrasrv-man.sgml
docbook2man $(srcdir)/zebrasrv-man.sgml
+ mv zebrasrv.8 zebrasrv$(PACKAGE_SUFFIX).8
$(HTMLFILES): $(XMLFILES)
jade -E14 -D $(srcdir) -d zebrahtml.dsl -t sgml $(srcdir)/xml.dcl zebra.xml
fi \
done
-
+install-data-hook:
+ cd $(DESTDIR)$(man1dir) && ln -sf zebraidx$(PACKAGE_SUFFIX).1 zebraidx.1
+ cd $(DESTDIR)$(man8dir) && ln -sf zebrasrv$(PACKAGE_SUFFIX).8 zebrasrv.8
-## $Id: Makefile.am,v 1.23.2.1 2006-03-24 13:47:29 adam Exp $
+## $Id: Makefile.am,v 1.23.2.2 2006-08-14 13:37:20 adam Exp $
-noinst_PROGRAMS = apitest kdump
+noinst_PROGRAMS = apitest kdump zebrash
noinst_LIBRARIES = libzebra.a
../recctrl/librecctrl.a ../data1/libdata1.a ../bfile/libbfile.a \
../dfa/libdfa.a ../util/libutil.a
-bin_PROGRAMS = zebraidx zebrasrv zebrash
+bin_PROGRAMS = zebraidx zebrasrv
zebraidx_SOURCES = main.c
zebrasrv_SOURCES = zserver.c
ar cru libzebra.a $(libzebra_a_OBJECTS) atmp/*.o
-rm -fr atmp
$(RANLIB) libzebra.a
+
+install-exec-hook:
+ cd $(DESTDIR)$(bindir); for p in $(bin_PROGRAMS); do \
+ mv -f $$p $$p$(PACKAGE_SUFFIX); \
+ ln -sf $$p$(PACKAGE_SUFFIX) $$p; \
+ done
+
+uninstall-hook:
+ cd $(DESTDIR)$(bindir) && for p in $(bin_PROGRAMS); do \
+ rm -f $$p$(PACKAGE_SUFFIX); \
+ done