debian/0000755000000000000000000000000012252205662007170 5ustar debian/environment-modules.dirs0000644000000000000000000000014112252205622014055 0ustar /usr/bin /etc/bash_completion.d /etc/profile.d /etc/csh/login.d /etc/environment-modules/modules debian/control0000644000000000000000000000214312252205622010567 0ustar Source: modules Section: devel Priority: optional Maintainer: Alastair McKinstry Standards-Version: 3.9.5 Homepage: http://modules.sourceforge.net/ Build-Depends: tcl8.6-dev | tcl-dev, debhelper (>= 9), dejagnu Package: environment-modules Architecture: any Depends: debhelper (>= 9), tcl8.6 | tcl, ${misc:Depends}, ${shlibs:Depends} Description: Modular system for handling environment variables The Modules package provides for the dynamic modification of a user's environment via modulefiles. Each modulefile contains the information needed to configure the shell for an application. Once the Modules package is initialized, the environment can be modified dynamically on a per-module basis using the module command which interprets modulefiles. Typically modulefiles instruct the module command to alter or set shell environment variables such as PATH, MANPATH, etc. modulefiles may be shared by many users on a system and users may have their own collection to supplement or replace the shared modulefiles. The modules environment is common on SGI/Crays and many workstation farms. debian/watch0000644000000000000000000000045212252205622010216 0ustar version=3 opts=dversionmangle=s/\+dfsg\d*$//,uversionmangle=s/_/./g;s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/ \ http://qa.debian.org/watch/sf.php/modules/modules-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) # Bart Martens Sun, 06 Jan 2013 21:11:47 +0000 debian/source/0000755000000000000000000000000012252205622010464 5ustar debian/source/format0000644000000000000000000000001412252205622011672 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012252205622010613 5ustar debian/patches/compiler_fixes.patch0000644000000000000000000000477312252205622014657 0ustar Author: Alastair McKinstry Description: Fix minor compiler warnings Last-Updated: 2013-11-30 Forwarded: no Index: modules-3.2.10/modules_def.h =================================================================== --- modules-3.2.10.orig/modules_def.h 2013-11-10 19:19:21.000000000 +0000 +++ modules-3.2.10/modules_def.h 2013-11-30 14:41:03.000000000 +0000 @@ -237,7 +237,7 @@ ERR_INVAL, /** Invalid parameter to the error **/ ERR_INVWGHT, /** logger **/ ERR_INVFAC, /** Invalid error facility **/ - ERR_ENVVAR, /** env. variables are inconsistent **/ + ERR_ENVVAR /** env. variables are inconsistent **/ } ErrType; /** @@ -616,6 +616,9 @@ /** ModuleCmd_Purge.c **/ extern int ModuleCmd_Purge( Tcl_Interp*, int, char*[]); +/** ModulesCmd_Refresh.c **/ +extern int ModuleCmd_Refresh( Tcl_Interp *,int, char*[]); + /** ModuleCmd_Switch.c **/ extern int ModuleCmd_Switch( Tcl_Interp*, int, char*[]); @@ -715,6 +718,7 @@ extern int UnTieStdout( int); /** utility.c **/ +extern void regex_quote( const char *, char*, int); extern char *getLMFILES( Tcl_Interp *interp); extern int store_hash_value( Tcl_HashTable*, const char*, const char*); extern int clear_hash_value( Tcl_HashTable*, const char*); Index: modules-3.2.10/error.c =================================================================== --- modules-3.2.10.orig/error.c 2013-11-10 19:19:21.000000000 +0000 +++ modules-3.2.10/error.c 2013-11-30 14:38:56.000000000 +0000 @@ -1212,6 +1212,7 @@ low = table; high = table + size; save = (FacilityNames *) NULL; + mid = (FacilityNames *) NULL; while( low < high) { int x; /** Have to use this, because strcmp will **/ Index: modules-3.2.10/utility.c =================================================================== --- modules-3.2.10.orig/utility.c 2013-11-10 19:19:21.000000000 +0000 +++ modules-3.2.10/utility.c 2013-11-30 14:37:15.000000000 +0000 @@ -2049,7 +2049,7 @@ ErrorLogger( NO_ERR_START, LOC, _proc_set_marked_entry, NULL); #endif - if( hentry = Tcl_CreateHashEntry( table, var, &new)) { + if( (hentry = Tcl_CreateHashEntry( table, var, &new))) { if( val) Tcl_SetHashValue( hentry, val); } @@ -2624,6 +2624,7 @@ if (*oldbuffer) strncpy(buffer, oldbuffer, MOD_BUFSIZE); blen = strlen(buffer); + brace = 0; /** get the env.var. name **/ if (*(dollarptr + 1) == '{') { brace = 1; debian/patches/series0000644000000000000000000000012412252205622012025 0ustar fix_paths.patch tcl_8.6.patch format.patch testsuite-fix.patch compiler_fixes.patch debian/patches/testsuite-fix.patch0000644000000000000000000000241312252205622014451 0ustar Author: Alastair McKinstry Description: Fix needed for version strings with braces in them. Last-Updated: 2013-11-10 Forwarded: no Index: modules-3.2.10/testsuite/modules.50-cmds/095-uname.exp =================================================================== --- modules-3.2.10.orig/testsuite/modules.50-cmds/095-uname.exp 2013-10-26 22:16:15.000000000 +0100 +++ modules-3.2.10/testsuite/modules.50-cmds/095-uname.exp 2013-11-10 18:53:48.000000000 +0000 @@ -43,13 +43,19 @@ regsub -all \# $u_version {\\#} u_version regsub -all { } $u_version {\\ } u_version +regsub -all {\(} $u_version {\\(} u_version +regsub -all {\)} $u_version {\\)} u_version regsub -all {\(} $u_domainname {\\(} u_domainname regsub -all {\)} $u_domainname {\\)} u_domainname test_cmd "csh" "load $module/sysname" "$lm/sysname ;$lmf/sysname ;$ts$u_sysname ;" test_cmd "csh" "load $module/nodename" "$lm/nodename ;$lmf/nodename ;$ts$u_nodename ;" if { $u_domainname != "unknown" } { + if { $u_domainname == "" } { + test_cmd "csh" "load $module/domain" "$lm/domain ;$lmf/domain ;" + } else { test_cmd "csh" "load $module/domain" "$lm/domain ;$lmf/domain ;$ts$u_domainname ;" + } } else { test_cmd_re "csh" "load $module/domain" "$lm/domain ;$lmf/domain ;$ts.* ;" } debian/patches/format.patch0000644000000000000000000000346212252205622013131 0ustar Author: Alastair McKinstry Description: Fixes needed for -Werror=format-security Last-Updated: 2013-06-12 Forwarded: no Index: modules-3.2.10/ModuleCmd_Avail.c =================================================================== --- modules-3.2.10.orig/ModuleCmd_Avail.c 2013-10-26 22:12:35.000000000 +0100 +++ modules-3.2.10/ModuleCmd_Avail.c 2013-10-26 22:12:41.000000000 +0100 @@ -257,7 +257,7 @@ **/ if( sw_format & SW_LONG) - fprintf( stderr, long_header); + fprintf( stderr, "%s", long_header); /** ** If a module category is specified check whether it is part Index: modules-3.2.10/ModuleCmd_Display.c =================================================================== --- modules-3.2.10.orig/ModuleCmd_Display.c 2013-10-26 22:12:35.000000000 +0100 +++ modules-3.2.10/ModuleCmd_Display.c 2013-10-26 22:12:41.000000000 +0100 @@ -161,13 +161,13 @@ g_current_module = modulename; - fprintf( stderr, local_line); + fprintf( stderr, "%s", local_line); fprintf( stderr, "%s:\n\n", modulefile); result = CallModuleProcedure( disp_interp, &cmdbuf, modulefile, "ModulesDisplay", 0); - fprintf( stderr, local_line); + fprintf( stderr, "%s", local_line); /** ** Remove the Tcl interpreter that has been used for printing ... Index: modules-3.2.10/ModuleCmd_List.c =================================================================== --- modules-3.2.10.orig/ModuleCmd_List.c 2013-10-26 22:12:35.000000000 +0100 +++ modules-3.2.10/ModuleCmd_List.c 2013-10-26 22:12:41.000000000 +0100 @@ -122,7 +122,7 @@ **/ if( sw_format & SW_LONG ) { - fprintf( stderr, long_header); + fprintf( stderr, "%s", long_header); } if( sw_format & (SW_TERSE | SW_LONG | SW_HUMAN) ) fprintf( stderr, "Currently Loaded Modulefiles:\n"); debian/patches/tcl_8.6.patch0000644000000000000000000000233112252205622013010 0ustar Author: Alastair McKinstry Description: Changes needed for Tcl8.6 Last-Updated: 2013-12-12 Forwarded: no Index: modules-3.2.10/cmdModule.c =================================================================== --- modules-3.2.10.orig/cmdModule.c 2013-12-12 00:58:41.000000000 +0000 +++ modules-3.2.10/cmdModule.c 2013-12-12 01:02:40.000000000 +0000 @@ -535,7 +535,7 @@ { FILE *infile; int gotPartial = 0; - int result = 0; + int result = 0, errLine; EM_RetVal em_result = EM_OK; char *cmd; Tcl_DString cmdbuf; @@ -640,8 +640,14 @@ case TCL_OK: gotPartial = 0; continue; /** while **/ - case TCL_ERROR: interp->errorLine = ((linenum-1)-gotPartial) + - interp->errorLine; + case TCL_ERROR: +#if (TCL_MAJOR_VERSION > 8 || TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION > 5) + errLine = Tcl_GetErrorLine(interp); + Tcl_SetErrorLine(interp, ((linenum-1)-gotPartial) + errLine); +#else /* before tcl 8.6 */ + interp->errorLine = ((linenum-1)-gotPartial) + + interp->errorLine; +#endif /* FALLTHROUGH */ case TCL_LEVEL0_RETURN: debian/patches/fix_paths.patch0000644000000000000000000002222412252205622013623 0ustar Description: Hard-code debian-type paths, as otherwise strange Capitalised paths are used. Author: Alastair McKinstry Last-Updated: 2013-01-25 Forwarded: not-needed Index: modules-3.2.9c/init/bash.in =================================================================== --- modules-3.2.9c.orig/init/bash.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/bash.in 2013-01-26 14:55:08.000000000 +0000 @@ -7,11 +7,11 @@ @VERSIONING@fi @VERSIONING@export MODULE_VERSION_STACK -@VERSIONING@module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd bash $*`; } -@NOTVERSIONING@module() { eval `@bindir@/modulecmd bash $*`; } +@VERSIONING@module() { eval `/usr/bin/modulecmd bash $*`; } +@NOTVERSIONING@module() { eval `/usr/bin/modulecmd bash $*`; } export -f module -MODULESHOME=@prefix@ +MODULESHOME=/usr/share/modules export MODULESHOME if [ "${LOADEDMODULES:-}" = "" ]; then Index: modules-3.2.9c/init/sh.in =================================================================== --- modules-3.2.9c.orig/init/sh.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/sh.in 2013-01-26 14:55:08.000000000 +0000 @@ -7,10 +7,10 @@ @VERSIONING@fi @VERSIONING@export MODULE_VERSION_STACK -@VERSIONING@module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd sh $*`; } -@NOTVERSIONING@module() { eval `@bindir@/modulecmd sh $*`; } +@VERSIONING@module() { eval `/usr/bin/modulecmd sh $*`; } +@NOTVERSIONING@module() { eval `/usr/bin/modulecmd sh $*`; } -MODULESHOME=@prefix@ +MODULESHOME=/usr/share/modules export MODULESHOME if [ "${LOADEDMODULES:-}" = "" ]; then Index: modules-3.2.9c/init/csh.in =================================================================== --- modules-3.2.9c.orig/init/csh.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/csh.in 2013-01-26 14:55:08.000000000 +0000 @@ -9,8 +9,8 @@ @VERSIONING@ setenv MODULE_VERSION "@VERSION@" @VERSIONING@ setenv MODULE_VERSION_STACK "@VERSION@" @VERSIONING@endif -@VERSIONING@set exec_prefix='@BASEPREFIX@/Modules/$MODULE_VERSION' -@NOTVERSIONING@set exec_prefix='@bindir@' +@VERSIONING@set exec_prefix='/usr/share/modules/$MODULE_VERSION' +@NOTVERSIONING@set exec_prefix='/usr/bin' set prefix="" set postfix="" @@ -36,13 +36,13 @@ endif set postfix = "set _exit="'$status'"; $postfix; test 0 = "'$_exit;' -@VERSIONING@alias module $prefix'eval `'$exec_prefix'/bin/modulecmd '$modules_shell' '$histchar'*`; '$postfix -@NOTVERSIONING@alias module $prefix'eval `'$exec_prefix'/modulecmd '$modules_shell' '$histchar'*`; '$postfix +@VERSIONING@alias module $prefix'eval `/usr/bin/modulecmd '$modules_shell' '$histchar'*`; '$postfix +@NOTVERSIONING@alias module $prefix'eval `/usr/bin/modulecmd '$modules_shell' '$histchar'*`; '$postfix unset exec_prefix unset prefix unset postfix -setenv MODULESHOME @prefix@ +setenv MODULESHOME /usr/share/modules if (! $?MODULEPATH ) then setenv MODULEPATH `sed -n 's/[ #].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath` Index: modules-3.2.9c/init/zsh.in =================================================================== --- modules-3.2.9c.orig/init/zsh.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/zsh.in 2013-01-26 14:55:08.000000000 +0000 @@ -7,10 +7,10 @@ @VERSIONING@fi @VERSIONING@export MODULE_VERSION_STACK -@VERSIONING@module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd zsh $*`; } -@NOTVERSIONING@module() { eval `@bindir@/modulecmd zsh $*`; } +@VERSIONING@module() { eval `/usr/bin/modulecmd zsh $*`; } +@NOTVERSIONING@module() { eval `/usr/bin/modulecmd zsh $*`; } -MODULESHOME=@prefix@ +MODULESHOME=/usr/share/modules export MODULESHOME if [ "${LOADEDMODULES:-}" = "" ]; then Index: modules-3.2.9c/init/cmake.in =================================================================== --- modules-3.2.9c.orig/init/cmake.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/cmake.in 2013-01-26 14:55:08.000000000 +0000 @@ -6,9 +6,9 @@ @VERSIONING@endif() function(module ARGS) -@VERSIONING@ set(exec_prefix "@BASEPREFIX@/Modules/$ENV{MODULE_VERSION}/bin") +@VERSIONING@ set(exec_prefix "/usr/bin") -@NOTVERSIONING@ set(exec_prefix "@bindir@") +@NOTVERSIONING@ set(exec_prefix "/usr/bin") execute_process(COMMAND mktemp -t moduleinit.cmake.XXXXXXXXXXXX OUTPUT_VARIABLE tempfile_name) @@ -17,7 +17,7 @@ include(${tempfile_name}) endfunction(module) -set(ENV{MODULESHOME} "@prefix@") +set(ENV{MODULESHOME} "/usr/share/modules") if(NOT ENV{MODULEPATH}) file(STRINGS "$ENV{MODULESHOME}/init/.modulespath" cmi_mp1) Index: modules-3.2.9c/init/perl.pm.in =================================================================== --- modules-3.2.9c.orig/init/perl.pm.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/perl.pm.in 2013-01-26 14:55:08.000000000 +0000 @@ -7,14 +7,14 @@ sub module { local ($exec_prefix); -@VERSIONING@ $exec_prefix = "@BASEPREFIX@/Modules/".$ENV{"MODULE_VERSION"}; +@VERSIONING@ $exec_prefix = "/usr/share/modules/".$ENV{"MODULE_VERSION"}; @VERSIONING@ eval `$exec_prefix/bin/modulecmd perl @_`; -@NOTVERSIONING@ $exec_prefix = "@bindir@"; +@NOTVERSIONING@ $exec_prefix = "/usr/bin"; @NOTVERSIONING@ eval `$exec_prefix/modulecmd perl @_`; } -$ENV{"MODULESHOME"} = "@prefix@"; +$ENV{"MODULESHOME"} = "/usr/share/modules"; if (! defined $ENV{"MODULEPATH"} ) { open(IN, "$ENV{'MODULESHOME'}/init/.modulespath") || die "cannot open '.modulespath' file: $!\n"; Index: modules-3.2.9c/init/python.py.in =================================================================== --- modules-3.2.9c.orig/init/python.py.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/python.py.in 2013-01-26 14:55:08.000000000 +0000 @@ -5,7 +5,7 @@ @VERSIONING@ os.environ['MODULE_VERSION'] = '@VERSION@' @VERSIONING@else: @VERSIONING@ os.environ['MODULE_VERSION_STACK'] = os.environ['MODULE_VERSION'] -@VERSIONING@os.environ['MODULESHOME'] = '@prefix@' +@VERSIONING@os.environ['MODULESHOME'] = '/usr/share/modules' if not os.environ.has_key('MODULEPATH'): f = open(os.environ['MODULESHOME'] + "/init/.modulespath", "r") @@ -24,8 +24,8 @@ args = args[0] else: args = list(args) -@VERSIONING@ (output, error) = subprocess.Popen(['@BASEPREFIX@/Modules/%s/bin/modulecmd' % os.environ['MODULE_VERSION'], 'python'] + -@NOTVERSIONING@ (output, error) = subprocess.Popen(['@bindir@/modulecmd', 'python'] + +@VERSIONING@ (output, error) = subprocess.Popen(['/usr/bin/modulecmd' % os.environ['MODULE_VERSION'], 'python'] + +@NOTVERSIONING@ (output, error) = subprocess.Popen(['/usr/bin/modulecmd', 'python'] + args, stdout=subprocess.PIPE).communicate() exec output Index: modules-3.2.9c/init/ruby.rb.in =================================================================== --- modules-3.2.9c.orig/init/ruby.rb.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/ruby.rb.in 2013-01-26 14:55:08.000000000 +0000 @@ -4,7 +4,7 @@ @VERSIONING@else @VERSIONING@ ENV['MODULE_VERSION_STACK'] = ENV['MODULE_VERSION'] @VERSIONING@end -@VERSIONING@ENV['MODULESHOME'] = "@prefix@" +@VERSIONING@ENV['MODULESHOME'] = "/usr/share/modules" if !ENV.has_key?('MODULEPATH') then ENV['MODULEPATH'] = File.open("#{ENV['MODULESHOME']}/init/.modulespath","r").readlines.reject {|e| e =~ /^(\s*#|$)/}.join(":") @@ -22,10 +22,10 @@ else args = args.join(" ") end -@VERSIONING@ exec_prefix = "@BASEPREFIX@/Modules/#{ENV['MODULE_VERSION']}" -@VERSIONING@ eval `#{exec_prefix}/bin/modulecmd ruby #{args}` +@VERSIONING@ exec_prefix = "/usr/share/modules/#{ENV['MODULE_VERSION']}" +@VERSIONING@ eval `/usr/bin/modulecmd ruby #{args}` -@NOTVERSIONING@ exec_prefix = "@bindir@" +@NOTVERSIONING@ exec_prefix = "/usr/bin" @NOTVERSIONING@ eval `#{exec_prefix}/modulecmd ruby #{args}` end Index: modules-3.2.9c/init/bash_completion.in =================================================================== --- modules-3.2.9c.orig/init/bash_completion.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/bash_completion.in 2013-01-26 14:55:08.000000000 +0000 @@ -2,8 +2,8 @@ # Bash commandline completion (bash 3.0 and above) for Modules @VERSION@ # _module_avail() { -@VERSIONING@ @BASEPREFIX@/Modules/@VERSION@/bin/modulecmd bash -t avail 2>&1 | sed ' -@NOTVERSIONING@ @bindir@/modulecmd bash -t avail 2>&1 | sed ' +@VERSIONING@ /usr/share/modules/@VERSION@/bin/modulecmd bash -t avail 2>&1 | sed ' +@NOTVERSIONING@ /usr/bin/modulecmd bash -t avail 2>&1 | sed ' /:$/d; /:ERROR:/d; s#^\(.*\)/\(.\+\)(default)#\1\n\1\/\2#; Index: modules-3.2.9c/init/ksh.in =================================================================== --- modules-3.2.9c.orig/init/ksh.in 2012-05-05 20:00:44.000000000 +0100 +++ modules-3.2.9c/init/ksh.in 2013-01-26 15:03:17.000000000 +0000 @@ -7,10 +7,10 @@ @VERSIONING@fi @VERSIONING@export MODULE_VERSION_STACK -@VERSIONING@module() { eval `@BASEPREFIX@/Modules/$MODULE_VERSION/bin/modulecmd ksh $*`; } -@NOTVERSIONING@module() { eval `@bindir@/modulecmd ksh $*`; } +@VERSIONING@module() { eval `/usr/bin/modulecmd ksh $*`; } +@NOTVERSIONING@module() { eval `/usr/bin/modulecmd ksh $*`; } -MODULESHOME=@prefix@ +MODULESHOME=/usr/share/modules export MODULESHOME if [ "${LOADEDMODULES:-}" = "" ]; then debian/modulespath0000644000000000000000000000166112252205622011440 0ustar # # @(#)$Id: 38aa24cc33a5f54a93781d63005a084f74418022 $ # Module version 3.2.10 # init/.modulespath. Generated from .modulespath.in by configure. # # Modulepath initial setup # ======================== # # This file defines the initial setup for the module files search path. # Comments may be added anywhere, which begin on # and continue until the # end of the line # Each line containing a single path will be added to the MODULEPATH # environment variable. You may add as many as you want - just # limited by the maximum variable size of your shell. # /etc/environment-modules/modules /usr/share/modules/versions # location of version files /usr/Modules/$MODULE_VERSION/modulefiles # Module pkg modulefiles (if versioning) #/usr/Modules/modulefiles # Module pkg modulefiles (if no versioning) /usr/share/modules/modulefiles # General module files #/usr/Modules/3.2.10/your_contribs # Edit for your requirements debian/rules0000755000000000000000000000271612252205622010252 0ustar #!/usr/bin/make -f # export DH_VERBOSE=1 TDIR=debian/environment-modules DEB_BUILD_MAINT_OPTIONS:=hardening=+all DEB_CFLAGS_MAINT_APPEND:= -Wall -pedantic DEB_LDFLAGS_MAINT_APPEND:= -Wl,--as-needed export DEB_BUILD_MAINT_OPTIONS DEB_CFLAGS_MAINT_APPEND DEB_LDFLAGS_MAINT_APPEND # The magic debhelper rule %: dh $@ override_dh_auto_clean: dh_auto_clean rm -f stamp-h override_dh_auto_configure: dh_auto_configure -- \ --prefix=/usr --with-version-path=/usr/share/modules/versions \ --with-module-path=/usr/share/modules/modulefiles \ --with-tcl-ver=8.6 \ --enable-logging \ --bindir=/usr/bin LDFLAGS='$(LDFLAGS) -Wl,--as-needed' CFLAGS='$(CFLAGS) ' override_dh_auto_install: dh_auto_install # Fix brain-dead install locations. mv ${TDIR}/usr/Modules/*/bin/* ${TDIR}/usr/bin rmdir ${TDIR}/usr/Modules/*/bin mv ${TDIR}/usr/Modules/*/init/bash_completion ${TDIR}/etc/bash_completion.d/modules mv ${TDIR}/usr/Modules/*/share/* ${TDIR}/usr/share mv ${TDIR}/usr/Modules/*/init ${TDIR}/usr/share/modules mv ${TDIR}/usr/Modules/*/modulefiles ${TDIR}/usr/share/modules rmdir ${TDIR}/usr/Modules/*/share mv ${TDIR}/usr/Modules ${TDIR}/usr/share/modules cp debian/csh ${TDIR}/etc/csh/login.d/modules cp debian/sh ${TDIR}/etc/profile.d/modules.sh cp debian/modulespath ${TDIR}/etc/environment-modules/modulespath rm ${TDIR}/usr/share/modules/init/.modulespath dh_link /etc/environment-modules/modulespath /usr/share/modules/init/.modulespath debian/compat0000644000000000000000000000000212252205622010362 0ustar 9 debian/csh0000644000000000000000000000070712252205622007670 0ustar #----------------------------------------------------------------------# # system-wide csh.modules # # Initialize modules for all csh-derivative shells # #----------------------------------------------------------------------# if ($?tcsh) then set modules_shell="tcsh" else set modules_shell="csh" endif source /usr/share/modules/init/${modules_shell} unset modules_shell debian/changelog0000644000000000000000000000515312252205622011042 0ustar modules (3.2.10-8) unstable; urgency=medium [Yaroslav O. Halchenko] * debian/sh - enable init script for zsh. Closes #731974. * Add support for tcl < 8.6. -- Alastair McKinstry Thu, 12 Dec 2013 06:34:42 +0000 modules (3.2.10-7) unstable; urgency=low * Add /etc/environment-modules/modulespath as conffile; /usr/share/init/.modulespath points to this. Closes: #711955 * Add /etc/environment-modules/modules ; include in modulespath. * Patch for fixing minor compiler warnings from lintian. * Standards-Version: 3.9.5. -- Alastair McKinstry Fri, 29 Nov 2013 18:24:31 +0000 modules (3.2.10-6) unstable; urgency=low * Fix testsuite breakage on kFreeBSD -- Alastair McKinstry Sun, 10 Nov 2013 18:50:04 +0000 modules (3.2.10-5) unstable; urgency=low * Undo tcl8.6-dev change until the transition as it breaks buildds. Closes: #726890. -- Alastair McKinstry Sat, 26 Oct 2013 22:09:35 +0100 modules (3.2.10-4) unstable; urgency=low * Replace tcl8.6-dev by tcl-dev | tcl8.6-dev for FTBFS in experimental Closes: #725010. * Added Patch for uname version strings with braces in them. * Enable syslog functionality. -- Alastair McKinstry Mon, 14 Oct 2013 09:50:10 +0100 modules (3.2.10-3) unstable; urgency=low * Fixes needed for -Werror=format-security. -- Alastair McKinstry Wed, 12 Jun 2013 09:20:40 +0100 modules (3.2.10-2) unstable; urgency=low * Move from tcl8.5 to tcl8.6. * Minor fix needed for hardening; dh_compat=9 -- Alastair McKinstry Tue, 11 Jun 2013 13:34:08 +0100 modules (3.2.10-1) unstable; urgency=low * New upstream release. Closes: #397906. * Fix ksh completion patch. Thanks to Bastian Neuberger. Closes: #697685. * Now at Standards-Version: 3.9.4 * Move to Debhelper dependency >=9. * Add hardening, linking as-needed. * Add watch file thanks to Bart Martens. -- Alastair McKinstry Sat, 26 Jan 2013 15:04:02 +0000 modules (3.2.9c-3) unstable; urgency=low * Fix broken bash completion. Thanks to Alexy Brodkin for patch. Closes: #691521 -- Alastair McKinstry Sun, 04 Nov 2012 14:51:25 +0000 modules (3.2.9c-2) unstable; urgency=low * B-D on tcl8.5-dev, not tcl8.5 only. Closes: #671522. -- Alastair McKinstry Sat, 05 May 2012 19:57:57 +0100 modules (3.2.9c-1) unstable; urgency=low * Initial release. (Closes: #583484) -- Alastair McKinstry Fri, 13 Apr 2012 11:14:56 +0100 debian/copyright0000644000000000000000000000071012252205622011115 0ustar This is the Debian version of the modules package. Copyright (C) 1996-1999 John L. Furlani & Peter W. Osel. Modules is available under the terms of the GNU General Public License, version 2. On Debian GNU/Linux systems, the complete text of this license can be found in `/usr/share/common-licenses/GPL-2'. This package was debianised by Alastair McKinstry , April 2012; The Debian modifications are also released under the GPL-2. debian/environment-modules.conffiles0000644000000000000000000000004512252205622015067 0ustar /etc/environment-modules/modulespath debian/sh0000644000000000000000000000120512252205622007517 0ustar #----------------------------------------------------------------------# # system-wide profile.modules # # Initialize modules for all sh-derivative shells # #----------------------------------------------------------------------# trap "" 1 2 3 case "$0" in -bash|bash|*/bash) . /usr/share/modules/init/bash ;; -ksh|ksh|*/ksh) . /usr/share/modules/init/ksh ;; -zsh|zsh|*/zsh) . /usr/share/modules/init/zsh ;; -sh|sh|*/sh) . /usr/share/modules/init/sh ;; *) . /usr/share/modules/init/sh ;; # default for scripts esac trap - 1 2 3