[med-svn] r7310 - in trunk/packages/fis-gtm: . fis-gtm/trunk/debian fis-gtm/trunk/debian/source fis-gtm-initial-i386/trunk/debian fis-gtm-server/trunk/debian

Thorsten Alteholz alteholz-guest at alioth.debian.org
Wed Jul 20 17:31:27 UTC 2011


Author: alteholz-guest
Date: 2011-07-20 17:31:26 +0000 (Wed, 20 Jul 2011)
New Revision: 7310

Added:
   trunk/packages/fis-gtm/TODO
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/defaults.template.template
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/fis-gtm-server.lintian-overrides
Removed:
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/watch
Modified:
   trunk/packages/fis-gtm/README
   trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/defaults.template.template
   trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/fis-gtm-initial-i386.config
   trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/install.template
   trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/postinst
   trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/postrm
   trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/rules
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/control
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/doClean
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/doInstall
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/initStuff
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/install.template
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/postinst
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/postrm
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/rules
   trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/watch
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules
   trunk/packages/fis-gtm/fis-gtm/trunk/debian/source/format
Log:
more prgress: There is A Light At The End Of The Tunnel

Modified: trunk/packages/fis-gtm/README
===================================================================
--- trunk/packages/fis-gtm/README	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/README	2011-07-20 17:31:26 UTC (rev 7310)
@@ -11,6 +11,6 @@
 	source. We will start with these two first. Maybe later we
 	can build our own binary packages and do not need these anymore.
 
-  - fis-gtm-bin
+  - fis-gtm-server
 	This package is built from the source package provided by upstream. 
 

Added: trunk/packages/fis-gtm/TODO
===================================================================
--- trunk/packages/fis-gtm/TODO	                        (rev 0)
+++ trunk/packages/fis-gtm/TODO	2011-07-20 17:31:26 UTC (rev 7310)
@@ -0,0 +1,3 @@
+20110720, ta, copy i386 package to amd64 
+20110720, ta, piuparts check 
+20110720, ta, create test scenario (create DB, put in some data and query)

Modified: trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/changelog	2011-07-20 17:31:26 UTC (rev 7310)
@@ -1,4 +1,4 @@
-fis-gtm (54002A-1) UNRELEASED; urgency=low
+fis-gtm (54002A) UNRELEASED; urgency=low
 
   * Initial release (Closes: #541239)
 

Modified: trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/rules	2011-07-20 17:31:26 UTC (rev 7310)
@@ -14,3 +14,7 @@
 
 override_dh_clean:
 
+override_dh_auto_build:
+
+override_dh_auto_install:
+

Modified: trunk/packages/fis-gtm/fis-gtm/trunk/debian/source/format
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/source/format	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/source/format	2011-07-20 17:31:26 UTC (rev 7310)
@@ -1 +1 @@
-3.0 (quilt)
+3.0 (native)

Deleted: trunk/packages/fis-gtm/fis-gtm/trunk/debian/watch
===================================================================
--- trunk/packages/fis-gtm/fis-gtm/trunk/debian/watch	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm/trunk/debian/watch	2011-07-20 17:31:26 UTC (rev 7310)
@@ -1,23 +0,0 @@
-# Example watch control file for uscan
-# Rename this file to "watch" and then you can run the "uscan" command
-# to check for upstream updates and more.
-# See uscan(1) for format
-
-# Compulsory line, this is a version 3 file
-version=3
-
-# Uncomment to examine a Webpage
-# <Webpage URL> <string match>
-#http://www.example.com/downloads.php fis-gtm-(.*)\.tar\.gz
-
-# Uncomment to examine a Webserver directory
-#http://www.example.com/pub/fis-gtm-(.*)\.tar\.gz
-
-# Uncommment to examine a FTP server
-#ftp://ftp.example.com/pub/fis-gtm-(.*)\.tar\.gz debian uupdate
-
-# Uncomment to find new files on sourceforge, for devscripts >= 2.9
-# http://sf.net/fis-gtm/fis-gtm-(.*)\.tar\.gz
-
-# Uncomment to find new files on GooglePages
-# http://example.googlepages.com/foo.html fis-gtm-(.*)\.tar\.gz

Modified: trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/defaults.template.template
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/defaults.template.template	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/defaults.template.template	2011-07-20 17:31:26 UTC (rev 7310)
@@ -12,5 +12,5 @@
 
 # Current version of FIS GTM. Not setting this or leaving it blank will use
 # the default of 120003.
-FISGTM_VERSION=VVVVV
+FISGTM_VERSION_INITIAL=VVVVV
 

Modified: trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/fis-gtm-initial-i386.config
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/fis-gtm-initial-i386.config	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/fis-gtm-initial-i386.config	2011-07-20 17:31:26 UTC (rev 7310)
@@ -3,7 +3,7 @@
 set -e
 
 . /usr/share/debconf/confmodule
-CONFFILE="/etc/default/fis-gtm"
+CONFFILE="/etc/default/fis-gtm-inital"
 
 if [ -e "${CONFFILE}" ]
 then

Modified: trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/install.template
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/install.template	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/install.template	2011-07-20 17:31:26 UTC (rev 7310)
@@ -1,2 +1,2 @@
-debian/defaults.template /usr/share/fis-gtm
+debian/defaults.template /usr/share/fis-gtm-initial
 

Modified: trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/postinst
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/postinst	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/postinst	2011-07-20 17:31:26 UTC (rev 7310)
@@ -19,15 +19,15 @@
 
 
 . /usr/share/debconf/confmodule
-TEMPLATE="/usr/share/fis-gtm/defaults.template"
-CONFFILE="/etc/default/fis-gtm"
+TEMPLATE="/usr/share/fis-gtm-initial/defaults.template"
+CONFFILE="/etc/default/fis-gtm-initial"
 
 case "$1" in
     configure)
 	# generate $CONFFILE from debconf settings and $TEMPLATE
 	db_version 2.0
