aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorlippe <lippe@FreeBSD.org>2008-06-23 06:01:32 +0800
committerlippe <lippe@FreeBSD.org>2008-06-23 06:01:32 +0800
commitc283c6225a0ed47d2c82028bf7ea8d229d94c1ff (patch)
tree3dacc06e4635645f987c56ca723244bd0961cb20 /emulators
parent7276b0cba675586830903608024ae7b9f065291a (diff)
downloadfreebsd-ports-gnome-c283c6225a0ed47d2c82028bf7ea8d229d94c1ff.tar.gz
freebsd-ports-gnome-c283c6225a0ed47d2c82028bf7ea8d229d94c1ff.tar.zst
freebsd-ports-gnome-c283c6225a0ed47d2c82028bf7ea8d229d94c1ff.zip
This port allows to access CP/M file systems similar to the well-known mtools
package, which accesses MSDOS file systems. I use it for file exchange with a Z80-PC simulator, but it works on floppy devices as well. WWW: http://www.moria.de/~michael/cpmtools/ PR: ports/120184 Submitted by: Sven Klose <pixel@hugbox.org> Approved by: gabor (mentor, implicit)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/Makefile1
-rw-r--r--emulators/cpmtools2/Makefile47
-rw-r--r--emulators/cpmtools2/distinfo3
-rw-r--r--emulators/cpmtools2/files/patch-Makefile.in20
-rw-r--r--emulators/cpmtools2/pkg-descr21
-rw-r--r--emulators/cpmtools2/pkg-plist9
-rw-r--r--emulators/cpmtools27/Makefile47
-rw-r--r--emulators/cpmtools27/distinfo3
-rw-r--r--emulators/cpmtools27/files/patch-Makefile.in20
-rw-r--r--emulators/cpmtools27/pkg-descr21
-rw-r--r--emulators/cpmtools27/pkg-plist9
11 files changed, 201 insertions, 0 deletions
diff --git a/emulators/Makefile b/emulators/Makefile
index 2c73840d0e66..432d84743437 100644
--- a/emulators/Makefile
+++ b/emulators/Makefile
@@ -18,6 +18,7 @@
SUBDIR += cingb
SUBDIR += cpmemu
SUBDIR += cpmtools
+ SUBDIR += cpmtools27
SUBDIR += cygne-sdl
SUBDIR += darcnes
SUBDIR += dboxfe
diff --git a/emulators/cpmtools2/Makefile b/emulators/cpmtools2/Makefile
new file mode 100644
index 000000000000..28f9781a94ae
--- /dev/null
+++ b/emulators/cpmtools2/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: cpmtools
+# Date created: 31 January 2008
+# Whom: joerg
+#
+# $FreeBSD$
+#
+
+PORTNAME= cpmtools27
+PORTVERSION= 2.7
+CATEGORIES= emulators sysutils
+MASTER_SITES= http://www.moria.de/~michael/cpmtools/
+DISTNAME= cpmtools-${PORTVERSION}
+
+MAINTAINER= pixel@hugbox.org
+COMMENT= Tools to access CP/M disks and disk images
+
+LIB_DEPENDS+= dmalloc:${PORTSDIR}/devel/dmalloc
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+=--mandir=${PREFIX}/man --bindir=${PREFIX}/sbin \
+ --datarootdir=${PREFIX}/share/${PORTNAME} --with-dmalloc
+
+MAN1= cpmls.1 cpmcp.1 cpmrm.1 cpmchmod.1 cpmchattr.1 mkfs.cpm.1 fsck.cpm.1 fsed.cpm.1
+MAN5= cpm.5
+
+OPTIONS= RAW_LIBDSK "With LIBDSK support with direct floppy access" on \
+ LIBDSK "With LIBDSK support (no direct floppy access)" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LIBDSK) || defined(WITH_RAW_LIBDSK)
+LIB_DEPENDS+= dsk.5:${PORTSDIR}/emulators/libdsk
+CONFIGURE_ARGS+=--with-libdsk=${LOCALBASE} --with-device=LibDsk
+.else
+CONFIGURE_ARGS+=--without-libdsk --with-device=posix
+.endif
+
+.if defined(WITH_RAW_LIBDSK)
+CONFIGURE_ARGS+=--enable-floppy
+.else
+CONFIGURE_ARGS+=--disable-floppy
+.endif
+
+pre-install:
+ @${MKDIR} ${DATADIR}
+
+.include <bsd.port.post.mk>
diff --git a/emulators/cpmtools2/distinfo b/emulators/cpmtools2/distinfo
new file mode 100644
index 000000000000..b790ee139c1d
--- /dev/null
+++ b/emulators/cpmtools2/distinfo
@@ -0,0 +1,3 @@
+MD5 (cpmtools-2.7.tar.gz) = 0deadd1e8baac3808691bef73ddbb5c7
+SHA256 (cpmtools-2.7.tar.gz) = 56fb2b8c4e8bb77d263807282081abc9b0dbe9aefa20466b75424624b6dc2449
+SIZE (cpmtools-2.7.tar.gz) = 148154
diff --git a/emulators/cpmtools2/files/patch-Makefile.in b/emulators/cpmtools2/files/patch-Makefile.in
new file mode 100644
index 000000000000..5c6d9e333ee8
--- /dev/null
+++ b/emulators/cpmtools2/files/patch-Makefile.in
@@ -0,0 +1,20 @@
+--- Makefile.in.old 2008-05-30 13:00:09.000000000 -0300
++++ Makefile.in 2008-05-30 13:00:27.000000000 -0300
+@@ -11,7 +11,7 @@
+ INSTALL= @INSTALL@
+ INSTALL_DATA= @INSTALL_DATA@
+ CC= @CC@
+-CFLAGS= @CFLAGS@
++CFLAGS= @CFLAGS@ -DDISKDEFS=\"@datarootdir@/diskdefs\" -DFORMAT=\"$(DEFFORMAT)\"
+ LDFLAGS= @LDFLAGS@
+ DEFFORMAT= @DEFFORMAT@
+ DEVICE= @DEVICE@
+@@ -86,7 +86,7 @@
+ $(INSTALL) -s -m 755 cpmchattr $(BINDIR)/cpmchattr
+ $(INSTALL) -s -m 755 mkfs.cpm $(BINDIR)/mkfs.cpm
+ $(INSTALL) -s -m 755 fsck.cpm $(BINDIR)/fsck.cpm
+- $(INSTALL) -s -m 755 fsed.cpm $(BINDIR)/fsed.cpm
++# $(INSTALL) -s -m 755 fsed.cpm $(BINDIR)/fsed.cpm
+ $(INSTALL_DATA) diskdefs @datarootdir@/diskdefs
+ $(INSTALL_DATA) cpmls.1 $(MANDIR)/man1/cpmls.1
+ $(INSTALL_DATA) cpmcp.1 $(MANDIR)/man1/cpmcp.1
diff --git a/emulators/cpmtools2/pkg-descr b/emulators/cpmtools2/pkg-descr
new file mode 100644
index 000000000000..d1dfc161615c
--- /dev/null
+++ b/emulators/cpmtools2/pkg-descr
@@ -0,0 +1,21 @@
+This port allows to access CP/M file systems similar to the well-known mtools
+package, which accesses MSDOS file systems. It contains the followin set of
+tools:
+
+ * cpmls - list sorted directory with output similar to ls, DIR, P2DOS DIR
+ and CP/M3 DIR[FULL]
+ * cpmcp - copy files from and to CP/M file systems
+ * cpmrm - erase files from CP/M file systems
+ * cpmchmod - change file permissions
+ * cpmchattr - change file attributes
+ * mkfs.cpm - make a CP/M file system
+ * fsck.cpm - check and repair a CP/M file system (only simple errors can
+ be repaired so far). Some images of broken file systems are provided.
+ * fsed.cpm - view CP/M file system
+ * manual pages for everything including the CP/M file system format
+
+All CP/M file system features are supported. Password protection is ignored,
+but a pseudo file [passwd] contains them decrypted.
+
+Author: Michael Moria <<michael@moria.de>
+WWW: http://www.moria.de/~michael/cpmtools/
diff --git a/emulators/cpmtools2/pkg-plist b/emulators/cpmtools2/pkg-plist
new file mode 100644
index 000000000000..1eaa2af1b83c
--- /dev/null
+++ b/emulators/cpmtools2/pkg-plist
@@ -0,0 +1,9 @@
+sbin/cpmls
+sbin/cpmcp
+sbin/cpmrm
+sbin/cpmchmod
+sbin/cpmchattr
+sbin/mkfs.cpm
+sbin/fsck.cpm
+%%DATADIR%%/diskdefs
+@dirrm %%DATADIR%%
diff --git a/emulators/cpmtools27/Makefile b/emulators/cpmtools27/Makefile
new file mode 100644
index 000000000000..28f9781a94ae
--- /dev/null
+++ b/emulators/cpmtools27/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: cpmtools
+# Date created: 31 January 2008
+# Whom: joerg
+#
+# $FreeBSD$
+#
+
+PORTNAME= cpmtools27
+PORTVERSION= 2.7
+CATEGORIES= emulators sysutils
+MASTER_SITES= http://www.moria.de/~michael/cpmtools/
+DISTNAME= cpmtools-${PORTVERSION}
+
+MAINTAINER= pixel@hugbox.org
+COMMENT= Tools to access CP/M disks and disk images
+
+LIB_DEPENDS+= dmalloc:${PORTSDIR}/devel/dmalloc
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+=--mandir=${PREFIX}/man --bindir=${PREFIX}/sbin \
+ --datarootdir=${PREFIX}/share/${PORTNAME} --with-dmalloc
+
+MAN1= cpmls.1 cpmcp.1 cpmrm.1 cpmchmod.1 cpmchattr.1 mkfs.cpm.1 fsck.cpm.1 fsed.cpm.1
+MAN5= cpm.5
+
+OPTIONS= RAW_LIBDSK "With LIBDSK support with direct floppy access" on \
+ LIBDSK "With LIBDSK support (no direct floppy access)" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LIBDSK) || defined(WITH_RAW_LIBDSK)
+LIB_DEPENDS+= dsk.5:${PORTSDIR}/emulators/libdsk
+CONFIGURE_ARGS+=--with-libdsk=${LOCALBASE} --with-device=LibDsk
+.else
+CONFIGURE_ARGS+=--without-libdsk --with-device=posix
+.endif
+
+.if defined(WITH_RAW_LIBDSK)
+CONFIGURE_ARGS+=--enable-floppy
+.else
+CONFIGURE_ARGS+=--disable-floppy
+.endif
+
+pre-install:
+ @${MKDIR} ${DATADIR}
+
+.include <bsd.port.post.mk>
diff --git a/emulators/cpmtools27/distinfo b/emulators/cpmtools27/distinfo
new file mode 100644
index 000000000000..b790ee139c1d
--- /dev/null
+++ b/emulators/cpmtools27/distinfo
@@ -0,0 +1,3 @@
+MD5 (cpmtools-2.7.tar.gz) = 0deadd1e8baac3808691bef73ddbb5c7
+SHA256 (cpmtools-2.7.tar.gz) = 56fb2b8c4e8bb77d263807282081abc9b0dbe9aefa20466b75424624b6dc2449
+SIZE (cpmtools-2.7.tar.gz) = 148154
diff --git a/emulators/cpmtools27/files/patch-Makefile.in b/emulators/cpmtools27/files/patch-Makefile.in
new file mode 100644
index 000000000000..5c6d9e333ee8
--- /dev/null
+++ b/emulators/cpmtools27/files/patch-Makefile.in
@@ -0,0 +1,20 @@
+--- Makefile.in.old 2008-05-30 13:00:09.000000000 -0300
++++ Makefile.in 2008-05-30 13:00:27.000000000 -0300
+@@ -11,7 +11,7 @@
+ INSTALL= @INSTALL@
+ INSTALL_DATA= @INSTALL_DATA@
+ CC= @CC@
+-CFLAGS= @CFLAGS@
++CFLAGS= @CFLAGS@ -DDISKDEFS=\"@datarootdir@/diskdefs\" -DFORMAT=\"$(DEFFORMAT)\"
+ LDFLAGS= @LDFLAGS@
+ DEFFORMAT= @DEFFORMAT@
+ DEVICE= @DEVICE@
+@@ -86,7 +86,7 @@
+ $(INSTALL) -s -m 755 cpmchattr $(BINDIR)/cpmchattr
+ $(INSTALL) -s -m 755 mkfs.cpm $(BINDIR)/mkfs.cpm
+ $(INSTALL) -s -m 755 fsck.cpm $(BINDIR)/fsck.cpm
+- $(INSTALL) -s -m 755 fsed.cpm $(BINDIR)/fsed.cpm
++# $(INSTALL) -s -m 755 fsed.cpm $(BINDIR)/fsed.cpm
+ $(INSTALL_DATA) diskdefs @datarootdir@/diskdefs
+ $(INSTALL_DATA) cpmls.1 $(MANDIR)/man1/cpmls.1
+ $(INSTALL_DATA) cpmcp.1 $(MANDIR)/man1/cpmcp.1
diff --git a/emulators/cpmtools27/pkg-descr b/emulators/cpmtools27/pkg-descr
new file mode 100644
index 000000000000..d1dfc161615c
--- /dev/null
+++ b/emulators/cpmtools27/pkg-descr
@@ -0,0 +1,21 @@
+This port allows to access CP/M file systems similar to the well-known mtools
+package, which accesses MSDOS file systems. It contains the followin set of
+tools:
+
+ * cpmls - list sorted directory with output similar to ls, DIR, P2DOS DIR
+ and CP/M3 DIR[FULL]
+ * cpmcp - copy files from and to CP/M file systems
+ * cpmrm - erase files from CP/M file systems
+ * cpmchmod - change file permissions
+ * cpmchattr - change file attributes
+ * mkfs.cpm - make a CP/M file system
+ * fsck.cpm - check and repair a CP/M file system (only simple errors can
+ be repaired so far). Some images of broken file systems are provided.
+ * fsed.cpm - view CP/M file system
+ * manual pages for everything including the CP/M file system format
+
+All CP/M file system features are supported. Password protection is ignored,
+but a pseudo file [passwd] contains them decrypted.
+
+Author: Michael Moria <<michael@moria.de>
+WWW: http://www.moria.de/~michael/cpmtools/
diff --git a/emulators/cpmtools27/pkg-plist b/emulators/cpmtools27/pkg-plist
new file mode 100644
index 000000000000..1eaa2af1b83c
--- /dev/null
+++ b/emulators/cpmtools27/pkg-plist
@@ -0,0 +1,9 @@
+sbin/cpmls
+sbin/cpmcp
+sbin/cpmrm
+sbin/cpmchmod
+sbin/cpmchattr
+sbin/mkfs.cpm
+sbin/fsck.cpm
+%%DATADIR%%/diskdefs
+@dirrm %%DATADIR%%