From 8b1c6bd28e0dbdd75d9dd88078f1211f1e90f4e1 Mon Sep 17 00:00:00 2001 From: brad Date: Fri, 22 Sep 2000 22:05:35 +0000 Subject: [PATCH] add most port; From: William Yodlowsky -- most is a paging program that displays, one windowful at a time, the contents of a file on a terminal. It pauses after each windowful and prints on the window status line the screen the file name, current line number, and the percentage of the file so far displayed. Unlike other paging programs, most is capable of display- ing an arbitrary number of windows as long as each window occupies at least two screen lines. Each window may con- tain the same file or a different file. In addition, each window has its own mode. For example, one window may dis- play a file with its lines wrapped while another may be truncating the lines... --- misc/most/Makefile | 22 +++++++++++++++ misc/most/files/md5 | 3 ++ misc/most/patches/patch-src_Makefile.in | 37 +++++++++++++++++++++++++ misc/most/pkg/COMMENT | 1 + misc/most/pkg/DESCR | 13 +++++++++ misc/most/pkg/PLIST | 10 +++++++ 6 files changed, 86 insertions(+) create mode 100644 misc/most/Makefile create mode 100644 misc/most/files/md5 create mode 100644 misc/most/patches/patch-src_Makefile.in create mode 100644 misc/most/pkg/COMMENT create mode 100644 misc/most/pkg/DESCR create mode 100644 misc/most/pkg/PLIST diff --git a/misc/most/Makefile b/misc/most/Makefile new file mode 100644 index 00000000000..7787cbcf399 --- /dev/null +++ b/misc/most/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2000/09/22 22:05:35 brad Exp $ + +DISTNAME= most-4.9.0 +CATEGORIES= misc +NEED_VERSION= 1.330 +MASTER_SITES= ftp://space.mit.edu/pub/davis/most/ \ + http://www.resentment.org/~unix/ + +LIB_DEPENDS= slang.14::devel/libslang + +MAINTAINER= unix@resentment.org + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +FAKE_FLAGS= DESTDIR="${WRKINST}" DOC_DIR='$$(prefix)/share/doc/most' + +CONFIGURE_STYLE= gnu + +.include diff --git a/misc/most/files/md5 b/misc/most/files/md5 new file mode 100644 index 00000000000..6988638c1ac --- /dev/null +++ b/misc/most/files/md5 @@ -0,0 +1,3 @@ +MD5 (most-4.9.0.tar.gz) = e2b80cda82f022100282e06918606c85 +RMD160 (most-4.9.0.tar.gz) = ac1ca8540851dde71f603846a6b68b7c274ff34a +SHA1 (most-4.9.0.tar.gz) = 7f8d02c6573ea58b00a9f85b06efa89bdc386dd2 diff --git a/misc/most/patches/patch-src_Makefile.in b/misc/most/patches/patch-src_Makefile.in new file mode 100644 index 00000000000..5d010eda436 --- /dev/null +++ b/misc/most/patches/patch-src_Makefile.in @@ -0,0 +1,37 @@ +--- src/Makefile.in.orig Mon May 17 01:27:07 1999 ++++ src/Makefile.in Fri Sep 22 17:42:00 2000 +@@ -39,12 +39,15 @@ + #---------------------------------------------------------------------------- + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ ++ ++DESTDIR = ++ + prefix = @prefix@ + BIN_DIR = $(prefix)/bin + MAN_DIR = $(prefix)/man/man1 + DOC_DIR = $(prefix)/doc/most + +-SYS_INITFILE = $(prefix)/etc/most.conf ++SYS_INITFILE = @sysconfdir@/most.conf + + DOC_FILES = ../most.doc ../README ../most-fun.txt \ + ../lesskeys.rc ../default.rc ../changes.txt +@@ -85,12 +88,12 @@ + distclean: clean + /bin/rm -rf $(OBJDIR) Makefile sysconf.h + install: all $(BIN_DIR) +- $(INSTALL) -s $(OBJDIR)/most $(BIN_DIR) +- $(INSTALL_DATA) ../most.1 $(MAN_DIR) +- $(INSTALL) -d $(DOC_DIR) -m 755 +- $(INSTALL_DATA) $(DOC_FILES) $(DOC_DIR) ++ $(INSTALL) -s $(OBJDIR)/most $(DESTDIR)$(BIN_DIR) ++ $(INSTALL_DATA) ../most.1 $(DESTDIR)$(MAN_DIR) ++ $(INSTALL) -d -m 755 $(DESTDIR)$(DOC_DIR) ++ $(INSTALL_DATA) $(DOC_FILES) $(DESTDIR)$(DOC_DIR) + $(BIN_DIR): +- - ../mkinsdir.sh $(BIN_DIR) ++ - ../mkinsdir.sh $(DESTDIR)$(BIN_DIR) + # The symlinks target is for my own private use. It simply creates the object + # directory as a symbolic link to a local disk instead of an NFS mounted one. + symlinks: diff --git a/misc/most/pkg/COMMENT b/misc/most/pkg/COMMENT new file mode 100644 index 00000000000..f63acfb97b4 --- /dev/null +++ b/misc/most/pkg/COMMENT @@ -0,0 +1 @@ +browse or page through a text file diff --git a/misc/most/pkg/DESCR b/misc/most/pkg/DESCR new file mode 100644 index 00000000000..f42aa2a6fd3 --- /dev/null +++ b/misc/most/pkg/DESCR @@ -0,0 +1,13 @@ +most is a paging program that displays, one windowful at a +time, the contents of a file on a terminal. It pauses +after each windowful and prints on the window status line +the screen the file name, current line number, and the +percentage of the file so far displayed. + +Unlike other paging programs, most is capable of display- +ing an arbitrary number of windows as long as each window +occupies at least two screen lines. Each window may con- +tain the same file or a different file. In addition, each +window has its own mode. For example, one window may dis- +play a file with its lines wrapped while another may be +truncating the lines... diff --git a/misc/most/pkg/PLIST b/misc/most/pkg/PLIST new file mode 100644 index 00000000000..9bd348b2680 --- /dev/null +++ b/misc/most/pkg/PLIST @@ -0,0 +1,10 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2000/09/22 22:05:35 brad Exp $ +bin/most +man/man1/most.1 +share/doc/most/README +share/doc/most/changes.txt +share/doc/most/default.rc +share/doc/most/lesskeys.rc +share/doc/most/most-fun.txt +share/doc/most/most.doc +@dirrm share/doc/most