From fbc4cc60726cfd5cb7c830b51dabb9effa582e7d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 17 Jun 2007 07:47:57 +0000 Subject: [PATCH] First Debian package. Only tested on Debian testing (lenny). --- Makefile.am | 7 +++- debian/README | 6 +++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 25 ++++++++++++ debian/copyright | 39 +++++++++++++++++++ debian/rules | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++ etc/testserver.xml | 4 +- 8 files changed, 191 insertions(+), 4 deletions(-) create mode 100644 debian/README create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/Makefile.am b/Makefile.am index 14c1e6c..49f7ec1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am,v 1.8 2007-05-15 15:50:47 adam Exp $ +# $Id: Makefile.am,v 1.9 2007-06-17 07:47:57 adam Exp $ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 @@ -13,7 +13,10 @@ dist-hook: cvs=`find $(distdir)/etc -name CVS -type d -print`; if test "$$cvs"; then rm -r $$cvs; fi cp -r $(srcdir)/www $(distdir) cvs=`find $(distdir)/www -name CVS -type d -print`; if test "$$cvs"; then rm -r $$cvs; fi - + mkdir $(distdir)/debian + for f in $(srcdir)/debian/*; do \ + test -f $$f && cp $$f $(distdir)/debian; \ + done cvs2cl: cvs2cl diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..bb4658c --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package pazpar2 +---------------------------- + +Comments regarding the Package + + -- Adam Dickmeiss Sun, 17 Jun 2007 08:44:17 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2c6b3b7 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +pazpar2 (0.1) unstable; urgency=low + + * Initial Release. + + -- Adam Dickmeiss Sun, 17 Jun 2007 08:44:17 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c8215be --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: pazpar2 +Section: net +Priority: extra +Maintainer: Adam Dickmeiss +Build-Depends: debhelper (>= 5), autotools-dev, libyaz3-dev, libicu36-dev +Standards-Version: 3.7.2 + +Package: pazpar2 +Architecture: any +Depends: ${shlibs:Depends} +Description: High-performance metaseacher + Pazpar2 is a high-performance, user interface-independent, data + model-independent metasearching middleware featuring merging, relevance + ranking, record sorting, and faceted results. + +Package: pazpar2-doc +Section: doc +Architecture: all +Description: Documentation for Pazpar2 metasearcher + Pazpar2 is a high-performance, user interface-independent, data + model-independent metasearching middleware featuring merging, relevance + ranking, record sorting, and faceted results. + . + This packages includes HTML documentation for Pazpar2. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b22a1e1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by Adam Dickmeiss on +Sun, 17 Jun 2007 08:44:17 +0200. + +It was downloaded from + +Upstream Authors: + + Sebastian Hammer + Jakub Skoczen + +Copyright: + + Copyright (C) 2007, Index Data + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Adam Dickmeiss and +is licensed under the GPL, see above. + + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..84bf4d8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,108 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: configure + dh_testdir + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --with-yaz=/usr/bin --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/pazpar2. + $(MAKE) DESTDIR=$(CURDIR)/debian/pazpar2 install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + mv $(CURDIR)/debian/pazpar2/usr/share/doc/pazpar2/* $(CURDIR)/debian/pazpar2-doc/usr/share/doc/pazpar2-doc + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/etc/testserver.xml b/etc/testserver.xml index d514bb0..ca4fd44 100644 --- a/etc/testserver.xml +++ b/etc/testserver.xml @@ -1,7 +1,7 @@ - + - + -- 1.7.10.4