NAME=mp-sparql
CENTOS_DIST="centos6"
+DEBIAN_DIST="jessie wheezy"
+UBUNTU_DIST="utopic trusty saucy precise"
VERSION=0.1
-ARCHS=amd64
--- /dev/null
+Source: mp-sparql
+Section: web
+Standards-Version: 3.6.2
+Maintainer: Adam Dickmeiss <adam@indexdata.dk>
+Priority: extra
+Build-Depends: debhelper (>= 7),
+ libmetaproxy6-dev,
+ xsltproc,
+ docbook-xsl,
+ docbook-xml
+
+Package: mp-sparql
+Section: libs
+Architecture: any
+Depends: metaproxy6, ${shlibs:Depends}
+Description: triplestore access module
+ mp-sparql is a module that converts Z39.50 requests to HTTP requests fo
+ accessing a triplestore.
--- /dev/null
+This is the debian meta-package for mp-sparql
+
+It was created Index Data <support@indexdata.com>.
+
+Copyright (C) 2014 by Index Data Aps.
+
--- /dev/null
+#!/bin/sh
+set -e
+
+if [ "$1" != "configure" ]; then
+ exit 0
+fi
+
+F=metaproxy_filter_sparql.so
+if [ -d /usr/lib/metaproxy6/modules ]; then
+ if [ ! -e /usr/lib/metaproxy6/modules/$F ]; then
+ ln -sf /usr/lib/mp-sparql/$F /usr/lib/metaproxy6/modules
+ fi
+ if [ -f /var/run/metaproxy.pid ]; then
+ invoke-rc.d metaproxy force-reload
+ fi
+fi
+exit 0
--- /dev/null
+#!/bin/sh -e
+F=metaproxy_filter_sparql.so
+case "$1" in
+ purge)
+ rm -f /usr/lib/metaproxy6/modules/$F
+ if [ -f /var/run/metaproxy.pid ]; then
+ invoke-rc.d metaproxy force-reload
+ fi
+ ;;
+ remove)
+ rm -f /usr/lib/metaproxy6/modules/$F
+ if [ -f /var/run/metaproxy.pid ]; then
+ invoke-rc.d metaproxy force-reload
+ fi
+ ;;
+esac
+exit 0
--- /dev/null
+#!/usr/bin/make -f
+export DH_VERBOSE=1
+
+%:
+ dh $@ --without python-support \
+ --parallel
+
+override_dh_auto_configure:
+ make MP_CONFIG=/usr/bin/metaproxy-config
+