Skip to content

Commit

Permalink
Create Make.elks
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Oct 15, 2024
1 parent f6040c0 commit 5d4e043
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 9 deletions.
1 change: 1 addition & 0 deletions elks/tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ all:
$(MAKE) -C elf2elks all
$(MAKE) -C elks-compress all
$(MAKE) -C eman all
$(MAKE) -C mtools-4.0.23 -f Make.elks all


#########################################################################
Expand Down
16 changes: 16 additions & 0 deletions elks/tools/mtools-4.0.23/Make.elks
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: all clean
Makefile:
./configure --disable-floppyd

all: Makefile
make
cp mattrib ../bin
cp mcopy ../bin
cp mdir ../bin
cp mformat ../bin
cp minfo ../bin
cp mmd ../bin
cp mshowfat ../bin

clean:
make clean
2 changes: 1 addition & 1 deletion elks/tools/mtools-4.0.23/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4536,7 +4536,7 @@ for ac_header in getopt.h sys/stat.h stdlib.h unistd.h linux/unistd.h \
libc.h fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \
sys/param.h memory.h malloc.h io.h signal.h sys/signal.h utime.h sgtty.h \
sys/floppy.h mntent.h sys/sysmacros.h netinet/in.h netinet/tcp.h assert.h \
iconv.h wctype.h wchar.h locale.h linux/fs.h
wctype.h wchar.h locale.h linux/fs.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Expand Down
2 changes: 1 addition & 1 deletion elks/tools/mtools-4.0.23/mtools.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ to another.
Mtools is sufficient to give access to MS-DOS file systems. For
instance, commands such as \fR\&\f(CWmdir a:\fR work on the \fR\&\f(CWa:\fR floppy
without any preliminary mounting or initialization (assuming the default
\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR works on your machine). With mtools, one can
\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR works on your machine). With mtools, one can
change floppies too without unmounting and mounting.
.PP
.SH Where\ to\ get\ mtools
Expand Down
14 changes: 7 additions & 7 deletions elks/tools/mtools-4.0.23/mtools.5
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mtools.conf - mtools configuration files
.SH Description
.PP
This manual page describes the configuration files for mtools. They
are called \fR\&\f(CW\(if/etc/mtools.conf\(is\fR and \fR\&\f(CW\(if~/.mtoolsrc\(is\fR. If
are called \fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR and \fR\&\f(CW\(if~/.mtoolsrc\(is\fR. If
the environmental variable \fR\&\f(CWMTOOLSRC\fR is set, its contents is used
as the filename for a third configuration file. These configuration
files describe the following items:
Expand All @@ -30,7 +30,7 @@ files describe the following items:
.SS Location\ of\ the\ configuration\ files
.PP
.PP
\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR is the system-wide configuration file,
\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR is the system-wide configuration file,
and \fR\&\f(CW\(if~/.mtoolsrc\(is\fR is the user's private configuration file.
.PP
On some systems, the system-wide configuration file is called
Expand Down Expand Up @@ -388,14 +388,14 @@ implied, unless explicitly disabled by \fR\&\f(CWprivileged=0\fR
Mtools uses its root privileges to open the device, and to issue the
actual SCSI I/O calls. Moreover, root privileges are only used for
drives described in a system-wide configuration file such as
\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR, and not for those described in
\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR, and not for those described in
\&\fR\&\f(CW\(if~/.mtoolsrc\(is\fR or \fR\&\f(CW\(if$MTOOLSRC\(is\fR.
.TP
\&\fR\&\f(CWprivileged\fR\
When set to 1, this instructs mtools to use its setuid and setgid
privileges for opening the given drive. This option is only valid for
drives described in the system-wide configuration files (such as
\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR, not \fR\&\f(CW\(if~/.mtoolsrc\(is\fR or
\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR, not \fR\&\f(CW\(if~/.mtoolsrc\(is\fR or
\&\fR\&\f(CW\(if$MTOOLSRC\(is\fR). Obviously, this option is also a no op if mtools is
not installed setuid or setgid. This option is implied by 'scsi=1', but
again only for drives defined in system-wide configuration files.
Expand Down Expand Up @@ -507,7 +507,7 @@ The configuration files are parsed in the following order:
compiled-in defaults
.TP
2.\
\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR
\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR
.TP
3.\
\&\fR\&\f(CW\(if~/.mtoolsrc\(is\fR.
Expand All @@ -519,10 +519,10 @@ variable)
Options described in the later files override those described in the
earlier files. Drives defined in earlier files persist if they are not
overridden in the later files. For instance, drives A and B may be
defined in \fR\&\f(CW\(if/etc/mtools.conf\(is\fR and drives C and D may be
defined in \fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR and drives C and D may be
defined in \fR\&\f(CW\(if~/.mtoolsrc\(is\fR However, if \fR\&\f(CW\(if~/.mtoolsrc\(is\fR also
defines drive A, this new description would override the description of
drive A in \fR\&\f(CW\(if/etc/mtools.conf\(is\fR instead of adding to it. If
drive A in \fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR instead of adding to it. If
you want to add a new description to a drive already described in an
earlier file, you need to use either the \fR\&\f(CW+drive\fR or \fR\&\f(CWdrive+\fR
keyword.
Expand Down

0 comments on commit 5d4e043

Please sign in to comment.