summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradv <adv@uma.es>2009-12-22 15:19:56 +0000
committeradv <adv@uma.es>2009-12-22 15:19:56 +0000
commitebb6c8d3955abf8fc16cfb0a1c2a582ccab2f465 (patch)
tree6fd3eaa6297f5106437b756e5fe1173197ad422e
parent4c9733540280605c2ac19f4ec2bc05db616e31a2 (diff)
trunk engine ToolsGNU.c instrucciones de compilación para los programas referenciados
git-svn-id: https://opengnsys.es/svn/trunk@694 a21b9725-9963-47de-94b9-378ad31fedc9
-rw-r--r--client/engine/ToolsGNU.c176
1 files changed, 146 insertions, 30 deletions
diff --git a/client/engine/ToolsGNU.c b/client/engine/ToolsGNU.c
index d8a7fc64..aebd24a3 100644
--- a/client/engine/ToolsGNU.c
+++ b/client/engine/ToolsGNU.c
@@ -1,31 +1,147 @@
-/**
- * @mainpage Proyecto OpenGnSys
- *
- * Documentación de la API de funciones del motor de clonación de OpenGnSys.
- *
- *
- * @file ToolsGNU.c
- * @brief Librería o clase Tools GNU used by OpenGNSys
- * @class Tools
- * @brief Herramientas gnu utilizadas por opengnsys.
- * @version 0.9
- * @warning License: GNU GPLv3+
- */
-
-
-function awk () { }
-function chntpw () { }
-function ctorrent () { }
-function fdisk () { }
-function fsck () { }
-function kexec () { }
-function lshw () { }
-function mkfs () { }
-function mount () { }
-function ms-sys () { }
-function parted () { }
-function partimage () { }
-function partprobe () { }
-function sfdisk () { }
-function umount () { }
+#!/bin/bash
+#/**
+# * @mainpage Proyecto OpenGnSys
+# *
+# * Documentación de la API de funciones del motor de clonación de OpenGnSys.
+# *
+# *
+# * @file ToolsGNU.c
+# * @brief Librería o clase Tools GNU used by OpenGNSys
+# * @class Tools
+# * @brief Herramientas gnu utilizadas por opengnsys.
+# * @version 0.9
+# * @warning License: GNU GPLv3+
+# */
+
+function install ()
+{
+ [ $# = 0 ] && echo pasar url del tar.gz && return
+ cd /tmp
+ wget -O download.tgz $1
+ mkdir download || directorio no creado
+ tar xzvf download.tgz -C download
+ for i in `ls download`
+ do
+ cd download/$i
+ [ -e "configure" ] && ./configure
+ make && make install
+ cd - && rm -fr download*
+ done
+}
+
+function mbuffer ()
+{
+ if [ "$1" = install ]
+ then
+ install http://www.maier-komor.de/software/mbuffer/mbuffer-20091122.tgz
+ else
+ return
+ fi
+}
+
+function ms-sys ()
+{
+ if [ "$1" = install ]
+ then
+ install http://downloads.sourceforge.net/project/ms-sys/ms-sys%20development/2.1.4/ms-sys-2.1.4.tar.gz
+ else
+ return
+ fi
+}
+
+function ctorrent ()
+{
+ if [ "$1" = install ]
+ then
+ install http://sourceforge.net/projects/dtorrent/files/dtorrent/3.3.2/ctorrent-dnh3.3.2.tar.gz/download
+ else
+ return
+ fi
+}
+
+function udpcast ()
+{
+ if [ "$1" = install ]
+ then
+ install http://udpcast.linux.lu/download/udpcast-20091031.tar.gz
+ else
+ return
+ fi
+}
+
+function ntfs-3g ()
+{
+if [ "$1" = install ]
+ then
+ install http://tuxera.com/opensource/ntfs-3g-2009.11.14.tgz
+ else
+ return
+fi
+
+}
+
+function partitionsaving ()
+{
+echo http://damien.guibouret.free.fr/savepart.zip
+
+}
+
+function awk ()
+{
+}
+
+function chntpw ()
+{
+}
+
+function ctorrent ()
+{
+}
+
+function fdisk ()
+{
+}
+
+function fsck ()
+{
+}
+
+function kexec ()
+{
+}
+
+function lshw ()
+{
+}
+
+function mkfs ()
+{
+}
+
+function mount ()
+{
+}
+
+
+
+function parted ()
+{
+}
+
+function partimage ()
+{
+}
+
+function partprobe ()
+{
+}
+
+function sfdisk ()
+{
+}
+
+function umount ()
+{
+}
+