#43882 closed submission (fixed)
fatdisk 1.0.0-beta (new port)
Reported by: | glenn@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.0 |
Keywords: | Cc: | ||
Port: | fatdisk |
Description
https://github.com/goblinhack/fatdisk
fatdisk is a utility that allows you to perform various operations on files on a DOS formatted disk image in FAT12,16,32 formats without needing to do any mounting of the disk image, or needing root or sudo access.
It can extract files from the DOS disk to the local harddrive, and likewise can import files from the local disk back onto the DOS disk. Additionally you can do basic operations like list, cat, hexdump etc...
Lastly this tool can also format and partition a disk, setting up the FAT filesystem and even copying in a bootloader like grub. This is a bit experimental so use with care.
You may specify the partition of the disk the tool is to look for, but it will default to partition 0 if not. And if no partition info is found, it will do a hunt of the disk to try and find it.
Attachments (1)
Change History (4)
Changed 10 years ago by glenn@…
comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Status: | new → assigned |
comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thank you for the submission but numerous problems had to be fixed. I committed the port in r120607 with these changes:
- used github portgroup
- changed version to 1.0.0-beta
- minor edits to description
- added a dependency on
port:makedepend
- patched the RUNME script to honor the environment variables CC, CFLAGS, LDFLAGS so that the port is UsingTheRightCompiler and using
-arch
flags - used the RUNME script as a configure script, not a build script, so that MacPorts will pass it environment variables including CC, CFLAGS and LDFLAGS and enable the universal variant
- fixed test phase to actually run the TESTME script
- installed documentation files
comment:3 Changed 10 years ago by glenn@…
Thanks for the fixes. Sorry for the problems - I'm doing my best to follow the portfile development guide but clearly I've still got some learning to do.
used github portgroup
I don't see any mention of this in the docs - reference pointer please so I can do this right next time I develop a GitHub-based portfile?
changed version to 1.0.0-beta
Thanks. I wasn't sure what flexibility the Portfile allowed with regard to version strings.
minor edits to description added a dependency on port:makedepend
Was this necessary in your testing? I found that the build complains if makedepend isn't installed but it didn't seem to actually cause a build failure, so I omitted it as a dependency.
patched the RUNME script to honor the environment variables CC, CFLAGS, LDFLAGS so that the port is UsingTheRightCompiler and using -arch flags used the RUNME script as a configure script, not a build script, so that MacPorts will pass it environment variables including CC, CFLAGS and LDFLAGS and enable the universal variant
The RUNME script is definitely a bit weird - if these patches make it more MacPorts-compatible, thanks for the fix.
fixed test phase to actually run the TESTME script
Oops, mea culpa.
installed documentation files
Thanks. I'll keep this in mind for the next portfile I write.
Proposed portfile