From 80a707244b47f44f19dcd6ef1f034dbbb7488b11 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Fri, 2 May 2008 14:25:29 +0200 Subject: [PATCH] Fix up DESTDIR support --- debian/patches/00list | 1 + debian/patches/fix-destdir.dpatch | 35 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 debian/patches/00list create mode 100755 debian/patches/fix-destdir.dpatch diff --git a/debian/patches/00list b/debian/patches/00list new file mode 100644 index 00000000..dbb14fed --- /dev/null +++ b/debian/patches/00list @@ -0,0 +1 @@ +fix-destdir diff --git a/debian/patches/fix-destdir.dpatch b/debian/patches/fix-destdir.dpatch new file mode 100755 index 00000000..0aee89a3 --- /dev/null +++ b/debian/patches/fix-destdir.dpatch @@ -0,0 +1,35 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## fix-destdir.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad sogo~/configure sogo/configure +--- sogo~/configure 2008-05-02 14:20:54.000000000 +0200 ++++ sogo/configure 2008-05-02 14:24:39.000000000 +0200 +@@ -303,16 +303,16 @@ + else + cfgwrite "# configured for GNUstep install" + cfgwrite "" +- cfgwrite "SOGO_SYSLIBDIR=\${DESTDIR}/\${GNUSTEP_LIBRARY}/Libraries" +- cfgwrite "SOGO_LIBDIR=\${DESTDIR}/\${GNUSTEP_LIBRARY}/SOGo-\${SOGO_MAJOR_VERSION}.\${SOGO_MINOR_VERSION}" ++ cfgwrite "SOGO_SYSLIBDIR=\${GNUSTEP_LIBRARY}/Libraries" ++ cfgwrite "SOGO_LIBDIR=\${GNUSTEP_LIBRARY}/SOGo-\${SOGO_MAJOR_VERSION}.\${SOGO_MINOR_VERSION}" + cfgwrite "SOGO_TEMPLATESDIR=\${SOGO_LIBDIR}/Templates" + cfgwrite "SOGO_WEBSERVERRESOURCESDIR=\${SOGO_LIBDIR}/WebServerResources" +- cfgwrite "SOGO_TOOLS=\${DESTDIR}/\${GNUSTEP_TOOLS}" +- cfgwrite "SOGO_ADMIN_TOOLS=\${DESTDIR}/\${GNUSTEP_ADMIN_TOOLS}" +- cfgwrite "SOPE_SAXMAPPINGS=\${DESTDIR}/\${GNUSTEP_LIBRARY}/SaxMappings" +- cfgwrite "SOPE_SAXDRIVERS=\${DESTDIR}/\${GNUSTEP_LIBRARY}/SaxDrivers-\${SOPE_MAJOR_VERSION}.\${SOPE_MINOR_VERSION}" +- cfgwrite "SOPE_WOXBUILDERS=\${DESTDIR}/\${GNUSTEP_LIBRARY}/WOxElemBuilders-\${SOPE_MAJOR_VERSION}.\${SOPE_MINOR_VERSION}" +- cfgwrite "SOGO_TYPEMODELS=\${DESTDIR}/\${GNUSTEP_LIBRARY}/OCSTypeModels" ++ cfgwrite "SOGO_TOOLS=\${GNUSTEP_TOOLS}" ++ cfgwrite "SOGO_ADMIN_TOOLS=\${GNUSTEP_ADMIN_TOOLS}" ++ cfgwrite "SOPE_SAXMAPPINGS=\${GNUSTEP_LIBRARY}/SaxMappings" ++ cfgwrite "SOPE_SAXDRIVERS=\${GNUSTEP_LIBRARY}/SaxDrivers-\${SOPE_MAJOR_VERSION}.\${SOPE_MINOR_VERSION}" ++ cfgwrite "SOPE_WOXBUILDERS=\${GNUSTEP_LIBRARY}/WOxElemBuilders-\${SOPE_MAJOR_VERSION}.\${SOPE_MINOR_VERSION}" ++ cfgwrite "SOGO_TYPEMODELS=\${GNUSTEP_LIBRARY}/OCSTypeModels" + fi + + if test $ARG_WITH_STRIP = 1; then -- 2.39.5