diff options
| author | Robert Clausecker <fuz@FreeBSD.org> | 2024-11-10 13:45:46 +0100 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2024-11-14 09:42:58 +0100 |
| commit | 29d06d4836ff71faa468070886cf7184c0cb4eef (patch) | |
| tree | b8d02cc04415a5a88088d934d4fee4bef09e9889 /sysutils | |
| parent | sysutils/ods2: unbreak fetch, fix build on 15-CURRENT, define license (diff) | |
sysutils/ods2: move to filesystems/ods2
- tool manipulates VMS file systems
- add timestamp to distinfo to satisfy post-receive hook
Approved by: portmgr (infrastructure blanket)
Diffstat (limited to 'sysutils')
| -rw-r--r-- | sysutils/Makefile | 1 | ||||
| -rw-r--r-- | sysutils/ods2/Makefile | 37 | ||||
| -rw-r--r-- | sysutils/ods2/distinfo | 2 | ||||
| -rw-r--r-- | sysutils/ods2/files/patch-direct.c | 24 | ||||
| -rw-r--r-- | sysutils/ods2/files/patch-makefile.unix | 11 | ||||
| -rw-r--r-- | sysutils/ods2/files/patch-ods2.c | 91 | ||||
| -rw-r--r-- | sysutils/ods2/pkg-descr | 13 |
7 files changed, 0 insertions, 179 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 6968c06fa60d..0706953fd294 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -776,7 +776,6 @@ SUBDIR += oc SUBDIR += ocijail SUBDIR += odo - SUBDIR += ods2 SUBDIR += ohmu SUBDIR += omnibackup SUBDIR += onefetch diff --git a/sysutils/ods2/Makefile b/sysutils/ods2/Makefile deleted file mode 100644 index 87f77fac6820..000000000000 --- a/sysutils/ods2/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -PORTNAME= ods2 -PORTVERSION= 1.3 -PORTREVISION= 1 -CATEGORIES= sysutils -MASTER_SITES= LOCAL/fuz -DISTNAME= ods2 - -MAINTAINER= pzn.unixbsd@gmail.com -COMMENT= Utility for manipulating ODS-2 filesystems -WWW= https://www.goatley.com/hunter/ - -LICENSE= ODS2 -LICENSE_NAME= ODS2 -LICENSE_TEXT= ODS2 is distributed freely for all members of the \ - VMS community to use. However all derived works \ - must maintain comments in their source to acknowledge \ - the contibution of the original author. -LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept - -USES= zip -NO_WRKSUBDIR= yes -MAKEFILE= makefile.unix -MAKE_ARGS= CCFLAGS="${CFLAGS}" - -PLIST_FILES= sbin/ods2 -PORTDOCS= aareadme.too aareadme.txt - -OPTIONS_DEFINE= DOCS - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/ods2 ${STAGEDIR}${PREFIX}/sbin - -do-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} - -.include <bsd.port.mk> diff --git a/sysutils/ods2/distinfo b/sysutils/ods2/distinfo deleted file mode 100644 index 190a1e9565d7..000000000000 --- a/sysutils/ods2/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (ods2.zip) = 6c4f0bba11958e84278dca2c78c33349575df145584c1d030a2172c7792ca7fc -SIZE (ods2.zip) = 480695 diff --git a/sysutils/ods2/files/patch-direct.c b/sysutils/ods2/files/patch-direct.c deleted file mode 100644 index c5109a408317..000000000000 --- a/sysutils/ods2/files/patch-direct.c +++ /dev/null @@ -1,24 +0,0 @@ ---- direct.c.orig 2001-08-31 18:01:07 UTC -+++ direct.c -@@ -136,12 +136,15 @@ int name_match(char *spec,int spec_len,char *dirent,in - register char sch = *name; - if (sch != '*') { - register char ech = *entry; -- if (sch != ech) if (toupper(sch) != toupper(ech)) -- if (sch == '%') { -- percent = MAT_NE; -- } else { -- break; -- } -+ if (sch != ech) { -+ if (toupper(sch) != toupper(ech)) { -+ if (sch == '%') { -+ percent = MAT_NE; -+ } else { -+ break; -+ } -+ } -+ } - } else { - break; - } diff --git a/sysutils/ods2/files/patch-makefile.unix b/sysutils/ods2/files/patch-makefile.unix deleted file mode 100644 index 13f4cffac11d..000000000000 --- a/sysutils/ods2/files/patch-makefile.unix +++ /dev/null @@ -1,11 +0,0 @@ ---- makefile.unix.orig 2001-09-27 00:40:14 UTC -+++ makefile.unix -@@ -6,7 +6,7 @@ ods2 : ods2.o rms.o direct.o update.o access.o device. - all : ods2 - - ods2 : ods2.o rms.o direct.o update.o access.o device.o phyunix.o cache.o vmstime.o -- cc $(CCFLAGS) -oods2 ods2.o rms.o direct.o update.o access.o device.o phyunix.o cache.o vmstime.o -+ $(CC) $(CCFLAGS) -oods2 ods2.o rms.o direct.o update.o access.o device.o phyunix.o cache.o vmstime.o -lcompat -lutil - - vmstime.o : vmstime.c vmstime.h - cc -c $(CCFLAGS) $(DEFS) vmstime.c diff --git a/sysutils/ods2/files/patch-ods2.c b/sysutils/ods2/files/patch-ods2.c deleted file mode 100644 index 0b8a4e66211a..000000000000 --- a/sysutils/ods2/files/patch-ods2.c +++ /dev/null @@ -1,91 +0,0 @@ ---- ods2.c.orig 2001-09-07 21:17:04 UTC -+++ ods2.c -@@ -1076,10 +1076,17 @@ char *getcmd(char *inp, char *prompt) - int main(int argc,char *argv[]) - { - char str[2048]; -+ char *ptr; -+ int iargc, i, ilen, len; -+ int cmdline = 0; - FILE *atfile = NULL; -+ - printf(" ODS2 %s\n", MODULE_IDENT); -+ if (argc>1) { /* if exist argument in the command line TRUE */ -+ cmdline = 1; -+ iargc = argc - 1; -+ } - while (1) { -- char *ptr; - if (atfile != NULL) { - if (fgets(str,sizeof(str),atfile) == NULL) { - fclose(atfile); -@@ -1090,18 +1097,50 @@ int main(int argc,char *argv[]) - if (ptr != NULL) *ptr = '\0'; - printf("$> %s\n",str); - } -+ } -+ else if (cmdline) { -+ ptr = str; -+ for ( len=0, ilen=0, i=argc-iargc; i<argc; i++ ) -+ if ( *argv[i] == '$' ) { -+ iargc--; -+ break; -+ } else { -+ ilen = strlen(argv[i]); -+ len +=ilen; -+ if (len < sizeof(str)) { -+ strcpy(ptr, argv[i]); -+ ptr += ilen; -+ *ptr = ' '; -+ ptr++; *ptr = '\0'; -+ iargc--; -+ } else { -+ printf("%%ODS2-CMD-LINE, len of arguments too long.\n"); -+ break; -+ } -+ } -+ if (iargc == 0) cmdline = 0; /* if all arguments execute */ -+ if (ptr != str) printf("$> %s\n",str); - } else { - #ifdef VMS -- if (getcmd (str, "$> ") == NULL) break; -+ if (getcmd (str, "$> ") == NULL) break; - #else -- printf("$> "); -- if (gets(str) == NULL) break; -+ printf("$> "); -+ if (fgets(str, sizeof(str), stdin) == NULL) -+ break; -+ str[strlen(str)-1] = '\0'; /* strip newline from str */ - #endif -- } -+ } /* if - else if - else */ - ptr = str; -- while (*ptr == ' ' || *ptr == '\t') ptr++; -- if (strlen(ptr) && *ptr != '!') { -+ while (*ptr == ' ' || *ptr == '\t') ptr++; /* space and tab */ -+ len = strlen(ptr); -+ if (len && *ptr != '!') { - if (*ptr == '@') { -+ len--; -+ /* remove trailing spaces and tabs */ -+ while (*(ptr+len) == ' ' || *(ptr+len) == '\t') { -+ *(ptr+len) = '\0'; -+ len--; -+ } - if (atfile != NULL) { - printf("%%ODS2-W-INDIRECT, indirect indirection not permitted\n"); - } else { -@@ -1112,9 +1151,9 @@ int main(int argc,char *argv[]) - } - } else { - if ((cmdsplit(ptr) & 1) == 0) break; -- } -- } -- } -+ } /* else */ -+ } /* if */ -+ } /* while (1) */ - if (atfile != NULL) fclose(atfile); - return 1; - } diff --git a/sysutils/ods2/pkg-descr b/sysutils/ods2/pkg-descr deleted file mode 100644 index f4184745bc70..000000000000 --- a/sysutils/ods2/pkg-descr +++ /dev/null @@ -1,13 +0,0 @@ -From aaareadme.txt: - -Say, what is this? - ODS2 is a program to read VMS disk volumes written in VMS - ODS2 format. - -What can it do? - Basically ODS2 provides cut down DIRECTORY, COPY and - SEARCH commands for VMS volumes on non-VMS systems. These - can be used to find out what is on a VMS volume, and copy - files onto the local file sytem. - -See aaareadme.txt and aaareadme.too for more information. |
