[SM-Commit] GIT changes to master grimoire by Mathieu Lonjaret (c32cd127aa977c7991ed76b9e62207a269209568)

Mathieu Lonjaret scm at sourcemage.org
Sat Jul 26 20:35:07 EDT 2008


GIT changes to master grimoire by Mathieu Lonjaret <lejatorn at sourcemage.org>:

 ChangeLog              |    3 +++
 utils/9mount/BUILD     |    1 +
 utils/9mount/DEPENDS   |    3 +++
 utils/9mount/DETAILS   |   24 ++++++++++++++++++++++++
 utils/9mount/DOWNLOAD  |   32 ++++++++++++++++++++++++++++++++
 utils/9mount/HISTORY   |    2 ++
 utils/9mount/PREPARE   |    1 +
 utils/9mount/PRE_BUILD |    3 +++
 8 files changed, 69 insertions(+)

New commits:
commit c32cd127aa977c7991ed76b9e62207a269209568
Author: Mathieu Lonjaret <lejatorn at sourcemage.org>
Commit: Mathieu Lonjaret <lejatorn at sourcemage.org>

    utils/9mount: new spell

diff --git a/ChangeLog b/ChangeLog
index 1354c21..e8ad421 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-07-27 Mathieu Lonjaret <lejatorn at sourcemage.org>
+	* utils/9mount: new spell, mount utils around 9p module
+
 2008-07-26 Elisamuel Resto <ryuji at sourcemage.org>
 	* mail/qmail: moved from z-rejected, LICENSE is now PublicDomain
 
diff --git a/utils/9mount/BUILD b/utils/9mount/BUILD
new file mode 100755
index 0000000..8f58e6d
--- /dev/null
+++ b/utils/9mount/BUILD
@@ -0,0 +1 @@
+make
diff --git a/utils/9mount/DEPENDS b/utils/9mount/DEPENDS
new file mode 100755
index 0000000..e98bc69
--- /dev/null
+++ b/utils/9mount/DEPENDS
@@ -0,0 +1,3 @@
+if [ "x$HG" == "xy" ]; then
+  depends mercurial 
+fi
diff --git a/utils/9mount/DETAILS b/utils/9mount/DETAILS
new file mode 100755
index 0000000..bc448e3
--- /dev/null
+++ b/utils/9mount/DETAILS
@@ -0,0 +1,24 @@
+           SPELL=9mount
+if [ "x$HG" != "xy" ]; then
+         VERSION=1.3
+          SOURCE=${SPELL}-${VERSION}.tar.gz
+      SOURCE_URL=http://sqweek.dnsdojo.org/9p/${SOURCE}
+     SOURCE_HASH=sha512:cec73b6039f93e7abcdae4854c4e805d4237641064c19746f49fee0e66951bf53015ec26221653a7b87dd018ab0c82c95c6ea8f1b88fa8117c818cf5b1960ee5
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/${SPELL}-${VERSION}
+else
+         VERSION=hg
+          SOURCE=${SPELL}-${VERSION}.tar.bz2
+      SOURCE_URL=http://sqweek.dnsdojo.org/hg/${SPELL}
+   SOURCE_IGNORE=volatile
+  FORCE_DOWNLOAD=on
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/${SPELL}
+fi
+        WEB_SITE=http://sqweek.dnsdojo.org/code/9mount/
+         ENTERED=20080727
+      LICENSE[0]="MIT"
+           SHORT="9mount, 9bind, 9umount - mount/unmount 9p filesystems"
+cat << EOF
+9mount is a set of SUID mounting tools for use with v9fs to help cope with linux's poor mount support (I have to be root? Hostnames are only resolved for nfs?). It also gives dial string support and defaults to 9p2000.
+
+The tools offer a level of security - 9mount will only let you mount over non-sticky directories you have write access to (no mounting over /tmp), and 9umount won't let you unmount partitions mounted by someone else, unless the mount point happens to be in your home directory.
+EOF
diff --git a/utils/9mount/DOWNLOAD b/utils/9mount/DOWNLOAD
new file mode 100755
index 0000000..5d677bd
--- /dev/null
+++ b/utils/9mount/DOWNLOAD
@@ -0,0 +1,32 @@
+if [ "x$HG" != "xy" ]; then
+  default_download 
+  return $?
+fi                                                                       &&
+if [[ -f $SOURCE_CACHE/$SOURCE ]] ; then
+  message "${MESSAGE_COLOR}Extracting old tarball ${DEFAULT_COLOR}"      &&
+  cd $BUILD_DIRECTORY                                                    &&
+  tar -xjf $SOURCE_CACHE/$SOURCE                                         &&
+  cd ${SPELL}                                                            &&
+  message "${MESSAGE_COLOR}Running hg pull & hg update ${DEFAULT_COLOR}" &&
+  hg pull                                                                &&
+  hg update                                                              &&
+  message "${MESSAGE_COLOR}Regenerating source tarball${DEFAULT_COLOR}"  &&
+  cd ../                                                                 &&
+  tar -cjf $SOURCE ${SPELL}                                              &&
+  mv $SOURCE $SOURCE_CACHE                                               &&
+  success="Affirmative"
+else
+  message "${MESSAGE_COLOR}Generating new tarball${DEFAULT_COLOR}"       &&
+  cd $BUILD_DIRECTORY                                                    &&
+  hg clone ${SOURCE_URL}                                                 &&
+  tar -jcf ${SOURCE} ${SPELL}                                            &&
+  mv $SOURCE $SOURCE_CACHE                                               &&
+  message "${MESSAGE_COLOR}Hg cloning complete...${DEFAULT_COLOR}"       &&
+  success="Affirmative"
+fi
+
+if [[ -z $success ]] ; then
+  return 1
+else
+  return 0
+fi
diff --git a/utils/9mount/HISTORY b/utils/9mount/HISTORY
new file mode 100755
index 0000000..814f2ef
--- /dev/null
+++ b/utils/9mount/HISTORY
@@ -0,0 +1,2 @@
+2008-07-27 Mathieu Lonjaret <lejatorn at sourcemage.org>
+	* PREPARE, PRE_BUILD, BUILD, DEPENDS, DETAILS, HISTORY: created this spell
diff --git a/utils/9mount/PREPARE b/utils/9mount/PREPARE
new file mode 100755
index 0000000..13a14cb
--- /dev/null
+++ b/utils/9mount/PREPARE
@@ -0,0 +1 @@
+config_query HG "Build from mercurial?" n
diff --git a/utils/9mount/PRE_BUILD b/utils/9mount/PRE_BUILD
new file mode 100755
index 0000000..222b8ff
--- /dev/null
+++ b/utils/9mount/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build    &&
+cd $SOURCE_DIRECTORY &&
+sed -i -r 's:/usr/local:/usr:' Makefile 
\ No newline at end of file



More information about the SM-Commit mailing list