diff --git a/4.8.28/Singularity b/4.8.28/Singularity new file mode 100644 index 0000000..8caa3d9 --- /dev/null +++ b/4.8.28/Singularity @@ -0,0 +1,14 @@ +Bootstrap: docker +From: alpine:edge + +%labels + AUTHOR icaoberg + EMAIL icaoberg@psc.edu + SUPPORT help@psc.edu + REPOSITORY http://gitub.com/pscedu/singularity-mc + COPYRIGHT Copyright © 2021-2022 Pittsburgh Supercomputing Center. All Rights Reserved. + VERSION 4.8.28 + +%post + apk update + apk add mc diff --git a/4.8.28/build.sh b/4.8.28/build.sh new file mode 100755 index 0000000..9f91928 --- /dev/null +++ b/4.8.28/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Copyright © 2021-2022 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +IMAGE=singularity-mc-4.8.28.sif +DEFINITION=Singularity + +if [ -f $IMAGE ]; then + rm -fv $IMAGE +fi + +sudo singularity build $IMAGE $DEFINITION + +if [ -f $IMAGE ]; then + exit 0 +else + exit 1 +fi diff --git a/4.8.28/mc b/4.8.28/mc new file mode 100755 index 0000000..300c782 --- /dev/null +++ b/4.8.28/mc @@ -0,0 +1,18 @@ +#!/bin/bash + +VERSION=4.8.28 +PACKAGE=mc +TOOL=$PACKAGE +DIRECTORY=$(dirname $0) + +STORAGES=(/ocean /bil /hive /local) + +OPTIONS="" +for STORAGE in "${STORAGES[@]}" +do + if [ -d "$STORAGE" ]; then + OPTIONS=$OPTIONS" -B $STORAGE" + fi +done + +singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@" diff --git a/4.8.28/modulefile.lua b/4.8.28/modulefile.lua new file mode 100644 index 0000000..55f5fa2 --- /dev/null +++ b/4.8.28/modulefile.lua @@ -0,0 +1,38 @@ +-- +-- mc 4.8.28 modulefile +-- +-- "URL: https://www.psc.edu/resources/software" +-- "Category: Other" +-- "Description: Midnight Commander (also known as mc) is a free cross-platform orthodox file manager and a clone of Norton Commander." + +whatis("Name: mc") +whatis("Version: 4.8.28") +whatis("Category: Other") +whatis("Description: Midnight Commander (also known as mc) is a free cross-platform orthodox file manager and a clone of Norton Commander.") + +help([[ +GNU Midnight Commander is a visual file manager, licensed under GNU General Public License and therefore qualifies as Free Software. It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included. + +To load the module, type + +> module load mc/4.8.28 + +To unload the module, type + +> module unload mc/4.8.28 + +Documentation +------------- +For help, type + +> mc --help + +Tools included in this module are + +* mc +]]) + +local package = "mc" +local version = "4.8.28" +local base = pathJoin("/opt/packages",package,version) +prepend_path("PATH", base) diff --git a/4.8.28/rbuild.sh b/4.8.28/rbuild.sh new file mode 100755 index 0000000..9682d23 --- /dev/null +++ b/4.8.28/rbuild.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Copyright © 2021-2022 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +IMAGE=singularity-mc-4.8.28.sif +DEFINITION=Singularity + +if [ -f $IMAGE ]; then + rm -fv $IMAGE +fi + +singularity build --remote $IMAGE $DEFINITION + +if [ -f $IMAGE ]; then + exit 0 +else + exit 1 +fi diff --git a/4.8.28/test.sh b/4.8.28/test.sh new file mode 100755 index 0000000..042f731 --- /dev/null +++ b/4.8.28/test.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +tree . + +singularity exec singularity-mc-4.8.28.sif mc --help