From b3d40be50ad3db94f37ca8c49886ce1d222da85a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 9 Jan 2015 13:27:42 +0100 Subject: [PATCH] First go at Debian package --- IDMETA | 3 ++- debian/compat | 1 + debian/control | 18 ++++++++++++++++++ debian/copyright | 6 ++++++ debian/postinst | 17 +++++++++++++++++ debian/postrm | 17 +++++++++++++++++ debian/rules | 10 ++++++++++ 7 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/postinst create mode 100644 debian/postrm create mode 100755 debian/rules diff --git a/IDMETA b/IDMETA index fae35f0..f81e8d2 100644 --- 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 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..465e727 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: mp-sparql +Section: web +Standards-Version: 3.6.2 +Maintainer: Adam Dickmeiss +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 index 0000000..23477a8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,6 @@ +This is the debian meta-package for mp-sparql + +It was created Index Data . + +Copyright (C) 2014 by Index Data Aps. + diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..b8ba97d --- /dev/null +++ b/debian/postinst @@ -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 index 0000000..2919527 --- /dev/null +++ b/debian/postrm @@ -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 index 0000000..5d364be --- /dev/null +++ b/debian/rules @@ -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 + -- 1.7.10.4