First go at Debian package
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Jan 2015 12:27:42 +0000 (13:27 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Jan 2015 12:27:42 +0000 (13:27 +0100)
IDMETA
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/postinst [new file with mode: 0644]
debian/postrm [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/IDMETA b/IDMETA
index fae35f0..f81e8d2 100644 (file)
--- a/IDMETA
+++ b/IDMETA
@@ -1,4 +1,5 @@
 NAME=mp-sparql
 CENTOS_DIST="centos6"
+DEBIAN_DIST="jessie wheezy"
+UBUNTU_DIST="utopic trusty saucy precise"
 VERSION=0.1
-ARCHS=amd64
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..465e727
--- /dev/null
@@ -0,0 +1,18 @@
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..23477a8
--- /dev/null
@@ -0,0 +1,6 @@
+This is the debian meta-package for mp-sparql
+
+It was created Index Data <support@indexdata.com>.
+
+Copyright (C) 2014 by Index Data Aps.
+
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..b8ba97d
--- /dev/null
@@ -0,0 +1,17 @@
+#!/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
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..2919527
--- /dev/null
@@ -0,0 +1,17 @@
+#!/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
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..5d364be
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+export DH_VERBOSE=1
+
+%:
+       dh $@ --without python-support \
+               --parallel
+
+override_dh_auto_configure:
+       make MP_CONFIG=/usr/bin/metaproxy-config
+