r36741 - in /packages/code-aster/astk/trunk/debian: ./ patches/

trophime-guest at users.alioth.debian.org trophime-guest at users.alioth.debian.org
Mon Jul 19 14:47:51 UTC 2010


Author: trophime-guest
Date: Mon Jul 19 14:47:50 2010
New Revision: 36741

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=36741
Log:
update postinst config of astk

Added:
    packages/code-aster/astk/trunk/debian/astk-server.postinst
    packages/code-aster/astk/trunk/debian/astk-server.postrm
Removed:
    packages/code-aster/astk/trunk/debian/patches/aster.diff
    packages/code-aster/astk/trunk/debian/patches/debian-changes-1.8.0-1.1
    packages/code-aster/astk/trunk/debian/patches/etc.diff
    packages/code-aster/astk/trunk/debian/patches/install.diff
    packages/code-aster/astk/trunk/debian/patches/setup.diff
Modified:
    packages/code-aster/astk/trunk/debian/astk.config
    packages/code-aster/astk/trunk/debian/astk.postinst
    packages/code-aster/astk/trunk/debian/changelog
    packages/code-aster/astk/trunk/debian/control
    packages/code-aster/astk/trunk/debian/patches/config.patch
    packages/code-aster/astk/trunk/debian/patches/series
    packages/code-aster/astk/trunk/debian/rules

Added: packages/code-aster/astk/trunk/debian/astk-server.postinst
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/astk-server.postinst?rev=36741&op=file
==============================================================================
--- packages/code-aster/astk/trunk/debian/astk-server.postinst (added)
+++ packages/code-aster/astk/trunk/debian/astk-server.postinst Mon Jul 19 14:47:50 2010
@@ -1,0 +1,40 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+db_version 2.0
+
+get_value() {
+    db_get $1
+    code="$?"
+    if [ "$code" -eq "0" ]; then
+	:
+    else
+	echo "Error getting debconf answer $1: debconf code=$code" >&2
+	exit $code
+    fi
+}
+
+if [ "$1" = "configure" ] ; then
+	db_get astk/platform || true
+	platform=${RET}
+	perl -pi -le "s|\?IFDEF\?|$platform|" /etc/codeaster/asrun
+
+	db_get astk/node || true
+	node=${RET}
+	perl -pi -le "s|\?NODE\?|$node|" /etc/codeaster/asrun
+	
+	db_get astk/EDITOR || true
+	editor=${RET}
+	perl -pi -le "s|\?EDITOR\?|$servername\.$domainname|" /etc/codeaster/asrun
+	
+	db_get astk/TERMINAL || true
+	terminal=${RET}
+	perl -pi -le "s|\?TERMINAL\?|$servername\.$domainname|" /etc/codeaster/asrun
+	
+fi
+
+#DEBHELPER#

Added: packages/code-aster/astk/trunk/debian/astk-server.postrm
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/astk-server.postrm?rev=36741&op=file
==============================================================================
--- packages/code-aster/astk/trunk/debian/astk-server.postrm (added)
+++ packages/code-aster/astk/trunk/debian/astk-server.postrm Mon Jul 19 14:47:50 2010
@@ -1,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "purge" -a -e /usr/share/debconf/confmodule ]; then
+    # Source debconf library.
+    . /usr/share/debconf/confmodule
+    # Remove my changes to the db.
+    db_purge
+fi
+
+#DEBHELPER#

Modified: packages/code-aster/astk/trunk/debian/astk.config
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/astk.config?rev=36741&op=diff
==============================================================================
--- packages/code-aster/astk/trunk/debian/astk.config (original)
+++ packages/code-aster/astk/trunk/debian/astk.config Mon Jul 19 14:47:50 2010
@@ -7,11 +7,15 @@
 . /usr/share/debconf/confmodule
 
 #Set default platform
