+++ /dev/null
-5,6c5
-< <listen port="9004"/>
-< <proxy host="localhost:80"/>
----
-> <listen port="8004"/>
#
# Additional options that are passed to the Daemon.
-DAEMON_OPTS="-D -u nobody -p /var/run/pazpar2.pid -l /var/log/pazpar2.log -f /etc/pazpar2/pazpar2.cfg"
+DAEMON_OPTS="-D -u nobody -p /var/run/pazpar2.pid -l /var/log/pazpar2.log -f /etc/pazpar2/server.xml"
etc/pazpar2
etc/pazpar2/settings
+etc/pazpar2/services-enabled
+etc/pazpar2/services-available
usr/bin
usr/sbin
--- /dev/null
+#!/bin/sh
+set -e
+
+if [ "$1" != "configure" ]; then
+ exit 0
+fi
+if [ -x "/etc/init.d/pazpar2" ]; then
+ update-rc.d pazpar2 defaults >/dev/null
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d pazpar2 start || exit $?
+ else
+ /etc/init.d/pazpar2 start || exit $?
+ fi
+ ln -sf ../services-available/default.xml \
+ /etc/pazpar2/services-enabled/default.xml
+fi
+exit 0
# pazpar2-doc package
mv $(CURDIR)/debian/pazpar2/usr/share/doc/pazpar2/* $(CURDIR)/debian/pazpar2-doc/usr/share/doc/pazpar2-doc
# pazpar2 package
- cp $(CURDIR)/etc/pazpar2.cfg.dist $(CURDIR)/debian/pazpar2/etc/pazpar2/pazpar2.cfg
- patch $(CURDIR)/debian/pazpar2/etc/pazpar2/pazpar2.cfg $(CURDIR)/debian/cfg.patch
+ cp $(CURDIR)/debian/server.xml $(CURDIR)/debian/pazpar2/etc/pazpar2/server.xml
+ cp $(CURDIR)/etc/default.xml $(CURDIR)/debian/pazpar2/etc/pazpar2/services-available/
cp etc/settings/*.xml $(CURDIR)/debian/pazpar2/etc/pazpar2/settings/
cp etc/*.xsl $(CURDIR)/debian/pazpar2/etc/pazpar2/
# pazpar2-apache2 package
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
+
+ <server>
+ <listen port="8004"/>
+ <settings src="settings/edu.xml"/>
+ <include src="services-enabled/*.xml"/>
+ </server>
+
+</pazpar2>
+<!-- Keep this comment at the end of the file
+ Local variables:
+ mode: nxml
+ End:
+-->
+
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<service xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <timeout session="60" z3950_operation="30" z3950_session="180"/>
+ <settings src="settings/edu.xml"/>
+
+ <relevance>
+ <icu_chain id="relevance" locale="en">
+ <transform rule="[:Control:] Any-Remove"/>
+ <tokenize rule="l"/>
+ <transform rule="[[:WhiteSpace:][:Punctuation:]] Remove"/>
+ <casemap rule="l"/>
+ </icu_chain>
+ </relevance>
+
+ <sort>
+ <icu_chain id="sort" locale="en">
+ <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]] Remove"/>
+ <casemap rule="l"/>
+ </icu_chain>
+ </sort>
+
+ <mergekey>
+ <icu_chain id="mergekey" locale="en">
+ <tokenize rule="l"/>
+ <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]] Remove"/>
+ <casemap rule="l"/>
+ </icu_chain>
+ </mergekey>
+
+ <!-- we try to keep same order as in marc21.xsl -->
+ <metadata name="id" brief="yes"/>
+ <metadata name="lccn" merge="unique"/>
+ <metadata name="isbn"/>
+ <metadata name="issn"/>
+ <metadata name="tech-rep-nr"/>
+ <metadata name="author" brief="yes" termlist="yes" merge="unique"
+ rank="2" mergekey="optional"/>
+ <metadata name="author-title"/>
+ <metadata name="author-date"/>
+ <metadata name="corporate-name"/>
+ <metadata name="corporate-location"/>
+ <metadata name="corporate-date"/>
+ <metadata name="meeting-name"/>
+ <metadata name="meeting-location"/>
+ <metadata name="meeting-date"/>
+ <metadata name="date" brief="yes" sortkey="numeric" type="year"
+ merge="range" termlist="yes"/>
+ <metadata name="title" brief="yes" sortkey="skiparticle"
+ merge="longest" rank="6" mergekey="required"/>
+ <metadata name="title-remainder" brief="yes" merge="longest" rank="5"/>
+ <metadata name="title-responsibility" brief="yes" merge="longest"/>
+ <metadata name="title-dates" brief="yes" merge="longest"/>
+ <metadata name="title-medium" brief="yes" merge="longest"/>
+ <metadata name="title-number-section" brief="yes" merge="longest"/>
+ <metadata name="medium" brief="yes" merge="no" mergekey="optional"/>
+ <metadata name="iii-id" brief="yes" merge="no"/>
+ <metadata name="edition"/>
+ <metadata name="publication-place"/>
+ <metadata name="publication-name"/>
+ <metadata name="publication-date"/>
+ <metadata name="physical-extent"/>
+ <metadata name="physical-format"/>
+ <metadata name="physical-dimensions"/>
+ <metadata name="physical-accomp"/>
+ <metadata name="physical-unittype"/>
+ <metadata name="physical-unitsize"/>
+ <metadata name="physical-specified"/>
+
+ <metadata name="series-title"/>
+
+ <metadata name="description" brief="yes" merge="unique" rank="3"/>
+ <metadata name="subject-long" rank="3"/>
+ <metadata name="subject" termlist="yes" rank="0"/>
+ <metadata name="snippet" brief="yes" merge="unique"/>
+ <metadata name="electronic-url" brief="yes" merge="no"/>
+ <metadata name="electronic-format-type" />
+ <metadata name="electronic-format-instruction" />
+ <metadata name="electronic-url" brief="yes" merge="no"/>
+ <metadata name="electronic-text" brief="yes" merge="no"/>
+ <metadata name="electronic-note"/>
+ <metadata name="citation"/>
+ <metadata name="holding"/>
+ <metadata name="fulltext"/>
+ <metadata name="locallocation" brief="yes"/>
+ <metadata name="callnumber" brief="yes"/>
+ <metadata name="publicnote" brief="yes"/>
+
+ <!-- journals -->
+ <metadata name="journal-title"/>
+ <metadata name="journal-subpart"/>
+ <metadata name="volume-number"/>
+ <metadata name="issue-date"/>
+ <metadata name="issue-number"/>
+
+ <metadata name="url_recipe" setting="postproc" brief="yes" merge="no"/>
+ <metadata name="open_url_resolver" setting="parameter" merge="no"/>
+ <metadata name="open-url" merge="longest"/>
+ <metadata name="use_url_proxy" setting="postproc" brief="yes" merge="no"/>
+
+ <metadata name="publisher"/>
+ <metadata name="available"/>
+ <metadata name="due"/>
+ <metadata name="thumburl" brief="yes" merge="unique"/>
+ <metadata name="score"/>
+</service>
+<!-- Keep this comment at the end of the file
+ Local variables:
+ mode: nxml
+ End:
+-->
+
<server>
<listen port="9004"/>
<proxy host="localhost:80"/>
- <settings src="settings/edu.xml"/>
-
- <relevance>
- <icu_chain id="relevance" locale="en">
- <transform rule="[:Control:] Any-Remove"/>
- <tokenize rule="l"/>
- <transform rule="[[:WhiteSpace:][:Punctuation:]] Remove"/>
- <casemap rule="l"/>
- </icu_chain>
- </relevance>
-
- <sort>
- <icu_chain id="sort" locale="en">
- <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]] Remove"/>
- <casemap rule="l"/>
- </icu_chain>
- </sort>
-
- <mergekey>
- <icu_chain id="mergekey" locale="en">
- <tokenize rule="l"/>
- <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]] Remove"/>
- <casemap rule="l"/>
- </icu_chain>
- </mergekey>
-
- <service>
- <timeout session="60" z3950_operation="30" z3950_session="180"/>
-
- <!-- we try to keep same order as in marc21.xsl -->
- <metadata name="id" brief="yes"/>
- <metadata name="lccn" merge="unique"/>
- <metadata name="isbn"/>
- <metadata name="issn"/>
- <metadata name="tech-rep-nr"/>
- <metadata name="author" brief="yes" termlist="yes" merge="unique"
- rank="2" mergekey="optional"/>
- <metadata name="author-title"/>
- <metadata name="author-date"/>
- <metadata name="corporate-name"/>
- <metadata name="corporate-location"/>
- <metadata name="corporate-date"/>
- <metadata name="meeting-name"/>
- <metadata name="meeting-location"/>
- <metadata name="meeting-date"/>
- <metadata name="date" brief="yes" sortkey="numeric" type="year"
- merge="range" termlist="yes"/>
- <metadata name="title" brief="yes" sortkey="skiparticle"
- merge="longest" rank="6" mergekey="required"/>
- <metadata name="title-remainder" brief="yes" merge="longest" rank="5"/>
- <metadata name="title-responsibility" brief="yes" merge="longest"/>
- <metadata name="title-dates" brief="yes" merge="longest"/>
- <metadata name="title-medium" brief="yes" merge="longest"/>
- <metadata name="title-number-section" brief="yes" merge="longest"/>
- <metadata name="medium" brief="yes" merge="no" mergekey="optional"/>
- <metadata name="iii-id" brief="yes" merge="no"/>
- <metadata name="edition"/>
- <metadata name="publication-place"/>
- <metadata name="publication-name"/>
- <metadata name="publication-date"/>
- <metadata name="physical-extent"/>
- <metadata name="physical-format"/>
- <metadata name="physical-dimensions"/>
- <metadata name="physical-accomp"/>
- <metadata name="physical-unittype"/>
- <metadata name="physical-unitsize"/>
- <metadata name="physical-specified"/>
-
- <metadata name="series-title"/>
-
- <metadata name="description" brief="yes" merge="unique" rank="3"/>
- <metadata name="subject-long" rank="3"/>
- <metadata name="subject" termlist="yes" rank="0"/>
- <metadata name="snippet" brief="yes" merge="unique"/>
- <metadata name="electronic-url" brief="yes" merge="no"/>
- <metadata name="electronic-format-type" />
- <metadata name="electronic-format-instruction" />
- <metadata name="electronic-url" brief="yes" merge="no"/>
- <metadata name="electronic-text" brief="yes" merge="no"/>
- <metadata name="electronic-note"/>
- <metadata name="citation"/>
- <metadata name="holding"/>
- <metadata name="fulltext"/>
- <metadata name="locallocation" brief="yes"/>
- <metadata name="callnumber" brief="yes"/>
- <metadata name="publicnote" brief="yes"/>
-
- <!-- journals -->
- <metadata name="journal-title"/>
- <metadata name="journal-subpart"/>
- <metadata name="volume-number"/>
- <metadata name="issue-date"/>
- <metadata name="issue-number"/>
-
- <metadata name="url_recipe" setting="postproc" brief="yes" merge="no"/>
- <metadata name="open_url_resolver" setting="parameter" merge="no"/>
- <metadata name="open-url" merge="longest"/>
- <metadata name="use_url_proxy" setting="postproc" brief="yes" merge="no"/>
-
- <metadata name="publisher"/>
- <metadata name="available"/>
- <metadata name="due"/>
- <metadata name="thumburl" brief="yes" merge="unique"/>
- <metadata name="score"/>
- </service>
+ <include src="default.xml"/>
</server>
</pazpar2>