Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Justin Boffemmyer (a1808c91ef8bb74c2f68ec4b5e5528da28d64910)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Justin Boffemmyer (a1808c91ef8bb74c2f68ec4b5e5528da28d64910)
  • Date: Mon, 15 Aug 2011 04:51:52 -0500

GIT changes to master grimoire by Justin Boffemmyer <flux AT sourcemage.org>:

ChangeLog | 3 +++
devel/sas/BUILD | 1 +
devel/sas/DEPENDS | 1 +
devel/sas/DETAILS | 22 ++++++++++++++++++++++
devel/sas/HISTORY | 3 +++
devel/sas/INSTALL | 47 +++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 77 insertions(+)

New commits:
commit a1808c91ef8bb74c2f68ec4b5e5528da28d64910
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

devel/sas: new spell, pure POSIX shell assembler

diff --git a/ChangeLog b/ChangeLog
index 834e04d..517190d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2011-08-15 Justin Boffemmyer <flux AT sourcemage.org>
+ * devel/sas: new spell, pure POSIX shell-implemented assembler
+
2011-08-12 Ladislav Hagara <hgr AT vabo.cz>
* crypto/polarssl: new spell, embedded SSL/TLS cryptographic library

diff --git a/devel/sas/BUILD b/devel/sas/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/devel/sas/BUILD
@@ -0,0 +1 @@
+true
diff --git a/devel/sas/DEPENDS b/devel/sas/DEPENDS
new file mode 100755
index 0000000..457fdb9
--- /dev/null
+++ b/devel/sas/DEPENDS
@@ -0,0 +1 @@
+runtime_depends coreutils
diff --git a/devel/sas/DETAILS b/devel/sas/DETAILS
new file mode 100755
index 0000000..1d2deca
--- /dev/null
+++ b/devel/sas/DETAILS
@@ -0,0 +1,22 @@
+ SPELL=sas
+ VERSION=SCM
+ SOURCE_IGNORE=volatile
+ FORCE_DOWNLOAD=on
+ SOURCE="$SPELL-$VERSION.tar.bz2"
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ SOURCE_URL[0]="git://gitorious.org/$SPELL/$SPELL.git"
+ WEB_SITE="http://gitorious.org/$SPELL/";
+ ENTERED=20110815
+ LICENSE[0]="BSD"
+ DOCS="LICENSE API CREDITS Roadmap"
+ SHORT="shell assembler"
+cat << EOF
+sas is a Shell ASsembler written in pure POSIX shell. It is tested under
+various shells to ensure that it has few to no bashisms and is portable as
+possible. There is a logically separated assembler core and separate ISA
+instruction set files (e.g. x86.set). It assembles much slower than native
+assemblers (such as nasm, yasm, gas, etc.), but is much smaller and its only
+dependencies are a functioning shell, tr, printf, and cat, so it might be
+useful in constrained systems (penetration testing, embedded, educational,
+etc.).
+EOF
diff --git a/devel/sas/HISTORY b/devel/sas/HISTORY
new file mode 100644
index 0000000..c9c6fc2
--- /dev/null
+++ b/devel/sas/HISTORY
@@ -0,0 +1,3 @@
+2011-08-15 Justin Boffemmyer <flux AT sourcemage.org>
+ * ALL: spell created
+
diff --git a/devel/sas/INSTALL b/devel/sas/INSTALL
new file mode 100755
index 0000000..9965737
--- /dev/null
+++ b/devel/sas/INSTALL
@@ -0,0 +1,47 @@
+# path where the scripts and data will be based
+install_path="$INSTALL_ROOT"
+# strip any unnecessary trailing '/' from install_path
+install_path="${install_path%/}"
+
+#--------------
+# installation functions
+#--------------
+function install_dir() {
+ local dir="$1"
+ local dest="${2:-$install_path}"
+
+ # create the directory
+ install -v -d -m 0755 "$dest/$dir"
+}
+
+function install_dir_files() {
+ local dir="$1"
+ local dest="${2:-$install_path}"
+
+ # install all the files in the provided dir (no child directories)
+ find "$dir" -maxdepth 1 -type f -exec install -v -m 0644 -t "$dest" '{}' \;
+}
+
+function install_dir_single() {
+ local dir="$1"
+ local dest="${2:-$install_path}"
+
+ # create the directory
+ install_dir "$dir" "$dest" &&
+
+ # install all the files in it (no child directories)
+ install_dir_files "$dir" "$dest/$dir"
+}
+
+archdir="$install_path/usr/share/sas" &&
+
+install_dir_single arch "$install_path/usr/share/sas" &&
+
+# modify the default search path for the ISA files
+sed -i '/SAS_ARCH_DIR="${0.*"/d' sas.sh &&
+sed -i '/\[ -d "$SAS_ARCH_DIR".*/d' sas.sh &&
+sed -i 's#\(SAS_ARCH_DIR="\)${SAS_ARCH_DIR}#\1'"$archdir"'#' sas.sh &&
+
+# install main sas.sh script as usr/bin/sas
+install -v -m 0755 sas.sh "$install_path/usr/bin/sas"
+



  • [SM-Commit] GIT changes to master grimoire by Justin Boffemmyer (a1808c91ef8bb74c2f68ec4b5e5528da28d64910), Justin Boffemmyer, 08/15/2011

Archive powered by MHonArc 2.6.24.

Top of Page