-	db_get fis-gtm-initial-i386/username && FISGTM_USER="$RET" || FISGTM_USER="fisgtm"
-	db_get fis-gtm-initial-i386/groupname && FISGTM_GROUP="$RET" || FISGTM_GROUP="fisgtm"
+	db_get fisgtm/username && FISGTM_USER="$RET" || FISGTM_USER="fisgtm"
+	db_get fisgtm/groupname && FISGTM_GROUP="$RET" || FISGTM_GROUP="fisgtm"
 
 	tmpfile=`mktemp /tmp/fisgtm.XXXXXXXXXX`
 	chmod 644 $tmpfile
@@ -56,7 +56,7 @@
 	lastversion=`ls -1 ../distribution|head -1`
 	tar -zxf ../distribution/$lastversion
 
-	mkdir -p $FISGTM_ROOT/$FISGTM_VERSION-initial
+	mkdir -p $FISGTM_ROOT/$FISGTM_VERSION_INITIAL-initial
 	echo " "
 	echo "##############################################"
 	echo "automatic configuration, please be patient ..."
@@ -67,7 +67,7 @@
 $FISGTM_USER
 $FISGTM_GROUP
 n
-$FISGTM_ROOT/$FISGTM_VERSION-initial
+$FISGTM_ROOT/$FISGTM_VERSION_INITIAL-initial
 y
 n
 n

Modified: trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/postrm
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/postrm	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/postrm	2011-07-20 17:31:26 UTC (rev 7310)
@@ -20,28 +20,41 @@
 
 . /usr/share/debconf/confmodule
 TEMPLATE="/usr/share/fis-gtm/defaults.template"
-CONFFILE="/etc/default/fis-gtm"
+CONFFILE="/etc/default/fis-gtm-initial"
 
-case "$1" in
-    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+goAway()
+{
+  if [ -f $CONFFILE ]; then
+    . $CONFFILE
 
-      . $CONFFILE
+    cd $FISGTM_ROOT
+    # remove current version
+    if [ -n $FISGTM_VERSION_INITIAL ]; then 
+      rm -rf $FISGTM_VERSION_INITIAL-initial
+    else
+      echo "##### bad config #####"
+    fi
 
-      cd $FISGTM_ROOT
+    # if this is the only one, remove ROOT_DIR
+    cd ..
+    rmdir --ignore-fail-on-non-empty $FISGTM_ROOT
+  else
+    echo "E: no CONFFILE available!?"
+  fi
+}
 
-      cd $FISGTM_ROOT
-      # remove current version
-      if [ -n $FISGTM_VERSION ]; then 
-        rm -rf $FISGTM_VERSION-initial
-      else
-        echo "##### bad config #####"
-      fi
-
-      # if this is the only one, remove ROOT_DIR
-      cd ..
-      rmdir --ignore-fail-on-non-empty $FISGTM_ROOT
+case "$1" in
+    remove|upgrade|abort-install)
+      goAway
     ;;
