From: Adam Dickmeiss Date: Thu, 5 Sep 2002 14:36:20 +0000 (+0000) Subject: Zebra Debian packages. Towards 1.3.2 X-Git-Tag: ZEBRA.1.3.2~16 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=ad082113401287efdd32da0b2c2a3b169a169ea9 Zebra Debian packages. Towards 1.3.2 --- diff --git a/CHANGELOG b/CHANGELOG index 8f2e6a6..3720a88 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,5 @@ ---- 1.3.2 2002/MM/DD +--- 1.3.2 2002/09/DD New config setting, followLinks, that controls whether update or files should follow symbolic. Set it to 1 (for enable) or 0 (to disable). diff --git a/Makefile.am b/Makefile.am index 91835e9..2096f0d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am,v 1.4 2002-04-05 08:46:26 adam Exp $ +## $Id: Makefile.am,v 1.5 2002-09-05 14:36:20 adam Exp $ AUTOMAKE_OPTIONS=foreign @@ -19,6 +19,12 @@ dist-hook: cp $$i $(distdir)/win; \ fi; \ done + mkdir $(distdir)/debian + cp $(srcdir)/debian/control $(distdir)/debian + cp $(srcdir)/debian/changelog $(distdir)/debian + cp $(srcdir)/debian/rules $(distdir)/debian + cp $(srcdir)/debian/postinst $(distdir)/debian + rpm: $(PACKAGE)-$(VERSION).tar.gz cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES diff --git a/configure.in b/configure.in index 4b1c309..ff0e2be 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,8 @@ dnl Zebra, Index Data Aps, 1995-2002 -dnl $Id: configure.in,v 1.45 2002-09-02 11:19:33 adam Exp $ +dnl $Id: configure.in,v 1.46 2002-09-05 14:36:20 adam Exp $ dnl AC_INIT(include/zebraver.h) -AM_INIT_AUTOMAKE(zebra,1.3.1) +AM_INIT_AUTOMAKE(zebra,1.3.2) dnl ------ Substitutions AC_SUBST(TCL_INCLUDE) AC_SUBST(TCL_LIB) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1afbcfd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +zebra (1.3.1-1) unstable; urgency=low + + * First debian package + + -- Adam Dickmeiss Wed, 5 Sep 2002 16:33:09 +0100 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..34c8a24 --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: zebra +Standards-Version: 2.5.0.0 +Maintainer: Adam Dickmeiss +Priority: extra +Build-Depends: yaz-devel (>= 1.9), libexpat1-dev, tcl8.3-dev, libbz2-dev + +Package: zebra-doc +Section: devel +Architecture: any +Recommends: zebra-runtime +Description: Zebra (documentation) + Zebra is a high-performance, general-purpose structured text indexing + and retrieval engine. It reads structured records in a variety of input + formats (eg. email, XML, MARC) and allows access to them through exact + boolean search expressions and relevance-ranked free-text queries. + +Package: zebra-runtime +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, yaz-runtime (>= 1.9), libexpat1, tcl8.3, libbz2 +Description: Zebra (runtime files) + Zebra is a high-performance, general-purpose structured text indexing + and retrieval engine. It reads structured records in a variety of input + formats (eg. email, XML, MARC) and allows access to them through exact + boolean search expressions and relevance-ranked free-text queries. + diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..82f5f06 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,4 @@ +#!/bin/bash + +# Postinst script for Zebra +ldconfig diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..bde690c --- /dev/null +++ b/debian/rules @@ -0,0 +1,132 @@ +#!/usr/bin/make -f +# +# Script for building Zebra from source to .deb-packages. +# +# Created by Adam Dickmeiss, based on script by +# Morten Hendriksen and from Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=2 + +CONFIG_FLAGS=--with-tclconfig=/usr/lib/tcl8.3 --prefix=/usr + +# Enable parallel builds if CONCURRENCY_LEVEL is set +ifdef CONCURRENCY_LEVEL +MCFLAGS=-j$(CONCURRENCY_LEVEL) +else +MCFLAGS= +endif + +ZEBRA_VERSION=1.3.2 +ZEBRASRCDIR?=$(shell pwd) +# If this is not IndexData's release, then it is a cvs-checkout. Go cheat! +# YAZ_VERSION:=$(YAZ_VERSION)-$(shell date -r$(YAZSRCDIR)/CVS +"CVS%Y%m%d") +export ZEBRA_VERSION + +# Local library path for linking with right dependencies +LOCAL_LINK=-ldebian/zebra-runtime/usr/lib + +$(ZEBRASRCDIR)/configure: $(ZEBRASRCDIR)/configure.in + cd $(ZEBRASRCDIR); sh buildconf.sh + +configure: stamp-configure +stamp-configure: $(ZEBRASRCDIR)/configure + dh_testdir + + -rm -rf build + mkdir build + cd build; $(ZEBRASRCDIR)/configure $(CONFIG_FLAGS) + touch stamp-configure + +build: stamp-build +stamp-build: stamp-configure + dh_testdir + + # Add here commands to compile the package. + $(MAKE) -C build $(MCFLAGS) + + touch stamp-build + +clean: + dh_testdir + #dh_testroot + -rm -f stamp-* + -rm -rf build + + dh_clean + -rm -rf debian/zebra-runtime debian/*.debhelper debian/substvars + +install: stamp-install +stamp-install: stamp-build + dh_testdir + dh_testroot + dh_clean -k -a + dh_installdirs -a + + # Add here commands to install the package into debian/tmp. + -mkdirhier debian/tmp/usr + $(MAKE) -C build install prefix=`pwd`/debian/tmp/usr + + touch stamp-install + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs -p zebra-doc doc/ + dh_installchangelogs -p zebra-doc + dh_link -p zebra-doc + dh_strip -p zebra-doc + dh_compress -p zebra-doc + dh_fixperms -p zebra-doc + dh_gencontrol -p zebra-doc + dh_md5sums -p zebra-doc + + dh_builddeb -p zebra-doc + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_movefiles -p zebra-runtime usr/share/zebra usr/bin + + cp LICENSE.zebra debian/copyright + cp CHANGELOG changelog + dh_installdocs --all README TODO changelog debian/copyright + + dh_installchangelogs + dh_link + dh_strip + dh_compress -a + dh_fixperms -a + + dh_installdeb -p zebra-runtime + dh_installdeb -p zebra-devel + dh_undocumented -p zebra-runtime zebraidx.1 zebrasrv.1 + dh_shlibdeps -p zebra-runtime $(LOCAL_LINK) + + # Ugh Ugly hack + cat debian/postinst >> debian/zebra-runtime/DEBIAN/postinst + + dh_gencontrol -p zebra-runtime + dh_md5sums -p zebra-runtime + + # Go kill those CVS-dirs before build + -find debian/tmp -type d -name CVS | xargs rm -rf + # For some reason it is necessary to remove empty-dirs in zebra-doc + -rm -rf debian/tmp/usr/include debian/tmp/usr/share/aclocal debian/tmp/usr/lib debian/tmp/usr/bin \ + debian/tmp/usr/share/zebra + + dh_builddeb -p zebra-runtime + + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install install-stamp configure + +zebrarelease: + # Conveniency target for building zebra + dh_testdir + dpkg-buildpackage $(EXTRA_OPTS) -rfakeroot diff --git a/include/zebraver.h b/include/zebraver.h index 37a9ecb..1f3b0d8 100644 --- a/include/zebraver.h +++ b/include/zebraver.h @@ -1,4 +1,4 @@ -/* $Id: zebraver.h,v 1.23 2002-08-20 12:01:00 adam Exp $ +/* $Id: zebraver.h,v 1.24 2002-09-05 14:36:20 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -23,9 +23,9 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef ZEBRAVER -#define ZEBRAVER "1.3.1" +#define ZEBRAVER "1.3.2" #endif #ifndef ZEBRADATE -#define ZEBRADATE "$Date: 2002-08-20 12:01:00 $" +#define ZEBRADATE "$Date: 2002-09-05 14:36:20 $" #endif diff --git a/win/zebra.nsi b/win/zebra.nsi index f32df3a..77b1df4 100644 --- a/win/zebra.nsi +++ b/win/zebra.nsi @@ -1,6 +1,6 @@ -; $Id: zebra.nsi,v 1.1 2002-08-30 11:28:55 adam Exp $ +; $Id: zebra.nsi,v 1.2 2002-09-05 14:36:20 adam Exp $ -!define VERSION "1.3.1" +!define VERSION "1.3.2" Name "Zebra" Caption "Index Data Yebra ${VERSION} Setup"