-#if [ "${dc_platform}" = "" ] ; then
-#	dc_platform="$(uname | tr '[:upper:]' '[:lower:]' 2> /dev/null)"\
-#	dc_platform="$(printf '%s\n' "${dc_platform}" | stripwhitespace)" && \
-#	db_set astk/platform "${dc_platform}"
-#fi
+if [ "${dc_platform}" = "" ] ; then
+	DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+	DEB_HOST_ARCH_BITS := $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
+        dc_platform= "$(printf '%s\n' $DEB_HOST_ARCH_OS | tr '[:lower:]' '[:upper:]')"
+	if [ "${DEB_HOST_ARCH_BITS}" = "64" ; then
+            dc_platform= "$(printf '%s%d\n' $DEB_HOST_ARCH_OS$DEB_HOST_ARCH_BITS | tr '[:lower:]' '[:upper:]')"
+	fi
+	db_set astk/platform "${dc_platform}"
+fi
 
 #Set default domain name
 if [ "${dc_domainname}" = "" ] ; then
@@ -32,6 +36,18 @@
 	dc_node="$(hostname -s 2>/dev/null)" || dc_node="$(hostname)" && \
 	dc_node="$(printf '%s\n' "${dc_node}" | stripwhitespace)" && \
 	db_set astk/node "${dc_node}"
+fi
+
+#Set default editor name
+if [ "${dc_editor}" = "" ] ; then
+	dc_editor="gedit --display=@D" && \
+	db_set astk/EDITOR "${dc_editor}"
+fi
+
+#Set default terminal name
+if [ "${dc_terminal}" = "" ] ; then
+	dc_editor="gnome-terminal --display=@D --command=@E" && \
+	db_set astk/TERMINAL "${dc_terminal}"
 fi
 
 db_version 2.0
@@ -58,8 +74,10 @@
 
 # Choose Editor
 db_input medium astk/EDITOR || true
+dc_editor="$RET"
 db_go
 
 # Choose TERMINAL
 db_input medium astk/TERMINAL || true
+dc_terminal="$RET"
 db_go

Modified: packages/code-aster/astk/trunk/debian/astk.postinst
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/astk.postinst?rev=36741&op=diff
==============================================================================
--- packages/code-aster/astk/trunk/debian/astk.postinst (original)
+++ packages/code-aster/astk/trunk/debian/astk.postinst Mon Jul 19 14:47:50 2010
@@ -19,12 +19,25 @@
 }
 
 if [ "$1" = "configure" ] ; then
-	db_get astk/platform || true
-	db_get astk/node || true
 	db_get astk/servername || true
+	servername=${RET}
+	perl -pi -le "s|\?SERVER_NAME\?|$servername|" /etc/codeaster/astkrc/config_serveurs
+	
 	db_get astk/domainname || true
+	domainname=${RET}
+	perl -pi -le "s|\?DOMAIN_NAME\?|$domainname|" /etc/codeaster/astkrc/prefs
+	perl -pi -le "s|\?FULL_SERVER_NAME\?|$servername\.$domainname|" /etc/codeaster/astkrc/config_serveurs
+	
 	db_get astk/EDITOR || true
+	editor=${RET}
+	perl -pi -le "s|\?EDITOR\?|$servername\.$domainname|" /etc/codeaster/astkrc/prefs
+	perl -pi -le "s|\?EDITOR\?|$servername\.$domainname|" /etc/codeaster/astkrc/config_serveurs
+	
 	db_get astk/TERMINAL || true
+	terminal=${RET}
+	perl -pi -le "s|\?TERMINAL\?|$servername\.$domainname|" /etc/codeaster/astkrc/prefs
+	perl -pi -le "s|\?TERMINAL\?|$servername\.$domainname|" /etc/codeaster/astkrc/config_serveurs
+	
 fi
 
 #DEBHELPER#

