View | Details | Raw Unified | Return to bug 255413 | Differences between
and this patch

Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 229-235 rancid:*:286: Link Here
229
webdis:*:287:
229
webdis:*:287:
230
ntopng:*:288:
230
ntopng:*:288:
231
victoria-metrics:*:289:
231
victoria-metrics:*:289:
232
# free: 290
232
_gmid:*:290:
233
# free: 291
233
# free: 291
234
# free: 292
234
# free: 292
235
# free: 293
235
# free: 293
(-)b/UIDs (-1 / +1 lines)
Lines 234-240 rancid:*:286:286::0:0:RANCID daemon user:/usr/local/var/rancid:/bin/sh Link Here
234
webdis:*:287:287::0:0:webdis daemon user:/nonexistent:/usr/sbin/nologin
234
webdis:*:287:287::0:0:webdis daemon user:/nonexistent:/usr/sbin/nologin
235
ntopng:*:288:288::0:0:ntopng daemon user:/nonexistent:/usr/sbin/nologin
235
ntopng:*:288:288::0:0:ntopng daemon user:/nonexistent:/usr/sbin/nologin
236
victoria-metrics:*:289:289::0:0:VictoriaMetrics user:/nonexistent:/usr/sbin/nologin
236
victoria-metrics:*:289:289::0:0:VictoriaMetrics user:/nonexistent:/usr/sbin/nologin
237
# free: 290
237
_gmid:*:290:290::0:0:gmid daemon user:/var/empty:/usr/sbin/nologin
238
# free: 291
238
# free: 291
239
# free: 292
239
# free: 292
240
# free: 293
240
# free: 293
(-)b/net/gmid/Makefile (+36 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=	gmid
4
DISTVERSION=	v1.6.1
5
CATEGORIES=	net
6
7
MAINTAINER=	freebsd@omarpolo.com
8
COMMENT=	Simple and secure Gemini server.
9
10
LICENSE=	ISCL
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
13
LIB_DEPENDS=	libevent.so:devel/libevent	\
14
		libtls.so:security/libressl
15
16
USES=		localbase ssl
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	omar-polo
19
20
HAS_CONFIGURE=	yes
21
22
USERS=		_gmid
23
GROUPS=		_gmid
24
25
USE_RC_SUBR=	gmid
26
27
TEST_TARGET=	regress
28
29
post-install:
30
	${INSTALL_DATA} ${FILESDIR}/gmid.conf.sample \
31
		${STAGEDIR}${PREFIX}/etc/
32
33
post-build:
34
	${STRIP_CMD} ${WRKSRC}/gmid
35
36
.include <bsd.port.mk>
(-)b/net/gmid/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1619421708
2
SHA256 (omar-polo-gmid-v1.6.1_GH0.tar.gz) = bdbc8f184812554f3574791dfe43e435fa6c4cafcbd70b4e1e7a48b2407a54a2
3
SIZE (omar-polo-gmid-v1.6.1_GH0.tar.gz) = 59388
(-)b/net/gmid/files/gmid.conf.sample (+15 lines)
Added Link Here
1
# drop privileges
2
user "_gmid"
3
4
# it's a good idea to enable chroot, but
5
# beware that can make CGI scripting harder
6
#
7
#chroot "/var/gemini"
8
9
# An example of a server block:
10
#
11
#server "localhost" {
12
#	root "/var/gemini/localhost"
13
#	cert "/usr/local/etc/ssl/gmid/gmid.crt"
14
#	key  "/usr/local/etc/ssl/gmid/gmid.key"
15
#}
(-)b/net/gmid/files/gmid.in (+42 lines)
Added Link Here
1
#!/bin/sh
2
#
3
4
# PROVIDE: gmid
5
# REQUIRE: SERVERS
6
# KEYWORD: shutdown
7
8
#
9
# Add the following lines to /etc/rc.conf to enable gmid:
10
# gmid_enable (bool):	Set it to "YES" to enable gmid
11
#			Default is "NO".
12
# gmid_config (string):	Path to gmid configuration file.
13
#			Default is "%%PREFIX%%/etc/gmid.conf"
14
#
15
#
16
17
. /etc/rc.subr
18
19
name="gmid"
20
rcvar="gmid_enable"
21
22
start_precmd="gmid_checkconfig"
23
configtest_cmd="gmid_checkconfig"
24
extra_commands="configtest"
25
26
: ${gmid_enable:="NO"}
27
: ${gmid_config:="%%PREFIX%%/etc/gmid.conf"}
28
29
load_rc_config $name
30
31
command="%%PREFIX%%/bin/${name}"
32
command_flags="-c ${gmid_config}"
33
34
required_files="${gmid_config}"
35
36
gmid_checkconfig()
37
{
38
	echo "Performing sanity check on gmid configuration:"
39
	eval ${command} -n ${command_flags}
40
}
41
42
run_rc_command "$1"
(-)b/net/gmid/pkg-descr (+6 lines)
Added Link Here
1
gmid is a server for the Gemini protocol.  It has various
2
features, among which Capsicum support and a "config-less"
3
mode akin to "python -m http.server" to quickly serve local
4
directories from the shell.
5
6
WWW: https://github.com/omar-polo/gmid
(-)b/net/gmid/pkg-plist (+3 lines)
Added Link Here
1
@sample etc/gmid.conf.sample
2
bin/gmid
3
man/man1/gmid.1.gz

Return to bug 255413