pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/Geomyidae Geomyidae: Update net/Geomyidae to 0.32.2
details: https://anonhg.NetBSD.org/pkgsrc/rev/15df9d0989b8
branches: trunk
changeset: 383790:15df9d0989b8
user: leot <leot%pkgsrc.org@localhost>
date: Fri Aug 10 10:41:20 2018 +0000
description:
Geomyidae: Update net/Geomyidae to 0.32.2
pkgsrc changes:
- Update DISTNAME, PKGNAME, MASTER_SITES and HOMEPAGE
- Take MAINTAINERship (discussed via private email with previous MAINTAINER)
- Remove (not so useful) MESSAGE
- Avoid NO_CONFIGURE=yes, also if a package does not provide a configure script
it is not needed and can lead to confusion due the several configure targets
that are removed
- Add several variable to BUILD_DEFS
- Honor GEOMYIDAE_USER, GEOMYIDAE_GROUP and GEOMYIDAE_ROOTDIR variables that
will respectively set the default user, group and rootdir of geomyidae
- Instead of copypasting several rc scripts write a new one ad-hoc for pkgsrc
that by default will run geomyidae unprivileged honoring the several
GEOMYIDAE_* variables.
If `geomyidae_flags' is defined in rc.conf these defaults are ignored.
- Do not install a LICENSE file (we have the LICENSE variable for it!)
Changes:
Geomyidae v0.32.2 fixes release
-------------------------------
Another fixes release for geomyidae is out. Now hopefully the OpenBSD people
fixed the whole pledge support in geomyidae.
Geomyidae v0.32.1 fixes release
-------------------------------
Soon after the v0.32 release I received patches, which I do not want to miss
in mainline.
* Fix and make OpenBSD pledge support better.
* Fix a typo in the slackware init script.
Thanks for all who sent in patches! All further patches are welcome!
Geomyidae v0.32 Release
-----------------------
I am glad to announce the release of geomyidae v0.32. Thanks to all the
contributors and people giving ideas!
Here is what changed:
* Minor fixed in the manpage, CGI handling and tools.
* Add example for tt escaping in the manpage.
* Add nocgi flag, which disables CGI execution.
* Add OpenBSD pledge support.
Geomyidae v0.31.1 release
-------------------------
There has been a geomyidae v0.31.1 release which fixes a major issue of the
pending bytes logic from v0.31.
Have fun!
Geomyidae v0.31 release
-----------------------
I am proud to announce the geomyidae v0.31 release. There were
some major issues fixed, so a new release is necessary:
* There is now gph vim syntax highlighting files in the archive.
* Gopher+ compatibility mode.
* No sockets are left behind anymore.
* New log format of geomyidae is now documented in the manpage.
* There was some ugly bug with curl connecting to a Linux system, where after
close() some bytes were lost. Now some check is added to be sure all data
has been sent to the client. If you want to have bad dreams, look at the
curl sourcecode.
Thanks for everyone contributing!
Geomyidae v0.30 release
-----------------------
What is new?
* The gph format now allows escaping of '|' characters. See the example
index.gph file in the distribution for how to or the manpage.
* Geomyidae has happy helping snowman support to help you with your dynamic
gph content generation in geomyidae. In case you add some spurious tab,
this little guy will appear and inform you about what happened.
* There is now a Links file for links to software related to application
development for geomyidae.
* The gentoo init.d script has been fixed.
* A slackware rc file was added.
* The makefile is now POSIX-compliant.
* The log format has been changed to be easier parsable for all kind of log
analyzers. (`[YYYY-MM-DD HH:mm:SS +ZZZZ|client|clientport|status] selector')
* A flag to not perform reverse lookups in log files has been added.
* Implement some CGI variables for cgi and dcgi. See the manpage for which
ones are available. Here you can see REMOTE_ADDR in action:
gopher://bitreich.org/0/ip
Geomyidae 0.29 release
----------------------
I am happy to announce the 0.29 release of geomyidae, a simple gopher server.
What has been changed:
* the OpenBSD rc.d files have been fixed due to arg.h fixes
* index.bin support added
* Create a file with the raw gopher menu content in a directory and is
served by geomyidae.
* This is useful for scripts generating static gopher content
* This is useful for serving a backup of a gopherhole.
* show errors on fork, in case there are constraints on process resources
* care for send errors
* huge speed up on different platforms when transferring huge binary files
* Linux is using sendfile(2) and TCP_CORK
* FreeBSD and DragonflyBSD are using sendfile(2)
* TCP_NOPUSH is used on all BSDs
* TCP_NODELAY is disabled on nearly all platforms
* other platforms (like OpenBSD) have a speed increase due to an
alignment of the send buffer to blocksize of the socket
I want to thank all contributors! All patches are welcome!
Geomyidae 0.28 release
----------------------
What's new in geomyidae?
* The parsing of gph files is now more liberal. When you do something wrong,
it will most of the time just display the line.
* DCGI speed was increased massively.
* Error messages are now more useful.
* More files are now handled as text files automatically.
* The OpenBSD rc.d file was fixed to modern days.
* Typos have been fixed.
Geomyidae 0.27 release
----------------------
I am proud to announce the 0.27 release of geomyidae.
* dramatic improvement of serving speed
* security fixes
* a OpenBSD rc.d file was added
* the manpage has been updated to the current state
* there is no support for index.gph, index.dcgi and index.cgi,
which helps to write more REST-friendly apps
I want to thank all contributors. All patches are welcome!
diffstat:
net/Geomyidae/MESSAGE | 9 ---------
net/Geomyidae/Makefile | 40 ++++++++++++++++++++++++++++++----------
net/Geomyidae/PLIST | 9 +--------
net/Geomyidae/distinfo | 10 +++++-----
net/Geomyidae/files/geomyidae.sh | 22 ++++++++++++++++++++++
5 files changed, 58 insertions(+), 32 deletions(-)
diffs (136 lines):
diff -r 2acb5d3b42e1 -r 15df9d0989b8 net/Geomyidae/MESSAGE
--- a/net/Geomyidae/MESSAGE Fri Aug 10 09:00:57 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.2 2015/04/19 19:21:15 wiz Exp $
-
-For documentation, license, rc.d scripts and configuration examples see:
-
- geomyidae(8)
- ${PREFIX}/share/doc/geomyidae
- ${PREFIX}/share/examples/geomyidae
-===========================================================================
diff -r 2acb5d3b42e1 -r 15df9d0989b8 net/Geomyidae/Makefile
--- a/net/Geomyidae/Makefile Fri Aug 10 09:00:57 2018 +0000
+++ b/net/Geomyidae/Makefile Fri Aug 10 10:41:20 2018 +0000
@@ -1,30 +1,50 @@
-# $NetBSD: Makefile,v 1.8 2017/08/01 17:40:14 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2018/08/10 10:41:20 leot Exp $
-DISTNAME= geomyidae-0.26.3
+DISTNAME= geomyidae-v0.32.2
+PKGNAME= ${DISTNAME:S/-v/-/}
CATEGORIES= net
-#MASTER_SITES= http://r-36.net/src/geomyidae/
+MASTER_SITES= ftp://bitreich.org/releases/geomyidae/
+EXTRACT_SUFX= .tgz
-MAINTAINER= jgw%sdf.org@localhost
-#HOMEPAGE= http://r-36.net/src/geomyidae/
+MAINTAINER= leot%NetBSD.org@localhost
+HOMEPAGE= gopher://bitreich.org/1/scm/geomyidae
COMMENT= Gopher daemon for Linux/BSD
LICENSE= mit AND x11
-NO_CONFIGURE= yes
+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
-INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 ${EGDIR} ${EGDIR}/rc.d ${DOCDIR}
+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
-LDFLAGS.SunOS+= -lsocket -lnsl
+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}/LICENSE ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/index.gph ${DESTDIR}${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/rc.d/* ${DESTDIR}${EGDIR}/rc.d
.include "../../mk/bsd.pkg.mk"
diff -r 2acb5d3b42e1 -r 15df9d0989b8 net/Geomyidae/PLIST
--- a/net/Geomyidae/PLIST Fri Aug 10 09:00:57 2018 +0000
+++ b/net/Geomyidae/PLIST Fri Aug 10 10:41:20 2018 +0000
@@ -1,13 +1,6 @@
-@comment $NetBSD: PLIST,v 1.4 2015/04/19 19:21:15 wiz Exp $
+@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/LICENSE
share/doc/geomyidae/README
share/examples/geomyidae/index.gph
-share/examples/geomyidae/rc.d/Archlinux.conf.d
-share/examples/geomyidae/rc.d/Archlinux.rc.d
-share/examples/geomyidae/rc.d/Gentoo.conf.d
-share/examples/geomyidae/rc.d/Gentoo.init.d
-share/examples/geomyidae/rc.d/NetBSD.rc.d
-share/examples/geomyidae/rc.d/README
diff -r 2acb5d3b42e1 -r 15df9d0989b8 net/Geomyidae/distinfo
--- a/net/Geomyidae/distinfo Fri Aug 10 09:00:57 2018 +0000
+++ b/net/Geomyidae/distinfo Fri Aug 10 10:41:20 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2015/11/04 00:34:51 agc Exp $
+$NetBSD: distinfo,v 1.6 2018/08/10 10:41:20 leot Exp $
-SHA1 (geomyidae-0.26.3.tar.gz) = 7eb018bb7436f9f2ae4e3123bb8d11f69085bb01
-RMD160 (geomyidae-0.26.3.tar.gz) = d5d843ee0f498972eb72f9f663eb550a2b3e7a31
-SHA512 (geomyidae-0.26.3.tar.gz) = fcee0133547881f6df173a24eac0fd3007436365375f11c572c50cf2e77c2033d441209f7f20dab1d291b0e9305de245da409351a02df4ca92d7b158768424b3
-Size (geomyidae-0.26.3.tar.gz) = 15556 bytes
+SHA1 (geomyidae-v0.32.2.tgz) = cf7e947cdbcc3aa050e474595e728c773733e23e
+RMD160 (geomyidae-v0.32.2.tgz) = 48c80bf1f1b2c4126c461a84674d58030ca0aba7
+SHA512 (geomyidae-v0.32.2.tgz) = 3b0927a16082df862b9efacc2f29fd1b1ca76f7d465426e179d5995a416bc27b518daba422512091304ed5479ff133e3d40f7bf66aedfbd8d99d13710809d519
+Size (geomyidae-v0.32.2.tgz) = 20897 bytes
diff -r 2acb5d3b42e1 -r 15df9d0989b8 net/Geomyidae/files/geomyidae.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/Geomyidae/files/geomyidae.sh Fri Aug 10 10:41:20 2018 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index