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@
This commit is contained in:
landry 2012-09-22 07:58:28 +00:00
parent a86b5ae7dd
commit 9549334624
5 changed files with 83 additions and 0 deletions

34
net/gophernicus/Makefile Normal file
View File

@ -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 <bcallah@devio.us>
# 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 <bsd.port.mk>

2
net/gophernicus/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (gophernicus-1.3.tar.gz) = Wnj8OtgNyiICfVhOX1hSeV6W6W4Lvy0kFlBJE6+NPkM=
SIZE (gophernicus-1.3.tar.gz) = 44029

View File

@ -0,0 +1,2 @@
The Gophernicus Project is a one-man mission to modernize gopher, the
precursor of the evil that is WWW.

23
net/gophernicus/pkg/PLIST Normal file
View File

@ -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}

View File

@ -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.