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

Collapse All | Expand All

(-)b/net/gmid/Makefile (-5 / +8 lines)
Lines 1-7 Link Here
1
PORTNAME=	gmid
1
PORTNAME=	gmid
2
DISTVERSION=	v1.6.1
2
DISTVERSION=	1.7
3
PORTREVISION=	1
4
CATEGORIES=	net
3
CATEGORIES=	net
4
MASTER_SITES=	https://github.com/omar-polo/gmid/releases/download/${DISTVERSION}/
5
5
6
MAINTAINER=	freebsd@omarpolo.com
6
MAINTAINER=	freebsd@omarpolo.com
7
COMMENT=	Simple and secure Gemini server
7
COMMENT=	Simple and secure Gemini server
Lines 10-20 LICENSE= ISCL Link Here
10
LICENSE_FILE=	${WRKSRC}/LICENSE
10
LICENSE_FILE=	${WRKSRC}/LICENSE
11
11
12
LIB_DEPENDS=	libevent.so:devel/libevent \
12
LIB_DEPENDS=	libevent.so:devel/libevent \
13
		libtls.so:security/libressl
13
		libtls.so:security/libretls
14
14
15
USES=		localbase pkgconfig ssl
15
USES=		localbase pkgconfig ssl
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	omar-polo
18
USE_RC_SUBR=	gmid
16
USE_RC_SUBR=	gmid
19
17
20
HAS_CONFIGURE=	yes
18
HAS_CONFIGURE=	yes
Lines 24-29 TEST_TARGET= regress Link Here
24
USERS=		_gmid
22
USERS=		_gmid
25
GROUPS=		_gmid
23
GROUPS=		_gmid
26
24
25
# Because base OpenSSL doesn't install a .pc file for pkg-config, some
26
# flags cannot be obtained automatically by the configure script.
27
CONFIGURE_ENV+= CFLAGS="-I${OPENSSLINC}" \
28
                LDFLAGS="-L${OPENSSLLIB} -lcrypto -lssl"
29
27
post-build:
30
post-build:
28
	${STRIP_CMD} ${WRKSRC}/gmid
31
	${STRIP_CMD} ${WRKSRC}/gmid
29
32
(-)b/net/gmid/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1619421708
1
TIMESTAMP = 1625925591
2
SHA256 (omar-polo-gmid-v1.6.1_GH0.tar.gz) = bdbc8f184812554f3574791dfe43e435fa6c4cafcbd70b4e1e7a48b2407a54a2
2
SHA256 (gmid-1.7.tar.gz) = 9ef30bce37208ef74afede49778cf3276583ae3aa97de8237eaaff5481ff8dd4
3
SIZE (omar-polo-gmid-v1.6.1_GH0.tar.gz) = 59388
3
SIZE (gmid-1.7.tar.gz) = 692295
(-)b/net/gmid/files/gmid.conf.sample (-8 / +17 lines)
Lines 3-15 user "_gmid" Link Here
3
3
4
# it's a good idea to enable chroot, but
4
# it's a good idea to enable chroot, but
5
# beware that can make CGI scripting harder
5
# beware that can make CGI scripting harder
6
#
6
chroot "/var/gemini"
7
#chroot "/var/gemini"
8
7
9
# An example of a server block:
8
# An example of a server block:
10
#
9
server "localhost" {
11
#server "localhost" {
10
	# set the directory to serve; it's relative to the
12
#	root "/var/gemini/localhost"
11
	# chroot (if enabled)
13
#	cert "/usr/local/etc/ssl/gmid/gmid.crt"
12
	root "/localhost"
14
#	key  "/usr/local/etc/ssl/gmid/gmid.key"
13
15
#}
14
	# Set self-signed TLS cert and key.  It's better to keep
15
	# the keys outside the chroot.
16
	#
17
	# You should generate them manually, for example:
18
	# openssl req -x509 -newkey rsa:4096 -nodes		\
19
	#	-out /usr/local/etc/ssl/gmid/localhost.crt	\
20
	#	-keyout /usr/local/etc/ssl/gmid/localhost.key	\
21
	# 	-subj "/CN=localhost"
22
	cert "/usr/local/etc/ssl/gmid/localhost.crt"
23
	key  "/usr/local/etc/ssl/gmid/localhost.key"
24
}
(-)b/net/gmid/pkg-descr (-1 / +1 lines)
Lines 3-6 features, among which Capsicum support and a "config-less" Link Here
3
mode akin to "python -m http.server" to quickly serve local
3
mode akin to "python -m http.server" to quickly serve local
4
directories from the shell.
4
directories from the shell.
5
5
6
WWW: https://github.com/omar-polo/gmid
6
WWW: https://gmid.omarpolo.com

Return to bug 257098