[Lunar-commits] <moonbase> makebootfat: new module

Paul Bredbury brebs at lunar-linux.org
Tue Oct 6 23:13:56 CEST 2009


commit b1b8e88da76e0192030fddd32c9d959b2829a6e0
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Wed Oct 7 04:13:56 2009 +0700

    makebootfat: new module
---
 filesys/makebootfat/BUILD   |   26 ++++++++++++++++++++++++++
 filesys/makebootfat/DEPENDS |    3 +++
 filesys/makebootfat/DETAILS |   23 +++++++++++++++++++++++
 3 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/filesys/makebootfat/BUILD b/filesys/makebootfat/BUILD
new file mode 100644
index 0000000..09f2cd2
--- /dev/null
+++ b/filesys/makebootfat/BUILD
@@ -0,0 +1,26 @@
+(
+
+  default_build  &&
+
+  mkdir -p /usr/share/$MODULE/old/  &&
+
+  # These files are outdated, but install them anyway
+  install -m644 mbrfat.bin       /usr/share/$MODULE/old/  &&
+  install -m644 test/ldlinux.bss /usr/share/$MODULE/old/  &&
+  install -m644 test/ldlinux.sys /usr/share/$MODULE/old/  &&
+
+  # Let's make this less painful for users
+  # http://brierwooddesign.com/2008/11/29/making-a-bootable-dos-usb-stick-with-freedos
+  # http://blog.flameeyes.eu/2008/08/30/updating-a-bios-without-floppies-windows-or-cds
+  bsdtar -xf $SOURCE_CACHE/$SOURCE2  &&
+  unzip freedos/packages/src_base/kernels.zip source/ukernel/boot/fat{12,16,32lba}.bin  &&
+
+  install -m644 source/ukernel/boot/fat12.bin    /usr/share/$MODULE/  &&
+  install -m644 source/ukernel/boot/fat16.bin    /usr/share/$MODULE/  &&
+  install -m644 source/ukernel/boot/fat32lba.bin /usr/share/$MODULE/  &&
+  install -m644 freedos/setup/odin/command.com   /usr/share/$MODULE/  &&
+  install -m644 freedos/setup/odin/kernel.sys    /usr/share/$MODULE/  &&
+
+  gather_docs HISTORY
+
+) > $C_FIFO 2>&1
diff --git a/filesys/makebootfat/DEPENDS b/filesys/makebootfat/DEPENDS
new file mode 100644
index 0000000..ede62d5
--- /dev/null
+++ b/filesys/makebootfat/DEPENDS
@@ -0,0 +1,3 @@
+depends libarchive
+depends syslinux
+depends unzip
diff --git a/filesys/makebootfat/DETAILS b/filesys/makebootfat/DETAILS
new file mode 100644
index 0000000..933eb70
--- /dev/null
+++ b/filesys/makebootfat/DETAILS
@@ -0,0 +1,23 @@
+          MODULE=makebootfat
+         VERSION=1.4
+          SOURCE=$MODULE-$VERSION.tar.gz
+         SOURCE2=fdbasews.iso
+      SOURCE_URL=$SFORGE_URL/advancemame
+  SOURCE2_URL[0]=http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/
+  SOURCE2_URL[1]=http://ftp.usf.edu/pub/freedos/files/distributions/1.0/
+  SOURCE2_URL[2]=http://freedos.bbnx.net/files/distributions/1.0/
+      SOURCE_VFY=sha1:a60173de1a223a75e6fa781eac126c3b431993e5
+     SOURCE2_VFY=sha1:2b371a27941fa05f432dd964e0f6e81fd0308137
+        WEB_SITE=http://advancemame.sourceforge.net/boot-readme.html
+         ENTERED=20091004
+         UPDATED=20091004
+           SHORT="command-line utility to create bootable FAT filesystems"
+
+cat << EOF
+makebootfat creates a bootable FAT filesystem and populates it with
+files and boot tools.
+
+Sample command:
+
+makebootfat -o usb -v -E 255 -1 /usr/share/makebootfat/fat12.bin -2 /usr/share/makebootfat/fat16.bin -3 /usr/share/makebootfat/fat32lba.bin -m /usr/share/syslinux/mbr.bin -c /usr/share/makebootfat/kernel.sys -c /usr/share/makebootfat/command.com image
+EOF


More information about the Lunar-commits mailing list