Skip to content

Commit

Permalink
Import net/gopher version 3.0.6_1
Browse files Browse the repository at this point in the history
  • Loading branch information
DPorts Builder committed Aug 18, 2016
1 parent 94dcbeb commit bdc841f
Show file tree
Hide file tree
Showing 11 changed files with 170 additions and 0 deletions.
33 changes: 33 additions & 0 deletions net/gopher/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Created by: ats (original)
# $FreeBSD$

PORTNAME= gopher
PORTVERSION= 3.0.6
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://gopher.quux.org:70/give-me-gopher/ \
http://dl.droso.net/FreeBSD/distfiles/
DISTFILES= ${PORTNAME}_${PORTVERSION}${EXTRACT_SUFX}
WRKSRC= ${WRKDIR}/${PORTNAME}

MAINTAINER= erwin@FreeBSD.org
COMMENT= Gopher client for access to a distributed document service

GNU_CONFIGURE= yes
USES= gmake

pre-patch:
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
's,<malloc.h>,<stdlib.h>,'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gopher/gopher ${STAGEDIR}${PREFIX}/bin/gopher
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/gopher
${INSTALL_DATA} ${WRKSRC}/gopher/gopher.rc ${STAGEDIR}${PREFIX}/etc/gopher/gopher.rc
${INSTALL_DATA} ${WRKSRC}/gopher/gopherremote.rc ${STAGEDIR}${PREFIX}/etc/gopher/gopherremote.rc
${INSTALL_DATA} ${WRKSRC}/gopher/gopher.hlp ${STAGEDIR}${PREFIX}/etc/gopher/gopher.hlp
${INSTALL_PROGRAM} ${WRKSRC}/gophfilt/gophfilt ${STAGEDIR}${PREFIX}/bin/gophfilt
${INSTALL_MAN} ${WRKSRC}/doc/gopher.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/gophfilt.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/gopherrc.5 ${STAGEDIR}${MAN5PREFIX}/man/man5

.include <bsd.port.mk>
8 changes: 8 additions & 0 deletions net/gopher/Makefile.DragonFly
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
USES+= ncurses

CONFIGURE_ENV+= ac_cv_lib_ncurses_main=yes

dfly-patch:
${REINPLACE_CMD} -e 's@curses@ncurses@g' \
-e "/LIBS/s@\(-lncurses\)@-L${LOCALBASE}/lib \1@g" \
${WRKSRC}/configure
2 changes: 2 additions & 0 deletions net/gopher/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (gopher_3.0.6.tar.gz) = 896a21c4d5284a6f1a5f8a20afe6e0ca9c7da7109b8c7de3aa549957dd2b2011
SIZE (gopher_3.0.6.tar.gz) = 677753
12 changes: 12 additions & 0 deletions net/gopher/dragonfly/patch-object_GSgopherobj.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- object/GSgopherobj.c.intermediate 2016-08-18 16:53:36 UTC
+++ object/GSgopherobj.c
@@ -357,7 +357,9 @@

#include "String.h"
#include "STRstring.h"
+#ifndef __DragonFly__
#include "Regex.h"
+#endif
#include <stdio.h>
#include "compatible.h"
#include <errno.h>
12 changes: 12 additions & 0 deletions net/gopher/files/patch-gopher_form.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- gopher/form.c.orig Sun Aug 22 15:55:22 2004
+++ gopher/form.c Sun Aug 22 15:55:36 2004
@@ -288,7 +288,8 @@
case ITEM_UNINIT: /* Unhandled cases... */
case ITEM_LABEL:
case ITEM_FILENAME:
- }
+ break;
+ }
}
responses[respnum++] = NULL;
}
51 changes: 51 additions & 0 deletions net/gopher/files/patch-object_BLblock.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
--- object/BLblock.c.orig Sun Aug 22 15:52:31 2004
+++ object/BLblock.c Sun Aug 22 15:53:33 2004
@@ -118,7 +118,7 @@
STAinit(bl->data.text);
break;
case BDATA_NONE:
- }
+ break;}
}

/*
@@ -141,7 +141,8 @@
GSdestroy(bl->data.gs);
break;
case BDATA_NONE:
- }
+ break;
+ }
}

/*
@@ -174,7 +175,8 @@
BLsetText(dest, orig->data.text);
break;
case BDATA_NONE:
- }
+ break;
+ }
}


@@ -209,7 +211,8 @@
case BDATA_NONE:
case BDATA_FILE:
case BDATA_GREF:
- }
+ break;
+ }
return(NULL);
}

@@ -343,7 +346,8 @@
fclose(infile);
break;
case BDATA_NONE:
- }
+ break;
+ }
}


11 changes: 11 additions & 0 deletions net/gopher/files/patch-object_GSgopherobj.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- object/GSgopherobj.c.orig Sun Aug 22 15:51:21 2004
+++ object/GSgopherobj.c Sun Aug 22 15:51:30 2004
@@ -2003,7 +2003,7 @@
case news:
case unset:
case unknown:
- }
+ break;}

if (serviceType == ftp) {
if (!(doneflags & G_PATH)) {
12 changes: 12 additions & 0 deletions net/gopher/files/patch-object_Regex.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- object/Regex.c.orig Wed Dec 18 22:49:17 2002
+++ object/Regex.c Wed Dec 18 22:49:29 2002
@@ -51,8 +51,8 @@

#define REGEX_CODEIT /* only include sysv regex code once.. */
#include "config.h"
-#include "Regex.h"
#include "Malloc.h"
+#include "Regex.h"

/**************************************************
POSIX
12 changes: 12 additions & 0 deletions net/gopher/files/patch-object_url.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- object/url.c.orig Sun Aug 22 15:54:02 2004
+++ object/url.c Sun Aug 22 15:54:25 2004
@@ -362,7 +362,8 @@
case ftp:
case unset:
case unknown:
- }
+ break;
+ }
URLsetHost(url, cp);
}

9 changes: 9 additions & 0 deletions net/gopher/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The Internet Gopher is a distributed document delivery service. It
allows a neophyte user to access various types of data residing on
multiple hosts in a seamless fashion. This is accomplished by
presenting the user a hierarchical arrangement of documents and by
using a client-server communications model. The Internet Gopher
Server accepts simple queries, and responds by sending the client
a document.

University of Minnesota
8 changes: 8 additions & 0 deletions net/gopher/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bin/gopher
bin/gophfilt
etc/gopher/gopher.rc
etc/gopher/gopherremote.rc
etc/gopher/gopher.hlp
man/man1/gopher.1.gz
man/man1/gophfilt.1.gz
man/man5/gopherrc.5.gz

0 comments on commit bdc841f

Please sign in to comment.