summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-04-06 11:50:36 +0000
committerobache <obache@pkgsrc.org>2008-04-06 11:50:36 +0000
commit206e2c28539b123f7f1de24cdc1740247338c194 (patch)
tree43ef3fbdf797932e5da5b9d9a953dcd1e8c502e1 /net
parent05f0205c63ca3e6b26334cfaf723a1f9282879bc (diff)
downloadpkgsrc-206e2c28539b123f7f1de24cdc1740247338c194.tar.gz
Import Geomyidae version 0.11.
Based on packaged by Jeff Woodall and provided in PR 38261. 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.
Diffstat (limited to 'net')
-rw-r--r--net/Geomyidae/DESCR4
-rw-r--r--net/Geomyidae/MESSAGE9
-rw-r--r--net/Geomyidae/Makefile30
-rw-r--r--net/Geomyidae/PLIST9
-rw-r--r--net/Geomyidae/distinfo5
-rw-r--r--net/Geomyidae/files/Geomyidae.sh59
6 files changed, 116 insertions, 0 deletions
diff --git a/net/Geomyidae/DESCR b/net/Geomyidae/DESCR
new file mode 100644
index 00000000000..15c50312225
--- /dev/null
+++ b/net/Geomyidae/DESCR
@@ -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.
diff --git a/net/Geomyidae/MESSAGE b/net/Geomyidae/MESSAGE
new file mode 100644
index 00000000000..9ddc2951e43
--- /dev/null
+++ b/net/Geomyidae/MESSAGE
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/04/06 11:50:36 obache Exp $
+
+Geomyidae options can be specified in referenced rc.d startup script;
+see ${PREFIX}/share/examples/rc.d/Geomyidae for details.
+
+For documentation, license, and examples see Geomyidae(8) and/or
+${PREFIX}/share/{doc,examples}/Geomyidae/
+===========================================================================
diff --git a/net/Geomyidae/Makefile b/net/Geomyidae/Makefile
new file mode 100644
index 00000000000..90257fd8bc9
--- /dev/null
+++ b/net/Geomyidae/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/04/06 11:50:36 obache Exp $
+#
+
+DISTNAME= Geomyidae-0.11
+CATEGORIES= net
+MASTER_SITES= http://www.r-36.net/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= jgw@freeshell.org
+HOMEPAGE= http://www.r-36.net/
+COMMENT= Gopher daemon for Linux/BSD
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+NO_CONFIGURE= yes
+
+EGDIR= ${PREFIX}/share/examples/Geomyidae
+DOCDIR= ${PREFIX}/share/doc/Geomyidae
+RCD_SCRIPTS= Geomyidae
+
+INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 ${EGDIR} ${DOCDIR}
+
+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}/LICENSE ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/index.gph ${DESTDIR}${EGDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/Geomyidae/PLIST b/net/Geomyidae/PLIST
new file mode 100644
index 00000000000..9cf5c0c62e3
--- /dev/null
+++ b/net/Geomyidae/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/06 11:50:36 obache Exp $
+man/man8/Geomyidae.8
+sbin/Geomyidae
+share/doc/Geomyidae/LICENSE
+share/doc/Geomyidae/README
+share/examples/Geomyidae/index.gph
+share/examples/rc.d/Geomyidae
+@dirrm share/examples/Geomyidae
+@dirrm share/doc/Geomyidae
diff --git a/net/Geomyidae/distinfo b/net/Geomyidae/distinfo
new file mode 100644
index 00000000000..8d6118b605d
--- /dev/null
+++ b/net/Geomyidae/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/04/06 11:50:36 obache Exp $
+
+SHA1 (Geomyidae-0.11.tgz) = 826a567a98014dc25a445ee70dbaed32010ff829
+RMD160 (Geomyidae-0.11.tgz) = ba5cf61add992dfcc32c6fc6f2ad09e6076c7499
+Size (Geomyidae-0.11.tgz) = 10777 bytes
diff --git a/net/Geomyidae/files/Geomyidae.sh b/net/Geomyidae/files/Geomyidae.sh
new file mode 100644
index 00000000000..de8ea10a594
--- /dev/null
+++ b/net/Geomyidae/files/Geomyidae.sh
@@ -0,0 +1,59 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: Geomyidae.sh,v 1.1.1.1 2008/04/06 11:50:36 obache Exp $
+#
+
+# PROVIDE: Geomyidae
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+
+$_rc_subr_loaded . /etc/rc.subr
+#. /etc/rc.subr
+
+name="Geomyidae"
+rcvar="$name"
+command="@PREFIX@/sbin/$name"
+
+#####################################################
+# Geomyidae Options Setion - "?" => Geomyidae(8) #
+# Uncomment & define options (defaults are shown) #
+#####################################################
+#
+#LOGFILE="-l /var/log/gopherd.log"
+#LOGLEVEL="-v 7"
+#HTDOCS="-b /var/gopher"
+#PORT="-p 70"
+#SPORT="-o 70"
+#USR="-u $USER"
+#GRP="-g $GROUP"
+#HOST="-h localhost"
+#IP="-i 127.0.0.1"
+
+######################################################
+# Now remove any UNDEFINED options from line below: #
+######################################################
+#
+command_args="$LOGFILE $LOGLEVEL $HTDOCS $PORT $SPORT $USR $GRP $HOST $IP"
+
+
+######################################################
+# Uncomment this section if a PID file is desired #
+######################################################
+#
+#pidfile="/var/run/${name}.pid"
+#start_cmd="Geomyidae_start"
+#
+#Geomyidae_start()
+#{
+# echo "Starting $name"
+# $name $command_args
+# pgrep -x $name > $pidfile
+#}
+
+######################################################
+# Lastly, add the following to /etc/rc.conf: #
+# "Geomyidae=YES" (without the quotes) #
+######################################################
+
+load_rc_config $name
+run_rc_command "$1"