diff options
author | tg <tg@FreeBSD.org> | 1997-07-02 13:53:07 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1997-07-02 13:53:07 +0000 |
commit | a3cb151920741511a6e24cc7630066e2f4866dfa (patch) | |
tree | 7690386186fd035911cd26ad33eb13fab0c01d8d | |
parent | a4db18ffd5027ac07d4df93ab60d9780896df2a2 (diff) | |
download | FreeBSD-ports-a3cb151920741511a6e24cc7630066e2f4866dfa.zip FreeBSD-ports-a3cb151920741511a6e24cc7630066e2f4866dfa.tar.gz |
Import of viz port. viz converts invisible characters into a
visible form.
PR: 2922
Submitted by: Brent J. Nordquist <bjn@visi.com>
-rw-r--r-- | misc/viz/Makefile | 18 | ||||
-rw-r--r-- | misc/viz/distinfo | 1 | ||||
-rw-r--r-- | misc/viz/files/patch-aa | 91 | ||||
-rw-r--r-- | misc/viz/pkg-comment | 1 | ||||
-rw-r--r-- | misc/viz/pkg-descr | 13 | ||||
-rw-r--r-- | misc/viz/pkg-plist | 4 |
6 files changed, 128 insertions, 0 deletions
diff --git a/misc/viz/Makefile b/misc/viz/Makefile new file mode 100644 index 0000000..1ac7f7d --- /dev/null +++ b/misc/viz/Makefile @@ -0,0 +1,18 @@ +# New ports collection makefile for: viz +# Version required: 1.1.1 +# Date created: 8 Mar 1997 +# Whom: Brent J. Nordquist <bjn@visi.com> +# +# $Id$ +# + +DISTNAME= viz-1.1.1 +CATEGORIES= misc +MASTER_SITES= ftp://ftp.ptc.spbu.ru/pub/unix/text/misc/ +EXTRACT_SUFX= .tgz + +MAINTAINER= bjn@visi.com + +MAN1= viz.1 inviz.1 + +.include <bsd.port.mk> diff --git a/misc/viz/distinfo b/misc/viz/distinfo new file mode 100644 index 0000000..66f684d --- /dev/null +++ b/misc/viz/distinfo @@ -0,0 +1 @@ +MD5 (viz-1.1.1.tgz) = 143c220d970fff674dbad6ef623a6456 diff --git a/misc/viz/files/patch-aa b/misc/viz/files/patch-aa new file mode 100644 index 0000000..8376331 --- /dev/null +++ b/misc/viz/files/patch-aa @@ -0,0 +1,91 @@ +--- Makefile.patched Sat Mar 8 18:07:20 1997 ++++ Makefile Sat Mar 8 18:08:02 1997 +@@ -1,42 +1,30 @@ + ####### +-# Where the executable goes +-BINDIR=/usr/local/bin +- +-####### +-# Man pages +- +-MANDIR=/usr/local/man/man1 +-MANEXT=1 +- +-####### + # CC +-CC=gcc ++CC=cc + + ####### + # Define's + # Define STRINGS if <strings.h> is to be used in place of <string.h> + # Define NOMEM if <memory.h> isn't available. + # Define EBCDIC if that character set is used. +-DEFS = -D_HPUX_SOURCE # -DNOMEM -DSTRINGS # -DEBCDIC ++DEFS = # -D_HPUX_SOURCE # -DNOMEM -DSTRINGS # -DEBCDIC + ++####### + # Sizes of shorts, ints, longs. (This has to be a #define: the sizeof + # operator isn't sufficient because we need to use the sizes in the argument + # to a #if expression.) + SIZES = -DL_SHORT=2 -DL_INT=4 -DL_LONG=4 + +- + ####### + # CFLAGS + # Always keep $(DEFS) and $(SIZES) in CFLAGS +-CFLAGS = -O $(DEFS) $(SIZES) ++CFLAGS+= $(DEFS) $(SIZES) + + ####### + # LDFLAGS,LDLIBS +- + LDFLAGS= + LDLIBS= + +- + #################################################################### + # You shouldn't have to modify anything below this line. + #################################################################### +@@ -89,15 +77,13 @@ + $(CC) $(CFLAGS) -c inviz_num.c + + install: viz inviz +- cp viz $(BINDIR) && chmod 755 $(BINDIR)/viz +- cp inviz $(BINDIR) && chmod 755 $(BINDIR)/inviz +- cp viz.1 $(MANDIR)/viz.$(MANEXT) && \ +- chmod 644 $(MANDIR)/viz.$(MANEXT) +- cp inviz.1 $(MANDIR)/inviz.$(MANEXT) && \ +- chmod 644 $(MANDIR)/inviz.$(MANEXT) ++ install -c -s -m 755 viz $(PREFIX)/bin/viz ++ install -c -s -m 755 inviz $(PREFIX)/bin/inviz ++ install -c -m 644 viz.1 $(PREFIX)/man/man1/viz.1 ++ install -c -m 644 inviz.1 $(PREFIX)/man/man1/inviz.1 + + clean: +- rm -f *.o viz inviz y.tab.c y.tab.h ++ rm -f *.o viz inviz y.tab.c y.tab.h vizgrammar.c + + # Because of the wide variation in shar commands, the shar arguments + # used below sticks to a minimal set, and we generate various shar file +--- viz.c.patched Sat Mar 8 18:07:20 1997 ++++ viz.c Sat Mar 8 18:07:26 1997 +@@ -55,14 +55,17 @@ + #define VIZ_MAIN + #include "viz.h" + ++#ifndef _SYS_ERRNO_H_ + extern errno; + extern int sys_nerr; + extern char *sys_errlist[]; ++#endif + +- ++#ifndef _STDLIB_H_ + extern char *malloc(); + extern optind, opterr; + extern char *optarg; ++#endif + + char *prog; + struct Format Fmt = { diff --git a/misc/viz/pkg-comment b/misc/viz/pkg-comment new file mode 100644 index 0000000..5fed64e3 --- /dev/null +++ b/misc/viz/pkg-comment @@ -0,0 +1 @@ +Convert invisible (binary) characters to a visible form diff --git a/misc/viz/pkg-descr b/misc/viz/pkg-descr new file mode 100644 index 0000000..8032ca9 --- /dev/null +++ b/misc/viz/pkg-descr @@ -0,0 +1,13 @@ +Copyright (c) 1989-1994 by William Deich. + +Viz copies its input to its output, converting invisible characters +to a visible form. If the -t option is used, the output is formatted +in a form that can be completely inverted by inviz, which allows +a binary file to be converted to a text form and then back. It is +much more flexible than either cat -v or od (either old or POSIX +od), and it is also 2-4 times faster. + +-- +Port to FreeBSD 2.2 by +Brent J. Nordquist <bjn@visi.com> +8 Mar 1997 diff --git a/misc/viz/pkg-plist b/misc/viz/pkg-plist new file mode 100644 index 0000000..7a42ede --- /dev/null +++ b/misc/viz/pkg-plist @@ -0,0 +1,4 @@ +bin/viz +bin/inviz +man/man1/viz.1.gz +man/man1/inviz.1.gz |