Geomyidae-git: Import geomyidae-0.33 as wip/Geomyidae-git

geomyidae is a daemon for serving the protocol specified in RFC
1436 (Gopher). Under 1000 lines of C by design, it is lightweight
yet supports dynamic content, automatic file/directory indexing,
logging and privilege separation.

Based on net/Geomyidae.
This commit is contained in:
Leonardo Taccari 2018-11-12 23:15:52 +01:00
parent 78397c6947
commit 9dc489e29f
5 changed files with 88 additions and 0 deletions

4
Geomyidae-git/DESCR Normal file
View File

@ -0,0 +1,4 @@
geomyidae is a daemon for serving the protocol specified in RFC
1436 (Gopher). Under 1000 lines of C by design, it is lightweight
yet supports dynamic content, automatic file/directory indexing,
logging and privilege separation.

55
Geomyidae-git/Makefile Normal file
View File

@ -0,0 +1,55 @@
# $NetBSD: Makefile,v 1.11 2018/09/21 17:10:57 leot Exp $
DISTNAME= geomyidae-v0.33
PKGNAME= ${DISTNAME:S/-v/-/}
CATEGORIES= net
MASTER_SITES= ftp://bitreich.org/releases/geomyidae/
EXTRACT_SUFX= .tgz
MAINTAINER= leot@NetBSD.org
HOMEPAGE= gopher://bitreich.org/1/scm/geomyidae
COMMENT= Gopher daemon for Linux/BSD
LICENSE= mit
GIT_REPOSITORIES= geomyidae
GIT_REPO.geomyidae= git://bitreich.org/geomyidae
WRKSRC= ${WRKDIR}/geomyidae
BUILD_DEFS+= VARBASE GEOMYIDAE_USER GEOMYIDAE_GROUP GEOMYIDAE_ROOTDIR
FILES_SUBST+= GEOMYIDAE_USER=${GEOMYIDAE_USER} GEOMYIDAE_GROUP=${GEOMYIDAE_GROUP}
FILES_SUBST+= GEOMYIDAE_ROOTDIR=${GEOMYIDAE_ROOTDIR}
EGDIR= ${PREFIX}/share/examples/geomyidae
DOCDIR= ${PREFIX}/share/doc/geomyidae
GEOMYIDAE_USER?= geomyidae
GEOMYIDAE_GROUP?= nobody
GEOMYIDAE_ROOTDIR?= ${VARBASE}/gopher
PKG_GROUPS= ${GEOMYIDAE_GROUP}
PKG_USERS= ${GEOMYIDAE_USER}:${GEOMYIDAE_GROUP}
OWN_DIRS+= ${GEOMYIDAE_ROOTDIR}
OWN_DIRS+= ${VARBASE}/run/geomyidae
RCD_SCRIPTS= geomyidae
SUBST_CLASSES+= rootdir
SUBST_MESSAGE.rootdir= Adjust rootdir
SUBST_STAGE.rootdir= pre-configure
SUBST_FILES.rootdir= main.c
SUBST_SED.rootdir= -e 's;/var/gopher;${GEOMYIDAE_ROOTDIR};'
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 ${EGDIR} ${DOCDIR}
LDFLAGS.SunOS+= -lsocket -lnsl
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/geomyidae ${DESTDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/geomyidae.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/CGI ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/index.gph ${DESTDIR}${EGDIR}
.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"

6
Geomyidae-git/PLIST Normal file
View File

@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.5 2018/08/10 10:41:20 leot Exp $
man/man8/geomyidae.8
sbin/geomyidae
share/doc/geomyidae/CGI
share/doc/geomyidae/README
share/examples/geomyidae/index.gph

View File

@ -0,0 +1,22 @@
#!@RCD_SCRIPTS_SHELL@
# PROVIDE: geomyidae
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="geomyidae"
rcvar=$name
command="@PREFIX@/sbin/geomyidae"
geomyidae_flags=${geomyidae_flags-"-u @GEOMYIDAE_USER@ -g @GEOMYIDAE_GROUP@ -b @GEOMYIDAE_ROOTDIR@"}
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n "${name}"
${command} ${geomyidae_flags} ${command_args}
fi

View File

@ -16,6 +16,7 @@ SUBDIR+= FLIF
SUBDIR+= FLIF-git
SUBDIR+= GNUMail-pgp
SUBDIR+= GSCommander
SUBDIR+= Geomyidae-git
SUBDIR+= GoogleEarth
SUBDIR+= I2util
SUBDIR+= LuaJIT21