Index | Thread | Search

From:
Joerg Jung <mail@umaxx.net>
Subject:
Re: UPDATE net/geomyidae to 0.99
To:
Lucas de Sena <lucas@seninha.org>
Cc:
ports@openbsd.org, Joerg Jung <jung@openbsd.org>
Date:
Mon, 12 Oct 2026 11:15:37 +0200

Download raw body.

Thread
Hi,

> On 11. Oct 2026, at 04:43, Lucas de Sena <lucas@seninha.org> wrote:
> 
> This is a update for geomyidae, a gopher daemon, to 0.99.
> 
> I did some changes from previous port.  I hope they're fine:
> 
> Minor, style changes:
> - lowercase $COMMENT

While porters handbook recommend lowercase, 
to me Gopher is a proper noun (protocol name), but I might be wrong here.

> - use $V for version, rather than variable substitution
> 
> New installed files (post-install target):
> - Install examples for CGI and haproxy in /usr/local/share/examples/geomyidae.
> - Remove /usr/local/share/doc/geomyidae/README
>  (it's only a 3-line-long file pointing to the manual geomyidae(8))
> 
> Breaking changes:
> - Install the daemon into /usr/local/sbin rather than /usr/local/bin

Why?

> - Add "-c" in the rc.d(8)'s default geomyidae_flags, to run it on a chroot.
> - Remove "-l /var/log/geomyidae.log", for the log file is not managed by
>  newsyslog(8) and can grow up fast.

This will log to stdout, which is IMHO not wanted.
One can just easily add the missing rotation to either newsyslog or using 
any other rotation tool, if needed. 

> Ok?
> 
> 
> diff /usr/ports
> path + /usr/ports
> commit - 219a7711c5b1b2c38ba9f2b0f5e758af90236864
> blob - 31e8b0c2274465a6bfe41d9c14da3fdc16bfe49c
> file + net/geomyidae/Makefile
> --- net/geomyidae/Makefile
> +++ net/geomyidae/Makefile
> @@ -1,9 +1,8 @@
> -COMMENT =		Gopher protocol daemon
> +COMMENT =		gopher protocol daemon
> 
> -DISTNAME =		geomyidae-v0.51
> -PKGNAME =		${DISTNAME:S/-v/-/}
> -REVISION =		0
> -
> +V =			0.99
> +DISTNAME =		geomyidae-v$V
> +PKGNAME =		geomyidae-$V
> CATEGORIES =		net
> 
> HOMEPAGE =		http://git.r-36.net/scm/geomyidae
> @@ -18,19 +17,21 @@ WANTLIB =		c tls
> 
> SITES =			ftp://bitreich.org/releases/geomyidae/
> 
> -MAKE_FLAGS =		CC="${CC}" CFLAGS="${CFLAGS} -Wall" \
> +MAKE_FLAGS =		BINDIR="${PREFIX}/sbin" \
> 			MANDIR="${PREFIX}/man/man8"
> -MAKE_ENV =		LDFLAGS="${LDFLAGS}"
> 
> NO_TEST =		Yes
> 
> post-install:
> 	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/geomyidae
> -	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/geomyidae
> -	cd ${WRKSRC} && ${INSTALL_DATA} CGI.md README \
> -	    ${PREFIX}/share/doc/geomyidae
> -	cd ${WRKSRC} && ${INSTALL_DATA} index.gph \
> -	    ${PREFIX}/share/examples/geomyidae
> -	touch ${PREFIX}/share/examples/geomyidae/log
> +	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/geomyidae/cgi-examples
> +	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/geomyidae/haproxy
> +	${INSTALL_DATA} ${WRKSRC}/CGI.md ${PREFIX}/share/doc/geomyidae
> +	${INSTALL_DATA} ${WRKSRC}/index.gph \
> +		${PREFIX}/share/examples/geomyidae
> +	${INSTALL_DATA} ${WRKSRC}/cgi-examples/* \
> +		${PREFIX}/share/examples/geomyidae/cgi-examples
> +	${INSTALL_DATA} ${WRKSRC}/haproxy/* \
> +		${PREFIX}/share/examples/geomyidae/haproxy
> 
> .include <bsd.port.mk>
> commit - 219a7711c5b1b2c38ba9f2b0f5e758af90236864
> blob - 8257add4f14e9a369c4698b0dad08dccc2482eeb
> file + net/geomyidae/distinfo
> --- net/geomyidae/distinfo
> +++ net/geomyidae/distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (geomyidae-v0.51.tar.gz) = z65VWzcw4FYRTyAi7Gi83dnQWTpIZbNMcdrKlJqdiow=
> -SIZE (geomyidae-v0.51.tar.gz) = 33384
> +SHA256 (geomyidae-v0.99.tar.gz) = QnAUqvyi+b14kIjqnreY6adFl62glRiuX9QiVamR6zw=
> +SIZE (geomyidae-v0.99.tar.gz) = 40436
> commit - 219a7711c5b1b2c38ba9f2b0f5e758af90236864
> blob - 8d0ecd4b05303b3f190e32afab0cf40a389f9eda
> file + net/geomyidae/pkg/PLIST
> --- net/geomyidae/pkg/PLIST
> +++ net/geomyidae/pkg/PLIST
> @@ -1,23 +1,22 @@
> @newgroup _geomyidae:754
> @newuser _geomyidae:754:_geomyidae::Geomyidae Gopher Daemon:/nonexistent:/sbin/nologin
> @rcscript ${RCDIR}/geomyidae
> -@bin bin/geomyidae
> @man man/man8/geomyidae.8
> +@bin sbin/geomyidae
> share/doc/geomyidae/
> share/doc/geomyidae/CGI.md
> -share/doc/geomyidae/README
> +share/examples/geomyidae/
> +share/examples/geomyidae/cgi-examples/
> +share/examples/geomyidae/cgi-examples/dirlisting.dcgi
> +share/examples/geomyidae/cgi-examples/proxy.cgi
> +share/examples/geomyidae/cgi-examples/rest.dcgi
> +share/examples/geomyidae/cgi-examples/umnlisting.dcgi
> +share/examples/geomyidae/cgi-examples/vhosting.cgi
> +share/examples/geomyidae/haproxy/
> +share/examples/geomyidae/haproxy/gopher-haproxy.cfg
> +share/examples/geomyidae/index.gph
> @mode 755
> -@owner root
> +@owner _geomyidae
> @group daemon
> @sample /var/gopher/
> -@mode
> -@owner
> -@group
> -share/examples/geomyidae/
> -share/examples/geomyidae/index.gph
> @sample /var/gopher/index.gph
> -share/examples/geomyidae/log
> -@mode 640
> -@owner _geomyidae
> -@group _geomyidae
> -@sample /var/log/geomyidae.log
> commit - 219a7711c5b1b2c38ba9f2b0f5e758af90236864
> blob - 190f00e07714e33421c2900395db6cca695a999f
> file + net/geomyidae/pkg/geomyidae.rc
> --- net/geomyidae/pkg/geomyidae.rc
> +++ net/geomyidae/pkg/geomyidae.rc
> @@ -1,10 +1,10 @@
> #!/bin/ksh
> 
> -daemon="${TRUEPREFIX}/bin/geomyidae"
> -daemon_flags="-l /var/log/geomyidae.log -u _geomyidae -g _geomyidae"
> +daemon="${TRUEPREFIX}/sbin/geomyidae"
> +daemon_flags="-c -u _geomyidae -g _geomyidae"
> 
> . /etc/rc.d/rc.subr
> 
> -pexp="${daemon} .*"
> +rc_reload=NO
> 
> rc_cmd $1