-
+    purge)
+      echo "I: purge called, we do not need to remove anything here"
+    ;;
+    failed-upgrade|abort-upgrade|disappear)
+      echo "E: a previous package could not be upgraded"
+      echo "E: what shall we do now?"
+      goAway
+    ;;
     *)
         echo "postrm called with unknown argument \`$1'" >&2
         exit 1

Modified: trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/rules
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/rules	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-initial-i386/trunk/debian/rules	2011-07-20 17:31:26 UTC (rev 7310)
@@ -9,7 +9,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-export FISGTM_VERSION=`dpkg-parsechangelog |  grep 'Version:'|sed 's?Version: ??g'| cut -d- -f1`
+export FISGTM_VERSION_INITIAL=`dpkg-parsechangelog |  grep 'Version:'|sed 's?Version: ??g'| cut -d- -f1`
 export FISGTM_ROOT=/usr/lib/fis-gtm
 
 %:
@@ -24,7 +24,7 @@
 	mkdir -p debian/tmp/${FISGTM_ROOT}/distribution
 	cat debian/defaults.template.template |\
 	 sed "s?RRRRR?${FISGTM_ROOT}?g" |\
-	 sed "s/VVVVV/${FISGTM_VERSION}/g" > debian/defaults.template
+	 sed "s/VVVVV/${FISGTM_VERSION_INITIAL}/g" > debian/defaults.template
 	cp -a `ls -1 |grep -v debian` debian/tmp/${FISGTM_ROOT}/distribution
 	dh_install
 

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/control
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/control	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/control	2011-07-20 17:31:26 UTC (rev 7310)
@@ -1,7 +1,7 @@
 Source: fis-gtm-server
 Section: science
 Priority: extra
-Build-Depends: debhelper (>= 8), adduser, ucf, po-debconf, tcsh, libicu-dev, libgpgme11-dev
+Build-Depends: debhelper (>= 8), po-debconf, tcsh | csh | c-shell, libicu-dev, libgpgme11-dev, fis-gtm-initial
 Standards-Version: 3.9.2
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 DM-Upload-Allowed: yes
@@ -23,4 +23,5 @@
  applications and software appliances (virtual machines).
  .
  FIS-GTM needs an initial package to build other versions from source.
- This package contains the needed binaries for architecture i386.
+ This package contains binaries of current sources compiled with the
+ initial package.

Added: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/defaults.template.template
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/defaults.template.template	                        (rev 0)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/defaults.template.template	2011-07-20 17:31:26 UTC (rev 7310)
@@ -0,0 +1,16 @@
+# Run FIS GTM as this user ID. Not setting this or leaving it blank will use the
+# default of fisgtm.
+FISGTM_USER=fisgtm
+
+# Run FIS GTM as this group ID. Not setting this or leaving it blank will use
+# the default of fisgtm.
+FISGTM_GROUP=fisgtm
+
+# root directory of FIS GTM. Not setting this or leaving it blank will use
+# the default of /usr/lib/fis-gtm.
+FISGTM_ROOT=RRRRR
+
+# Current version of FIS GTM. Not setting this or leaving it blank will use
+# the default of 120003.
+FISGTM_VERSION=VVVVV
+

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/doClean
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/doClean	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/doClean	2011-07-20 17:31:26 UTC (rev 7310)
@@ -13,3 +13,6 @@
 setenv MAKELEVEL 0
 make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=$BUILDTYPE gtm_ver=$PWD clean
 
+# there is some stuff that is not needed in Debian
+rm -f ./sr_unix/gtminstall_Solaris.sh
+

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/doInstall
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/doInstall	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/doInstall	2011-07-20 17:31:26 UTC (rev 7310)
@@ -25,3 +25,12 @@
 cd debian/fis-gtm-server/$ROOTDIR/$VERSION-source
 tar -zxf $CURRENTDIR/$ARCHIV
 
+# fix some permissions for lintian
+chmod 755 plugin/gtmcrypt/build.sh
+chmod 755 plugin/gtmcrypt/install.sh
+chmod 755 configure
+chmod 755 gtm.gtc
+chmod 755 gtmbase.gtc
+chmod 644 lowerc
+chmod 644 lowerc_cp
+

