pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

add vma (vmarc): archiver for VM mainframes



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Mon Jan 5 20:55:56 2026 +0100
Changeset:	b74412d18a0b1be2880c227a6c9b52d27317fff0

Added Files:
	vmarc/DESCR
	vmarc/Makefile
	vmarc/PLIST
	vmarc/distinfo
	vmarc/patches/patch-src_vma.c
	vmarc/patches/patch-src_vmalib.c

Log Message:
add vma (vmarc): archiver for VM mainframes

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b74412d18a0b1be2880c227a6c9b52d27317fff0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 vmarc/DESCR                      |  4 ++++
 vmarc/Makefile                   | 26 +++++++++++++++++++++++++
 vmarc/PLIST                      |  3 +++
 vmarc/distinfo                   |  7 +++++++
 vmarc/patches/patch-src_vma.c    | 42 ++++++++++++++++++++++++++++++++++++++++
 vmarc/patches/patch-src_vmalib.c | 25 ++++++++++++++++++++++++
 6 files changed, 107 insertions(+)

diffs:
diff --git a/vmarc/DESCR b/vmarc/DESCR
new file mode 100644
index 0000000000..362c080b13
--- /dev/null
+++ b/vmarc/DESCR
@@ -0,0 +1,4 @@
+VMA is a utility that allows you to list, extract, and/or create VMARC files as
+used on VM mainframes.  It consists of a command line version that should run
+just about anywhere and a GUI version that should run wherever wxWidgets is
+supported.
diff --git a/vmarc/Makefile b/vmarc/Makefile
new file mode 100644
index 0000000000..661e3cb8b7
--- /dev/null
+++ b/vmarc/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+DISTNAME=	vma-22.204a
+CATEGORIES=	devel
+MASTER_SITES=	https://www.homerow.net/files/
+
+MAINTAINER=	rhialto%NetBSD.org@localhost
+HOMEPAGE=	https://www.homerow.net/files/
+COMMENT=	Create/extract VM ARC files
+LICENSE=	public-domain
+
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	gmake
+MAKE_DIRS+=	bin
+
+# Use for cli-only build, not depending on wxGTK32.
+#BUILD_TARGET=	cli
+
+do-install:
+	cd ${WRKSRC} && \
+		mkdir ${DESTDIR}${PREFIX}/bin && \
+		${INSTALL_PROGRAM} src/vma ${DESTDIR}${PREFIX}/bin/ && \
+		${INSTALL_PROGRAM} src/vmagui ${DESTDIR}${PREFIX}/bin/
+
+.include "../../x11/wxGTK32/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/vmarc/PLIST b/vmarc/PLIST
new file mode 100644
index 0000000000..3f2e2d8f67
--- /dev/null
+++ b/vmarc/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/vma
+bin/vmagui
diff --git a/vmarc/distinfo b/vmarc/distinfo
new file mode 100644
index 0000000000..797d901110
--- /dev/null
+++ b/vmarc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (vma-22.204a.tar.gz) = 83edc1acd02dcfe78089e51cd97d47516726adb08df376f96fd4a3ea2da59646
+SHA512 (vma-22.204a.tar.gz) = 131c2f1bc623e086a5b555d44a1abd9ab42a0394fc35081c4a434c38e1f9bb87a5a53b86b1f9b029accfd67e350161d53f27a559dd790f1432976385e995479c
+Size (vma-22.204a.tar.gz) = 81768 bytes
+SHA1 (patch-src_vma.c) = 970f7e0067636b48618ec31e25e68269f19ae83e
+SHA1 (patch-src_vmalib.c) = adf2d0febf086f1ca0437b12ec6cd3c4d981abe0
diff --git a/vmarc/patches/patch-src_vma.c b/vmarc/patches/patch-src_vma.c
new file mode 100644
index 0000000000..90db6e9889
--- /dev/null
+++ b/vmarc/patches/patch-src_vma.c
@@ -0,0 +1,42 @@
+$NetBSD$
+
+- ctype macros need unsigned char as argument.
+
+--- src/vma.c.orig	2022-07-23 18:05:04.000000000 +0000
++++ src/vma.c
+@@ -448,7 +448,7 @@ make_name( SUBFILE *sf )
+         mode = s_name;
+         while( *mode )
+         {
+-            *mode = tolower( *mode );
++            *mode = tolower( (unsigned char)*mode );
+             mode++;
+         }
+     }
+@@ -829,7 +829,7 @@ main( int argc, char *argv[] )
+                     tok = fn;
+                     while( tok && *tok )
+                     {
+-                        *tok = toupper( *tok );
++                        *tok = toupper( (unsigned char)*tok );
+                         tok++;
+                     }
+                 }
+@@ -839,7 +839,7 @@ main( int argc, char *argv[] )
+                     tok = ft;
+                     while( tok && *tok )
+                     {
+-                        *tok = toupper( *tok );
++                        *tok = toupper( (unsigned char)*tok );
+                         tok++;
+                     }
+                 }
+@@ -849,7 +849,7 @@ main( int argc, char *argv[] )
+                     tok = fm;
+                     while( tok && *tok )
+                     {
+-                        *tok = toupper( *tok );
++                        *tok = toupper( (unsigned char)*tok );
+                         tok++;
+                     }
+                 }
diff --git a/vmarc/patches/patch-src_vmalib.c b/vmarc/patches/patch-src_vmalib.c
new file mode 100644
index 0000000000..4d92e952cf
--- /dev/null
+++ b/vmarc/patches/patch-src_vmalib.c
@@ -0,0 +1,25 @@
+$NetBSD$
+
+- use <utime.h> instead of <sys/utime.h>
+- ctype macros need unsigned char as argument.
+
+--- src/vmalib.c.orig	2020-08-10 17:42:52.000000000 +0000
++++ src/vmalib.c
+@@ -23,7 +23,7 @@
+ #include <fcntl.h>
+ #include <sys/stat.h>
+ 
+-#if defined( linux ) || defined( __APPLE__ ) || defined(__MVS__)
++#if defined( linux ) || defined( __APPLE__ ) || defined(__MVS__) || defined(__NetBSD__)
+ #include <utime.h>
+ #else
+ #include <sys/utime.h>
+@@ -4198,7 +4198,7 @@ vma_setname( void *vvma, const char *fn,
+             case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R':
+             case 'S': case 'T': case 'U': case 'V': case 'W': case 'Y':
+             case 'Z':
+-                if( isdigit( fm[ 1 ] ) )
++                if( isdigit( (unsigned char)fm[ 1 ] ) )
+                 {
+                     break;
+                 }


Home | Main Index | Thread Index | Old Index