From 9549334624e937b5246dfc893feffcee1917ca99 Mon Sep 17 00:00:00 2001 From: landry Date: Sat, 22 Sep 2012 07:58:28 +0000 Subject: [PATCH] Import gophernicus 1.3. The Gophernicus Project is a one-man mission to modernize gopher, the precursor of the evil that is WWW. From Brian Callahan on ports@, ok sthen@ --- net/gophernicus/Makefile | 34 ++++++++++++++++++++++++++++++++++ net/gophernicus/distinfo | 2 ++ net/gophernicus/pkg/DESCR | 2 ++ net/gophernicus/pkg/PLIST | 23 +++++++++++++++++++++++ net/gophernicus/pkg/README | 22 ++++++++++++++++++++++ 5 files changed, 83 insertions(+) create mode 100644 net/gophernicus/Makefile create mode 100644 net/gophernicus/distinfo create mode 100644 net/gophernicus/pkg/DESCR create mode 100644 net/gophernicus/pkg/PLIST create mode 100644 net/gophernicus/pkg/README diff --git a/net/gophernicus/Makefile b/net/gophernicus/Makefile new file mode 100644 index 00000000000..f41d371473f --- /dev/null +++ b/net/gophernicus/Makefile @@ -0,0 +1,34 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2012/09/22 07:58:28 landry Exp $ + +COMMENT= modern gopher server +DISTNAME= gophernicus-1.3 +CATEGORIES= net + +HOMEPAGE= http://gophernicus.org + +MAINTAINER= Brian Callahan + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB += c + +MASTER_SITES= ${HOMEPAGE}/software/gophernicus/server/ + +MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}" +NO_REGRESS= Yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/in.gophernicus ${PREFIX}/sbin + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gophernicus + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gophernicus + cd ${WRKSRC} && ${INSTALL_DATA} LICENSE README INSTALL \ + TODO ChangeLog README.Gophermap gophertag \ + ${PREFIX}/share/doc/gophernicus/ + cd ${WRKSRC} && ${INSTALL_DATA} gophermap \ + ${PREFIX}/share/examples/gophernicus/ + +.include diff --git a/net/gophernicus/distinfo b/net/gophernicus/distinfo new file mode 100644 index 00000000000..eac19150638 --- /dev/null +++ b/net/gophernicus/distinfo @@ -0,0 +1,2 @@ +SHA256 (gophernicus-1.3.tar.gz) = Wnj8OtgNyiICfVhOX1hSeV6W6W4Lvy0kFlBJE6+NPkM= +SIZE (gophernicus-1.3.tar.gz) = 44029 diff --git a/net/gophernicus/pkg/DESCR b/net/gophernicus/pkg/DESCR new file mode 100644 index 00000000000..e7584c1c323 --- /dev/null +++ b/net/gophernicus/pkg/DESCR @@ -0,0 +1,2 @@ +The Gophernicus Project is a one-man mission to modernize gopher, the +precursor of the evil that is WWW. diff --git a/net/gophernicus/pkg/PLIST b/net/gophernicus/pkg/PLIST new file mode 100644 index 00000000000..8329eda6be4 --- /dev/null +++ b/net/gophernicus/pkg/PLIST @@ -0,0 +1,23 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2012/09/22 07:58:28 landry Exp $ +@newgroup _gophernicus:704 +@newuser _gophernicus:704:704:daemon:Gophernicus Gopher Server:/nonexistent:/sbin/nologin +@bin sbin/in.gophernicus +share/doc/gophernicus/ +share/doc/gophernicus/ChangeLog +share/doc/gophernicus/INSTALL +share/doc/gophernicus/LICENSE +share/doc/gophernicus/README +share/doc/gophernicus/README.Gophermap +share/doc/gophernicus/TODO +share/doc/gophernicus/gophertag +@owner root +@group daemon +@mode 755 +@sample /var/gopher/ +@mode +@owner +@group +share/examples/gophernicus/ +share/examples/gophernicus/gophermap +@sample /var/gopher/gophermap +share/doc/pkg-readmes/${FULLPKGNAME} diff --git a/net/gophernicus/pkg/README b/net/gophernicus/pkg/README new file mode 100644 index 00000000000..244b95109a2 --- /dev/null +++ b/net/gophernicus/pkg/README @@ -0,0 +1,22 @@ +$OpenBSD: README,v 1.1.1.1 2012/09/22 07:58:28 landry Exp $ + ++----------------------------------------------------------------------- +| Running ${FULLPKGNAME} on OpenBSD ++----------------------------------------------------------------------- + +Setting up a gopher site +======================== + +After installing the gophernicus package, edit /etc/inetd.conf and add +the following, all on one line: + +gopher stream tcp nowait _gophernicus ${TRUEPREFIX}/sbin/in.gophernicus in.gophernicus -h "hostname" + +Replace "hostname" with the system's hostname, this should be valid +and resolvable as it is used to construct links. + +By default Gophernicus serves documents from /var/gopher and will +only serve files which are world-readable; being readable by the +server process is not enough. + +For more information, see ${TRUEPREFIX}/share/doc/gophernicus/README.