Added: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/fis-gtm-server.lintian-overrides
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/fis-gtm-server.lintian-overrides	                        (rev 0)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/fis-gtm-server.lintian-overrides	2011-07-20 17:31:26 UTC (rev 7310)
@@ -0,0 +1,7 @@
+# upstream is aware of csh and tcsh problems and chooses them on purpose
+fis-gtm-server: csh-considered-harmful usr/lib/fis-gtm/54002A-source/lowerc.csh
+fis-gtm-server: csh-considered-harmful usr/lib/fis-gtm/54002A-source/lowerc_cp.csh
+fis-gtm-server: csh-considered-harmful usr/lib/fis-gtm/54002A-source/upperc_cp.csh
+#
+# dependency for tcsh exists, so this seems to be a false positive
+fis-gtm-server: missing-dep-for-interpreter

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/initStuff
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/initStuff	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/initStuff	2011-07-20 17:31:26 UTC (rev 7310)
@@ -9,26 +9,38 @@
 setenv BUILDTYPE dbg
 
 setenv PWD `pwd`
-setenv FISGTM_DEFAULT "/etc/default/fis-gtm"
+setenv FISGTM_DEFAULT "/etc/default/fis-gtm-server"
+setenv FISGTM_DEFAULT_INITIAL "/etc/default/fis-gtm-initial"
 
+if ( -r $FISGTM_DEFAULT_INITIAL ) then
+  echo "I: initial default file ($FISGTM_DEFAULT_INITIAL) available"
+  setenv FISGTM_VERSION_INITIAL `grep FISGTM_VERSION_INITIAL $FISGTM_DEFAULT_INITIAL|awk -F"=" '{printf("%s",$2)}'`
+else
+  echo "E: initial default file ($FISGTM_DEFAULT_INITIAL) not available"
+  echo "E: fis-gtm-initial should have created this!"
+  exit 1
+endif
+
 if ( -r $FISGTM_DEFAULT ) then
-  echo "default file available"
-  setenv FISGTM_ROOT `grep FISGTM_ROOT $FISGTM_DEFAULT|awk -F"=" '{printf("%s",$2)}'`
+  echo "I: default file ($FISGTM_DEFAULT) available"
+  setenv FISGTM_ROOT `grep FISGTM_ROOT $FISGTM_DEFAULT_INITIAL|awk -F"=" '{printf("%s",$2)}'`
   setenv FISGTM_VERSION `grep FISGTM_VERSION $FISGTM_DEFAULT|awk -F"=" '{printf("%s",$2)}'`
 else
-  echo "not default available"
-  echo "fis-gtm-initial should have created this!"
-  exit 1
+  echo "W: default file ($FISGTM_DEFAULT) not available"
+  echo "W: fis-gtm-server should have created this!"
+  setenv FISGTM_ROOT "/usr/lib/fis-gtm"
+  setenv FISGTM_VERSION "12003"
 endif
 
-echo "FISGTM_ROOT: $FISGTM_ROOT"
-echo "FISGTM_VERSION: $FISGTM_VERSION"
-echo "PWD: $PWD"
+echo "I: FISGTM_ROOT: $FISGTM_ROOT"
+echo "I: FISGTM_VERSION: $FISGTM_VERSION"
+echo "I: FISGTM_VERSION_INITIAL: $FISGTM_VERSION_INITIAL"
+echo "I: PWD: $PWD"
 
 # we do have to do this here
 setenv distro ubuntu
 
-setenv gtm_curpro $FISGTM_ROOT/$FISGTM_VERSION-initial/
+setenv gtm_curpro $FISGTM_ROOT/$FISGTM_VERSION_INITIAL-initial/
 setenv gtm_exe $gtm_curpro
 setenv HOSTOS `uname -s`
 
@@ -53,7 +65,7 @@
 setenv ICUV2 `echo $ICUV|awk -F"." '{printf("%s",$2)}'`
 setenv gtm_icu_version "$ICUV1.$ICUV2"
 
-echo "ICU-Version: $gtm_icu_version"
+echo "I: ICU-Version: $gtm_icu_version"
 
 # Define 'gtm_version_change' and execute gtm_env.csh
 setenv gtm_version_change 1

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/install.template
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/install.template	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/install.template	2011-07-20 17:31:26 UTC (rev 7310)
@@ -0,0 +1,2 @@
+debian/defaults.template /usr/share/fis-gtm-server
+

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/postinst
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/postinst	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/postinst	2011-07-20 17:31:26 UTC (rev 7310)
@@ -19,16 +19,20 @@
 
 
 . /usr/share/debconf/confmodule
-TEMPLATE="/usr/share/fis-gtm/defaults.template"
-CONFFILE="/etc/default/fis-gtm"
+TEMPLATE="/usr/share/fis-gtm-server/defaults.template"
+CONFFILE="/etc/default/fis-gtm-server"
+CONFFILE_INITIAL="/etc/default/fis-gtm-initial"
 
 case "$1" in
     configure)
