From 95ef5ed2f2ea00cacfa809202b1f1b5744f83b7e Mon Sep 17 00:00:00 2001 From: steven Date: Mon, 31 Jul 2006 12:52:20 +0000 Subject: [PATCH] import gopher 3.0.11 This is the Gopher+ distribution based on the University of Minnesota's Internet Gopher+ distribution for UNIX machines. University of Minnesota actively developed this software until 1995. In 2000, they released it to the public under the GNU General Public License. submitted by Deanna Phillips ok bernd@, looks good jasper@ --- net/gopher/Makefile | 44 +++++++++++++++++++++ net/gopher/distinfo | 4 ++ net/gopher/patches/patch-doc_gopher_1 | 17 ++++++++ net/gopher/patches/patch-doc_gopherrc_5 | 21 ++++++++++ net/gopher/patches/patch-gopher_Makefile_in | 12 ++++++ net/gopher/patches/patch-object_Regex_h | 18 +++++++++ net/gopher/pkg/DESCR | 6 +++ net/gopher/pkg/PLIST | 14 +++++++ 8 files changed, 136 insertions(+) create mode 100644 net/gopher/Makefile create mode 100644 net/gopher/distinfo create mode 100644 net/gopher/patches/patch-doc_gopher_1 create mode 100644 net/gopher/patches/patch-doc_gopherrc_5 create mode 100644 net/gopher/patches/patch-gopher_Makefile_in create mode 100644 net/gopher/patches/patch-object_Regex_h create mode 100644 net/gopher/pkg/DESCR create mode 100644 net/gopher/pkg/PLIST diff --git a/net/gopher/Makefile b/net/gopher/Makefile new file mode 100644 index 00000000000..2b906322b55 --- /dev/null +++ b/net/gopher/Makefile @@ -0,0 +1,44 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/07/31 12:52:20 steven Exp $ + +COMMENT= "distributed document delivery client" + +DISTNAME= gopher_3.0.11 +PKGNAME= ${DISTNAME:S/_/-/} +CATEGORIES= net + +HOMEPAGE= http://quux.org/devel/gopher/Downloads/ + +MAINTAINER= Deanna Phillips + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE} + +WANTLIB= c m curses termcap + +USE_GMAKE= Yes +CONFIGURE_STYLE=gnu +MAKE_FLAGS= CLIENTLIB=${SYSCONFDIR}/gopher +WRKDIST= ${WRKDIR}/gopher +NO_REGRESS= Yes + +pre-install: + @perl -pi -e "s,!!LOCALBASE!!,${LOCALBASE},g;" \ + -e "s,!!SYSCONFDIR!!,${SYSCONFDIR},g" ${WRKSRC}/doc/gopher.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/gopher/gopher ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/gophfilt/gophfilt ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/goph*.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/doc/gopherrc.5 ${PREFIX}/man/man5 + ${INSTALL_DATA_DIR} ${PREFIX}/share/gopher + ${INSTALL_DATA} ${WRKSRC}/gopher/gopher.hlp ${PREFIX}/share/gopher + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gopher + ${INSTALL_DATA} ${WRKSRC}/gopher/gopher*.rc \ + ${PREFIX}/share/examples/gopher + +.include diff --git a/net/gopher/distinfo b/net/gopher/distinfo new file mode 100644 index 00000000000..c6414df2fd2 --- /dev/null +++ b/net/gopher/distinfo @@ -0,0 +1,4 @@ +MD5 (gopher_3.0.11.tar.gz) = dc84de97a4fc5052a47053a2beabf2ee +RMD160 (gopher_3.0.11.tar.gz) = 197ee4263612901191e9c964a749586826e350c2 +SHA1 (gopher_3.0.11.tar.gz) = 7f64d5fcfa8b92967f94276b1697fda127624f98 +SIZE (gopher_3.0.11.tar.gz) = 318250 diff --git a/net/gopher/patches/patch-doc_gopher_1 b/net/gopher/patches/patch-doc_gopher_1 new file mode 100644 index 00000000000..6a65d325d25 --- /dev/null +++ b/net/gopher/patches/patch-doc_gopher_1 @@ -0,0 +1,17 @@ +$OpenBSD: patch-doc_gopher_1,v 1.1.1.1 2006/07/31 12:52:20 steven Exp $ +--- doc/gopher.1.orig Sun Jul 30 21:52:38 2006 ++++ doc/gopher.1 Sun Jul 30 21:55:12 2006 +@@ -227,11 +227,11 @@ The program used to print from a pipe. + $HOME/.gopherrc + user bookmarks and configuration information + .TP +-/usr/local/lib/gopher.rc ++!!SYSCONFDIR!!/gopher/gopher.rc + system default configuration information (default location - may be + somewhere else on your system) + .TP +-/usr/local/lib/gopher.hlp ++!!LOCALBASE!!/share/gopher/gopher.hlp + client help file displayed by the '?' command (default location - may be + somewhere else on your system) + diff --git a/net/gopher/patches/patch-doc_gopherrc_5 b/net/gopher/patches/patch-doc_gopherrc_5 new file mode 100644 index 00000000000..1c589c767f8 --- /dev/null +++ b/net/gopher/patches/patch-doc_gopherrc_5 @@ -0,0 +1,21 @@ +$OpenBSD: patch-doc_gopherrc_5,v 1.1.1.1 2006/07/31 12:52:20 steven Exp $ +--- doc/gopherrc.5.orig Sun Jul 30 21:55:39 2006 ++++ doc/gopherrc.5 Sun Jul 30 21:56:59 2006 +@@ -77,10 +77,8 @@ then search words will be bolded. Other + .TP 12 + .I Bookmarks: + .LP +-The bookmarks in .link format follow. For more information on the +-format of a .link file, consult the gopherd(8) manual page. ++The bookmarks in .link format follow. + +- + .I + Sample gopherrc file: + +@@ -102,4 +100,4 @@ Sample gopherrc file: + + .SH "SEE ALSO" + .IR "Media Type Registration Procedure" ", March 1994, RFC 1590" +-.IR gopher(1), gopherd(8) ++.IR gopher(1). diff --git a/net/gopher/patches/patch-gopher_Makefile_in b/net/gopher/patches/patch-gopher_Makefile_in new file mode 100644 index 00000000000..2abe6681320 --- /dev/null +++ b/net/gopher/patches/patch-gopher_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-gopher_Makefile_in,v 1.1.1.1 2006/07/31 12:52:20 steven Exp $ +--- gopher/Makefile.in.orig Fri Jul 28 20:19:27 2006 ++++ gopher/Makefile.in Fri Jul 28 20:20:44 2006 +@@ -132,7 +132,7 @@ OBJS = manager.o gopher.o globals.o ouru + + CCFLAGS = $(OPT) $(DEBUGGING) -I.. -I$(top_srcdir) -I$(top_srcdir)/object \ + $(INTLOPTS) $(CLIENTOPTS) -DGOPHERLIB=\"$(CLIENTLIB)\" \ +- -DGOPHERHELP=\"$(CLIENTLIB)/gopher.hlp\" \ ++ -DGOPHERHELP=\"${LOCALBASE}/share/gopher/gopher.hlp\" \ + -DGLOBALRC=\"$(CLIENTLIB)/gopher.rc\" \ + -DREMOTERC=\"$(CLIENTLIB)/gopherremote.rc\" + diff --git a/net/gopher/patches/patch-object_Regex_h b/net/gopher/patches/patch-object_Regex_h new file mode 100644 index 00000000000..d499550261d --- /dev/null +++ b/net/gopher/patches/patch-object_Regex_h @@ -0,0 +1,18 @@ +$OpenBSD: patch-object_Regex_h,v 1.1.1.1 2006/07/31 12:52:20 steven Exp $ +--- object/Regex.h.orig Wed Jul 26 12:56:33 2006 ++++ object/Regex.h Wed Jul 26 12:56:44 2006 +@@ -171,14 +171,6 @@ + #warning REGEX_POSIX defined but REG_EXTENDED not found. + #endif + +-/* These are named posix_re_comp and then #defined to the original names +-because MacOS X is nice enough to typedef re_comp and re_exec differently +-in unistd.h. Eww. */ +- +-char *posix_re_comp(char *regex); +-int posix_re_exec(char *string); +-#define re_comp(a) (posix_re_comp(a)) +-#define re_exec(a) (posix_re_exec(a)) + #else + + /* ********** Try to figure out what else they have. */ diff --git a/net/gopher/pkg/DESCR b/net/gopher/pkg/DESCR new file mode 100644 index 00000000000..62bb58e1164 --- /dev/null +++ b/net/gopher/pkg/DESCR @@ -0,0 +1,6 @@ +This is the Gopher+ distribution based on the University of Minnesota's +Internet Gopher+ distribution for UNIX machines. University of +Minnesota actively developed this software until 1995. In 2000, they +released it to the public under the GNU General Public License. This +represents the latest version of their tree, as adopted by a group of +programmers. diff --git a/net/gopher/pkg/PLIST b/net/gopher/pkg/PLIST new file mode 100644 index 00000000000..37688335ce6 --- /dev/null +++ b/net/gopher/pkg/PLIST @@ -0,0 +1,14 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/07/31 12:52:20 steven Exp $ +bin/gopher +bin/gophfilt +@man man/man1/gopher.1 +@man man/man1/gophfilt.1 +@man man/man5/gopherrc.5 +share/examples/gopher/ +@sample ${SYSCONFDIR}/gopher/ +share/examples/gopher/gopher.rc +@sample ${SYSCONFDIR}/gopher/gopher.rc +share/examples/gopher/gopherremote.rc +@sample ${SYSCONFDIR}/gopher/gopherremote.rc +share/gopher/ +share/gopher/gopher.hlp