From: Yaroslav Halchenko <debian@onerussian.com>
Subject: [PATCH 1/3] Remove builddir prefix from the paths

Origin: Debian
Last-Update: 2012-06-19
---
 sr_unix/configure.gtc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- fis-gtm-V6.0-003.orig/sr_unix/configure.gtc
+++ fis-gtm-V6.0-003/sr_unix/configure.gtc
@@ -376,7 +376,7 @@
 cat << SEDSCRIPT > sedin$$
 s|ARCH|$arch|g
 s|ECHO|"$echo"|g
-s|GTMDIST|$gtmdist|g
+s|GTMDIST|${gtmdist#${gtm_destdir:-}}|g
 s|SERVERID|$server_id|g
 SEDSCRIPT
 for i in $pathmods
@@ -619,7 +619,7 @@
 
 	# Install gpgagent.tab
 	# This is an external call table so the path to the shared library has to be adjusted
-	echo "$gtmdist/plugin/libgtmcrypt.so" > $gtmdist/$plugin/gpgagent.tab
+	echo "${gtmdist#${gtm_destdir:-}}/plugin/libgtmcrypt.so" > $gtmdist/$plugin/gpgagent.tab
 	cat $plugin/gpgagent.tab | sed 1d >> $gtmdist/$plugin/gpgagent.tab
 
 	# Tar the source files