-	# generate $CONFFILE from debconf settings and $TEMPLATE
-	db_version 2.0
-	db_get fis-gtm-initial-i386/username && FISGTM_USER="$RET" || FISGTM_USER="fisgtm"
-	db_get fis-gtm-initial-i386/groupname && FISGTM_GROUP="$RET" || FISGTM_GROUP="fisgtm"
 
+        . $CONFFILE_INITIAL
+
+        cat $TEMPLATE \
+                | sed "s%^FISGTM_USER=.*$%FISGTM_USER=$FISGTM_USER%" \
+                | sed "s%^FISGTM_GROUP=.*$%FISGTM_GROUP=$FISGTM_GROUP%" \
+                > $CONFFILE
+
 	. $CONFFILE
 
 	if ! getent group "$FISGTM_GROUP" > /dev/null 2>&1 ; then
@@ -43,6 +47,7 @@
 	mkdir TMPPOSTINST
 	cd TMPPOSTINST
 	lastversion=`ls -1 ../distribution|head -1`
+
 	tar -zxf ../distribution/$lastversion
 
 	mkdir -p $FISGTM_ROOT/$FISGTM_VERSION

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/postrm
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/postrm	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/postrm	2011-07-20 17:31:26 UTC (rev 7310)
@@ -20,28 +20,41 @@
 
 . /usr/share/debconf/confmodule
 TEMPLATE="/usr/share/fis-gtm/defaults.template"
-CONFFILE="/etc/default/fis-gtm"
+CONFFILE="/etc/default/fis-gtm-server"
 
-case "$1" in
-    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+goAway()
+{
+  if [ -f $CONFFILE ]; then
+    . $CONFFILE
 
-      . $CONFFILE
+    cd $FISGTM_ROOT
+    # remove current version
+    if [ -n $FISGTM_VERSION ]; then
+      rm -rf $FISGTM_VERSION-source
+    else
+      echo "##### bad config #####"
+    fi
 
-      cd $FISGTM_ROOT
+    # if this is the only one, remove ROOT_DIR
+    cd ..
+    rmdir --ignore-fail-on-non-empty $FISGTM_ROOT
+  else
+    echo "E: no CONFFILE available!?"
+  fi
+}
 
-      cd $FISGTM_ROOT
-      # remove current version
-      if [ -n $FISGTM_VERSION ]; then 
-        rm -rf $FISGTM_VERSION-source
-      else
-        echo "##### bad config #####"
-      fi
-
-      # if this is the only one, remove ROOT_DIR
-      cd ..
-      rmdir --ignore-fail-on-non-empty $FISGTM_ROOT
+case "$1" in
+    remove|upgrade|abort-install)
+      goAway
     ;;
-
+    purge)
+      echo "I: purge called, we do not need to remove anything here"
+    ;;
+    failed-upgrade|abort-upgrade|disappear)
+      echo "E: a previous package could not be upgraded"
+      echo "E: what shall we do now?"
+      goAway
+    ;;
     *)
         echo "postrm called with unknown argument \`$1'" >&2
         exit 1

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/rules
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/rules	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/rules	2011-07-20 17:31:26 UTC (rev 7310)
@@ -24,7 +24,14 @@
 	./debian/doBuild
 
 override_dh_auto_install:
+	cat debian/install.template > debian/install
+	#echo "${FISGTM_ROOT}" >> debian/install
+	cat debian/defaults.template.template |\
+	 sed "s?RRRRR?${FISGTM_ROOT}?g" |\
+	 sed "s/VVVVV/${FISGTM_VERSION}/g" > debian/defaults.template
+	dh_fixperms
 	dh_install
+
 	./debian/doInstall ${FISGTM_VERSION} ${FISGTM_ROOT}
 
 get-orig-source:

Modified: trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/watch
===================================================================
--- trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/watch	2011-07-19 15:09:24 UTC (rev 7309)
+++ trunk/packages/fis-gtm/fis-gtm-server/trunk/debian/watch	2011-07-20 17:31:26 UTC (rev 7310)
@@ -1,10 +1,4 @@
-# Example watch control file for uscan
-# Rename this file to "watch" and then you can run the "uscan" command
-# to check for upstream updates and more.
-# See uscan(1) for format
-
 # Compulsory line, this is a version 3 file
 version=3
 
-# Uncomment to find new files on sourceforge, for devscripts >= 2.9
 http://sf.net/fis-gtm/gtm_V(.*)_linux_i686_src\.tar\.gz




More information about the debian-med-commit mailing list