Package now includes modules directory
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 14 Jan 2010 16:10:27 +0000 (17:10 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 14 Jan 2010 16:10:27 +0000 (17:10 +0100)
MP modules are located in /usr/lib/metaproxy/modules and is
given in config installed by Debian package metaproxy.

debian/libmetaproxy2.dirs [new file with mode: 0644]
debian/rules
etc/Makefile.am
etc/config.debian.xml [new file with mode: 0644]

diff --git a/debian/libmetaproxy2.dirs b/debian/libmetaproxy2.dirs
new file mode 100644 (file)
index 0000000..d122cdb
--- /dev/null
@@ -0,0 +1 @@
+/usr/lib/metaproxy/modules
index 25416fb..8940b01 100755 (executable)
@@ -83,7 +83,7 @@ binary-arch: build install
        dh_installexamples
        mv debian/tmp/usr/share/doc/metaproxy debian/tmp/usr/share/doc/metaproxy-doc
        mkdir -p debian/tmp/etc/metaproxy
-       cp debian/tmp/usr/share/metaproxy/etc/config1.xml debian/tmp/etc/metaproxy/metaproxy.xml
+       cp debian/tmp/usr/share/metaproxy/etc/config.debian.xml debian/tmp/etc/metaproxy/metaproxy.xml
        dh_install 
 #      dh_installmenu
 #      dh_installdebconf       
index fa62b18..dcfd9de 100644 (file)
@@ -19,7 +19,8 @@ xmlconfig = $(srcdir)/config-bytarget.xml \
     $(srcdir)/config3.xml \
     $(srcdir)/config4.xml \
     $(srcdir)/config5.xml \
-    $(srcdir)/retrieval-info.xml
+    $(srcdir)/retrieval-info.xml \
+    $(srcdir)/config.debian.xml
 
 config = example.simple-auth example.target-auth pqf2pqf.xsl explain.xml
 
diff --git a/etc/config.debian.xml b/etc/config.debian.xml
new file mode 100644 (file)
index 0000000..d507854
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
+  <!-- Z39.50 proxy which relays to target specified in Init otherinfo 
+  (VAL_RPOXY). If no target is given, it relays to target
+  z3950.indexdata.dk -->
+  <dlpath>/usr/lib/metaproxy/modules</dlpath>
+  <start route="start"/>
+  <filters>
+    <filter id="frontend" type="frontend_net">
+      <threads>50</threads>
+      <port>@:9000</port>
+    </filter>
+    <filter id="backend" type="z3950_client">
+     <timeout>30</timeout>
+     <default_target>z3950.indexdata.dk</default_target>
+    </filter>
+  </filters>
+  <routes>  
+    <route id="start">
+      <filter refid="frontend"/>
+      <filter type="log">
+        <message>log</message>
+      </filter>
+      <filter refid="backend"/>
+      <filter type="bounce"/>
+    </route>
+  </routes>
+</metaproxy>
+