Modified: packages/code-aster/astk/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/changelog?rev=36741&op=diff
==============================================================================
--- packages/code-aster/astk/trunk/debian/changelog (original)
+++ packages/code-aster/astk/trunk/debian/changelog Mon Jul 19 14:47:50 2010
@@ -1,3 +1,16 @@
+astk (1.8.1-2) unstable; urgency=low
+
+  * Complete postinst configuration
+
+ -- Christophe Trophime <christophe.trophime at grenoble.cnrs.fr>  Mon, 19 Jul 2010 13:29:26 +0200
+
+astk (1.8.1-1) unstable; urgency=low
+
+  * New upstream version
+  * Bump Standards-Version: to 3.9.0. (No changes needed.)
+
+ -- Christophe Trophime <christophe.trophime at grenoble.cnrs.fr>  Tue, 13 Jul 2010 15:48:32 +0200
+
 astk (1.8.0-2) unstable; urgency=low
 
   * debian/rules: do not install show.1.gz (Closes: #581915)

Modified: packages/code-aster/astk/trunk/debian/control
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/control?rev=36741&op=diff
==============================================================================
--- packages/code-aster/astk/trunk/debian/control (original)
+++ packages/code-aster/astk/trunk/debian/control Mon Jul 19 14:47:50 2010
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
 Uploaders: Christophe Trophime <christophe.trophime at grenoble.cnrs.fr>, "Adam C. Powell, IV" <hazelsct at debian.org>
-Standards-Version: 3.8.4
+Standards-Version: 3.9.0
 Build-Depends: debhelper (>= 7), cdbs (>= 0.4.49), quilt, python-all (>= 2.5.4-9), python-support (>= 1.0.7), po-debconf
 Homepage: http://www.code-aster.org/
 Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/code-aster/astk/

Modified: packages/code-aster/astk/trunk/debian/patches/config.patch
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/patches/config.patch?rev=36741&op=diff
==============================================================================
--- packages/code-aster/astk/trunk/debian/patches/config.patch (original)
+++ packages/code-aster/astk/trunk/debian/patches/config.patch Mon Jul 19 14:47:50 2010
@@ -1,13 +1,13 @@
-Index: astk-1.8.0/ASTK_CLIENT/etc/astkrc/outils
-===================================================================
---- astk-1.8.0.orig/ASTK_CLIENT/etc/astkrc/outils	2010-04-16 09:29:35.000000000 +0200
-+++ astk-1.8.0/ASTK_CLIENT/etc/astkrc/outils	2010-04-16 09:29:40.000000000 +0200
+Index: astk-1.8.1/ASTK_CLIENT/etc/astkrc/outils
+===================================================================
+--- astk-1.8.1.orig/ASTK_CLIENT/etc/astkrc/outils	2010-07-07 18:18:07.000000000 +0200
++++ astk-1.8.1/ASTK_CLIENT/etc/astkrc/outils	2010-07-13 17:48:59.000000000 +0200
 @@ -4,22 +4,22 @@
  astkrc_version : 1.1
  #
  nom : Eficas
 -cmde : ?TOOLS_DIR?/eficas (@F)
-+cmde : /usr/bin/eficas (@F)
++cmde : /usr/bin/eficasQt (@F)
  ext : comm com0 com1 com2
  dist : on
  #
@@ -29,10 +29,10 @@
  ext : dat
  dist : on
  #
-Index: astk-1.8.0/ASTK_CLIENT/bin/astk
-===================================================================
---- astk-1.8.0.orig/ASTK_CLIENT/bin/astk	2010-04-16 09:29:35.000000000 +0200
-+++ astk-1.8.0/ASTK_CLIENT/bin/astk	2010-04-16 09:29:40.000000000 +0200
+Index: astk-1.8.1/ASTK_CLIENT/bin/astk
+===================================================================
+--- astk-1.8.1.orig/ASTK_CLIENT/bin/astk	2010-07-07 18:18:07.000000000 +0200
++++ astk-1.8.1/ASTK_CLIENT/bin/astk	2010-07-13 17:48:59.000000000 +0200
 @@ -38,5 +38,5 @@
     WISHEXECUTABLE=wish
  fi
@@ -40,12 +40,12 @@
 -$WISHEXECUTABLE $prefix/lib/astk/astk.tcl -- $* &
 +$WISHEXECUTABLE $prefix/share/astk/astk.tcl -- $* &
  
-Index: astk-1.8.0/ASTK_SERV/etc/profile.csh
-===================================================================
---- astk-1.8.0.orig/ASTK_SERV/etc/profile.csh	2010-04-16 09:29:35.000000000 +0200
-+++ astk-1.8.0/ASTK_SERV/etc/profile.csh	2010-04-16 09:29:40.000000000 +0200
-@@ -13,37 +13,20 @@
-    setenv DEFINE_PROFILE_ASRUN "done"
+Index: astk-1.8.1/ASTK_SERV/etc/profile.csh
+===================================================================
+--- astk-1.8.1.orig/ASTK_SERV/etc/profile.csh	2010-07-07 18:18:08.000000000 +0200
++++ astk-1.8.1/ASTK_SERV/etc/profile.csh	2010-07-13 17:48:59.000000000 +0200
+@@ -12,37 +12,20 @@
+    setenv DEFINE_PROFILE_ASRUN done
  #--- ifndef DEFINE_PROFILE_ASRUN -----------------------------------------------
  
 -setenv ASTER_ROOT ?ASTER_ROOT?
@@ -87,57 +87,10 @@
  endif
  
  #--- endif DEFINE_PROFILE_ASRUN ------------------------------------------------
-Index: astk-1.8.0/ASTK_SERV/etc/profile.sh
-===================================================================
---- astk-1.8.0.orig/ASTK_SERV/etc/profile.sh	2010-04-16 09:29:34.000000000 +0200
-+++ astk-1.8.0/ASTK_SERV/etc/profile.sh	2010-04-16 09:29:40.000000000 +0200
-@@ -12,37 +12,19 @@
- ###   export DEFINE_PROFILE_ASRUN=done
- #--- ifndef DEFINE_PROFILE_ASRUN -----------------------------------------------
- 
--export ASTER_ROOT=?ASTER_ROOT?
-+export ASTER_ROOT=/usr/share/codeaster
- 
--if [ -z "$PATH" ]; then
--   export PATH=$ASTER_ROOT/bin:$ASTER_ROOT/outils
--else
--   export PATH=$ASTER_ROOT/bin:$ASTER_ROOT/outils:$PATH
--fi
--
--if [ -z "$LD_LIBRARY_PATH" ]; then
--   export LD_LIBRARY_PATH=?HOME_PYTHON?/lib
--else
--   export LD_LIBRARY_PATH=?HOME_PYTHON?/lib:$LD_LIBRARY_PATH
--fi
--
--if [ -z "$PATH" ]; then
--   export PYTHONPATH=?ASRUN_SITE_PKG?
--else
--   export PYTHONPATH=?ASRUN_SITE_PKG?:$PYTHONPATH
--fi
--
--export PYTHONEXECUTABLE=?PYTHON_EXE?
-+export PYTHONEXECUTABLE=/usr/bin/python
- 
- # this should not be usefull...
- #export PYTHONHOME=?HOME_PYTHON?
- 
--export WISHEXECUTABLE=?WISH_EXE?
-+export WISHEXECUTABLE=/usr/bin/wish
- 
- 
- # source local profile
--if [ -e $ASTER_ROOT/etc/codeaster/profile_local.sh ]; then
--   . $ASTER_ROOT/etc/codeaster/profile_local.sh
-+if [ -e /etc/codeaster/profile_local.sh ]; then
-+   . /etc/codeaster/profile_local.sh
- fi
- 
- #--- endif DEFINE_PROFILE_ASRUN ------------------------------------------------
-Index: astk-1.8.0/ASTK_SERV/etc/asrun
-===================================================================
---- astk-1.8.0.orig/ASTK_SERV/etc/asrun	2010-04-16 09:29:35.000000000 +0200
-+++ astk-1.8.0/ASTK_SERV/etc/asrun	2010-04-16 09:29:40.000000000 +0200
+Index: astk-1.8.1/ASTK_SERV/etc/asrun
+===================================================================
+--- astk-1.8.1.orig/ASTK_SERV/etc/asrun	2010-07-07 18:18:08.000000000 +0200
++++ astk-1.8.1/ASTK_SERV/etc/asrun	2010-07-13 17:48:59.000000000 +0200
 @@ -136,10 +136,10 @@
  # mpirun
  #    available arguments are : mpi_hostfile, mpi_nbnoeud, mpi_nbcpu
@@ -151,16 +104,16 @@
  
  # command called to initialize MPI environment (for example for mpich2)
  #mpi_ini : mpdboot --totalnum=%(mpi_nbnoeud)s --file=%(mpi_hostfile)s ; sleep 10
-@@ -151,7 +151,7 @@
- # LAM/MPI : echo $LAMRANK
- # OpenMPI : echo $OMPI_MCA_ns_nds_vpid
+@@ -152,7 +152,7 @@
+ # OpenMPI (1.2) : echo $OMPI_MCA_ns_nds_vpid
+ # OpenMPI (1.3) : echo $OMPI_MCA_orte_ess_vpid
  # Mpich2  : echo $PMI_RANK
 -mpi_get_procid_cmd : echo $PMI_RANK
-+mpi_get_procid_cmd : echo $OMPI_MCA_ns_nds_vpid
++mpi_get_procid_cmd : echo $OMPI_COMM_WORD_RANK
  
  # maximum number of nodes
  mpi_nbnoeudmax : 1
-@@ -172,8 +172,8 @@
+@@ -173,8 +173,8 @@
  # ps commands : uncomment lines corresponding to your platform
  #ps_cpu : /bin/ps -e --width=512 -ocputime -ocommand
  #ps_pid : /bin/ps -e --width=512 -opid -ocommand
@@ -171,7 +124,7 @@
  
  #-------------------------------------------------------------------------------
  # debug command :
-@@ -184,8 +184,8 @@
+@@ -185,8 +185,8 @@
  #
  #cmd_post : gdb -batch --command=@D @E @C
  #cmd_dbg : ddd --debugger gdb --command=@D @E @C
@@ -182,12 +135,12 @@
  
  #-------------------------------------------------------------------------------
  # style of ctags used (optionnal, leave commented to ignore ctags generation)
-Index: astk-1.8.0/ASTK_SERV/etc/aster
-===================================================================
---- astk-1.8.0.orig/ASTK_SERV/etc/aster	2010-04-16 09:29:34.000000000 +0200
-+++ astk-1.8.0/ASTK_SERV/etc/aster	2010-04-16 09:29:40.000000000 +0200
-@@ -1,7 +1,7 @@
- # Code_Aster versions (there are only labels)
+Index: astk-1.8.1/ASTK_SERV/etc/aster
+===================================================================
+--- astk-1.8.1.orig/ASTK_SERV/etc/aster	2010-07-07 18:18:08.000000000 +0200
++++ astk-1.8.1/ASTK_SERV/etc/aster	2010-07-13 17:48:59.000000000 +0200
+@@ -3,7 +3,7 @@
+ # examples : NEW10, /usr/lib/codeaster/NEW10
  
  # default version (overridden by --vers option)
 -default_vers : ?ASTER_VERSION?
@@ -195,20 +148,20 @@
  
  # available versions
  # DO NOT EDIT FOLLOWING LINE !
-Index: astk-1.8.0/ASTK_SERV/share/codeaster/asrun/data/mpirun_template
-===================================================================
---- astk-1.8.0.orig/ASTK_SERV/share/codeaster/asrun/data/mpirun_template	2010-04-16 09:29:35.000000000 +0200
-+++ astk-1.8.0/ASTK_SERV/share/codeaster/asrun/data/mpirun_template	2010-04-16 09:29:40.000000000 +0200
+Index: astk-1.8.1/ASTK_SERV/share/codeaster/asrun/data/mpirun_template
+===================================================================
+--- astk-1.8.1.orig/ASTK_SERV/share/codeaster/asrun/data/mpirun_template	2010-07-07 18:18:08.000000000 +0200
++++ astk-1.8.1/ASTK_SERV/share/codeaster/asrun/data/mpirun_template	2010-07-13 17:48:59.000000000 +0200
 @@ -1,4 +1,4 @@
 -#!?SHELL_EXECUTION?
 +#!/bin/bash
  
  # $Id: mpirun_template 3529 2008-09-26 08:42:08Z courtois $
  
-Index: astk-1.8.0/ASTK_CLIENT/bin/bsf
-===================================================================
---- astk-1.8.0.orig/ASTK_CLIENT/bin/bsf	2010-04-16 09:32:13.000000000 +0200
-+++ astk-1.8.0/ASTK_CLIENT/bin/bsf	2010-04-16 09:32:25.000000000 +0200
+Index: astk-1.8.1/ASTK_CLIENT/bin/bsf
+===================================================================
+--- astk-1.8.1.orig/ASTK_CLIENT/bin/bsf	2010-07-07 18:18:07.000000000 +0200
++++ astk-1.8.1/ASTK_CLIENT/bin/bsf	2010-07-13 17:48:59.000000000 +0200
 @@ -38,5 +38,5 @@
     WISHEXECUTABLE=wish
  fi
@@ -216,3 +169,50 @@
 -$WISHEXECUTABLE $prefix/lib/astk/bsf.tcl -- $* &
 +$WISHEXECUTABLE $prefix/share/astk/bsf.tcl -- $* &
  
+Index: astk-1.8.1/ASTK_SERV/etc/profile.sh
+===================================================================
+--- astk-1.8.1.orig/ASTK_SERV/etc/profile.sh	2010-07-13 17:45:53.000000000 +0200
++++ astk-1.8.1/ASTK_SERV/etc/profile.sh	2010-07-13 17:47:13.000000000 +0200
+@@ -12,7 +12,7 @@
+    export DEFINE_PROFILE_ASRUN=done
+ #--- ifndef DEFINE_PROFILE_ASRUN -----------------------------------------------
+ 
+-export ASTER_ROOT=?ASTER_ROOT?
++export ASTER_ROOT=/usr/share/codeaster
+ 
+ if [ -z "$PATH" ]; then
+    export PATH=$ASTER_ROOT/bin:$ASTER_ROOT/outils
+@@ -20,29 +20,17 @@
+    export PATH=$ASTER_ROOT/bin:$ASTER_ROOT/outils:$PATH
+ fi
+ 
+-if [ -z "$LD_LIBRARY_PATH" ]; then
+-   export LD_LIBRARY_PATH=?HOME_PYTHON?/lib
+-else
+-   export LD_LIBRARY_PATH=?HOME_PYTHON?/lib:$LD_LIBRARY_PATH
+-fi
+-
+-if [ -z "$PYTHONPATH" ]; then
+-   export PYTHONPATH=?ASRUN_SITE_PKG?
+-else
+-   export PYTHONPATH=?ASRUN_SITE_PKG?:$PYTHONPATH
+-fi
+-
+-export PYTHONEXECUTABLE=?PYTHON_EXE?
++export PYTHONEXECUTABLE=/usr/bin/python
+ 
+ # this should not be usefull...
+ #export PYTHONHOME=?HOME_PYTHON?
+ 
+-export WISHEXECUTABLE=?WISH_EXE?
++export WISHEXECUTABLE=/usr/bin/wish
+ 
+ 
+ # source local profile
+-if [ -e $ASTER_ROOT/etc/codeaster/profile_local.sh ]; then
+-   . $ASTER_ROOT/etc/codeaster/profile_local.sh
++if [ -e /etc/codeaster/profile_local.sh ]; then
++   . /etc/codeaster/profile_local.sh
+ fi
+ 
+ #--- endif DEFINE_PROFILE_ASRUN ------------------------------------------------

Modified: packages/code-aster/astk/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/patches/series?rev=36741&op=diff
==============================================================================
--- packages/code-aster/astk/trunk/debian/patches/series (original)
+++ packages/code-aster/astk/trunk/debian/patches/series Mon Jul 19 14:47:50 2010
@@ -1,4 +1,4 @@
-setup.diff
+#setup.diff
 config.patch
-install.diff
-aster.diff
+#install.diff
+#aster.diff

Modified: packages/code-aster/astk/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/code-aster/astk/trunk/debian/rules?rev=36741&op=diff
==============================================================================
--- packages/code-aster/astk/trunk/debian/rules (original)
+++ packages/code-aster/astk/trunk/debian/rules Mon Jul 19 14:47:50 2010
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 # Copyright 2008 - Sylvestre Ledru <sylvestre.ledru at inria.fr>
+
+ASTER_VERSION=10.2.0
+ASTER_VERSION_FULL=$(ASTER_VERSION)-1
 
 DEB_PYTHON_SYSTEM=pysupport
 
@@ -35,7 +38,7 @@
 	mv $(DEB_DESTDIR)/usr/share/python-support debian/astk/usr/share/python-support
 	
 	mkdir -p debian/astk/etc/codeaster/astkrc
-	mv $(DEB_DESTDIR)/usr/etc/codeaster/astkrc/* debian/astk/etc/codeaster/astkrc
+	mv $(DEB_DESTDIR)/etc/codeaster/astkrc/* debian/astk/etc/codeaster/astkrc
 
 	install -d debian/astk/usr/share/applications
 	install -m 0644 debian/astk.desktop debian/astk/usr/share/applications
@@ -67,20 +70,17 @@
 	#mv $(DEB_DESTDIR)/usr/ASTK/ASTK_SERV/lib/*.py debian/astk-server/usr/share/python-support
 
 	#mkdir -p debian/astk-server/usr/bin
-	#mv $(DEB_DESTDIR)/usr/ASTK/ASTK_SERV/bin/as_* debian/astk-server/usr/bin
+	#mv $(DEB_DESTDIR)/usr/ASTK/ASTK_SERV/bin/as_* debian/astk-server/usr/binls
 
 	install -d debian/astk-server/usr/share/locale
 	mv $(DEB_DESTDIR)/usr/share/locale/* debian/astk-server/usr/share/locale
 
 get-orig-source:
-	# Retreive aster-full-src-10.1.0-4.noarch.tar.gz
-	TMPDIR=`mktemp -d $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig`
-	pushd "$$TMPDIR"
-	wget http://www.code-aster.org/V2/spip.php?action=dw2_out&id=667
+	# Retreive aster-full-src-$(ASTER_VERSION_FULL).noarch.tar.gz
+	mkdir -p tmp
+	cd tmp && wget "http://www.code-aster.org/V2/spip.php?action=dw2_out&id=785"
 	
 	# Go to SRC directory and retreive astk source
-	tar xzf aster-full-src-10.1.0-4.noarch.tar.gz
-	cd SRC
-	mv $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).tar.gz $(CURDIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
-	popd
-	rm -rf "$$TMPDIR"
+	cd tmp && tar xzf aster-full-src-$(ASTER_VERSION_FULL).noarch.tar.gz
+	cd tmp/aster-full-src-$(ASTER_VERSION)/SRC && mv $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).tar.gz $(CURDIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+	rm -rf tmp




More information about the debian-science-commits mailing list