View | Details | Raw Unified | Return to bug 255684
Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 817-823 bitmark-recorder:*:873: Link Here
817
librespeed:*:874:
817
librespeed:*:874:
818
# free: 875
818
# free: 875
819
# free: 876
819
# free: 876
820
# free: 877
820
_gemini:*:877:
821
gerbera:*:878:
821
gerbera:*:878:
822
_encrypted-dns:*:879:
822
_encrypted-dns:*:879:
823
pyspf-milter:*:880:
823
pyspf-milter:*:880:
(-)b/UIDs (-1 / +1 lines)
Lines 822-828 bitmark-recorder:*:873:873::0:0:Bitmark Property Recorder:/var/lib/recorderd:/us Link Here
822
librespeed:*:874:874::0:0:LibreSpeed user:/nonexistent:/usr/sbin/nologin
822
librespeed:*:874:874::0:0:LibreSpeed user:/nonexistent:/usr/sbin/nologin
823
# free: 875
823
# free: 875
824
# free: 876
824
# free: 876
825
# free: 877
825
_gemini:*:877:877::0:0:gemini server user:/nonexistent:/usr/sbin/nologin
826
gerbera:*:878:878::0:0:Gerbera DLNA Media Server:/nonexistent:/usr/sbin/nologin
826
gerbera:*:878:878::0:0:Gerbera DLNA Media Server:/nonexistent:/usr/sbin/nologin
827
_encrypted-dns:*:879:879::0:0:encrypted-dns user:/var/empty:/usr/sbin/nologin
827
_encrypted-dns:*:879:879::0:0:encrypted-dns user:/var/empty:/usr/sbin/nologin
828
pyspf-milter:*:880:880::0:0:pyspf-milter:/nonexistent:/usr/sbin/nologin
828
pyspf-milter:*:880:880::0:0:pyspf-milter:/nonexistent:/usr/sbin/nologin
(-)b/net/gemserv/Makefile (+131 lines)
Added Link Here
1
PORTNAME=	gemserv
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	0.4.5
4
PORTREVISION=	1
5
CATEGORIES=	net
6
MASTER_SITES=	https://git.sr.ht/~int80h/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
7
DISTFILES=	${PORTNAME}-${DISTVERSIONPREFIX}${PORTVERSION}${EXTRACT_SUFX}
8
9
MAINTAINER=	ea@uoga.net
10
COMMENT=	A gemini server written in Rust.
11
12
LICENSE=	MIT APACHE20 BSD3CLAUSE MPL20
13
LICENSE_FILE_MIT=	${WRKSRC}/LICENSE
14
LICENSE_COMB=	multi
15
16
GEMSERV_USER?=	_gemini
17
GEMSERV_GROUP?=	_gemini
18
19
USERS=          ${GEMSERV_USER}
20
GROUPS=         ${GEMSERV_GROUP}
21
22
USE_RC_SUBR=    gemserv
23
SUB_LIST=	GEMSERV_USER=${GEMSERV_USER} \
24
		GEMSERV_GROUP=${GEMSERV_GROUP}
25
SUB_FILES=	config.toml.sample index.gmi.sample
26
27
PLIST_SUB=	GEMSERV_DATADIR=${PREFIX}/gemini/gemserv-dist
28
29
USES=		cargo ssl
30
31
CARGO_CRATES=	atty-0.2.14 \
32
		autocfg-1.0.1 \
33
		bitflags-1.2.1 \
34
		bytes-0.5.6 \
35
		cc-1.0.66 \
36
		cfg-if-0.1.10 \
37
		cfg-if-1.0.0 \
38
		chrono-0.4.19 \
39
		colored-1.9.3 \
40
		foreign-types-0.3.2 \
41
		foreign-types-shared-0.1.1 \
42
		form_urlencoded-1.0.0 \
43
		futures-core-0.3.8 \
44
		futures-macro-0.3.8 \
45
		futures-task-0.3.8 \
46
		futures-util-0.3.8 \
47
		idna-0.2.0 \
48
		iovec-0.1.4 \
49
		lazy_static-1.4.0 \
50
		libc-0.2.81 \
51
		log-0.4.11 \
52
		matches-0.1.8 \
53
		memchr-2.3.4 \
54
		mime-0.3.16 \
55
		mime_guess-2.0.3 \
56
		mio-0.6.23 \
57
		mio-uds-0.6.8 \
58
		net2-0.2.37 \
59
		num-integer-0.1.44 \
60
		num-traits-0.2.14 \
61
		num_cpus-1.13.0 \
62
		once_cell-1.5.2 \
63
		openssl-0.10.32 \
64
		percent-encoding-2.1.0 \
65
		pin-project-1.0.2 \
66
		pin-project-internal-1.0.2 \
67
		pin-project-lite-0.1.11 \
68
		pin-utils-0.1.0 \
69
		pkg-config-0.3.19 \
70
		proc-macro-hack-0.5.19 \
71
		proc-macro-nested-0.1.6 \
72
		proc-macro2-1.0.24 \
73
		quote-1.0.8 \
74
		serde-1.0.118 \
75
		serde_derive-1.0.118 \
76
		signal-hook-registry-1.3.0 \
77
		simple_logger-1.11.0 \
78
		slab-0.4.2 \
79
		syn-1.0.55 \
80
		time-0.1.44 \
81
		tinyvec-1.1.0 \
82
		tinyvec_macros-0.1.0 \
83
		tokio-0.2.24 \
84
		tokio-openssl-0.4.0 \
85
		toml-0.5.8 \
86
		unicase-2.6.0 \
87
		unicode-bidi-0.3.4 \
88
		unicode-normalization-0.1.16 \
89
		unicode-xid-0.2.1 \
90
		url-2.2.0 \
91
		version_check-0.9.2 \
92
		winapi-0.2.8 \
93
		winapi-0.3.9 \
94
		mio-named-pipes-0.1.7 \
95
		openssl-sys-0.9.61 \
96
		hermit-abi-0.1.18 \
97
		winapi-i686-pc-windows-gnu-0.4.0 \
98
		winapi-x86_64-pc-windows-gnu-0.4.0 \
99
		fuchsia-zircon-0.3.3 \
100
		fuchsia-zircon-sys-0.3.3 \
101
		kernel32-sys-0.2.2 \
102
		miow-0.2.2 \
103
		miow-0.3.7 \
104
		wasi-0.10.0+wasi-snapshot-preview1 \
105
		winapi-build-0.1.1 \
106
		ws2_32-sys-0.2.1 \
107
		vcpkg-0.2.12
108
109
CARGO_FEATURES=	
110
111
OPTIONS_DEFINE=	STATICONLY
112
OPTIONS_DEFAULT=
113
114
STATICONLY_DESC=	Only serve static files, no additional features (CGI..)
115
STATICONLY_VARS=	CARGO_FEATURES+=--no-default-features
116
117
post-install:
118
	${MKDIR} ${STAGEDIR}${ETCDIR}
119
	${INSTALL_DATA} ${WRKSRC}/config.toml ${STAGEDIR}${ETCDIR}/config.toml-dist
120
	${INSTALL_DATA} ${WRKDIR}/config.toml.sample ${STAGEDIR}${ETCDIR}
121
122
	${MKDIR} ${STAGEDIR}${DOCSDIR}
123
	${INSTALL_MAN} ${WRKSRC}/README ${WRKSRC}/UPDATING ${STAGEDIR}${DOCSDIR}
124
125
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
126
	(cd ${WRKSRC}/cgi-scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
127
128
	${MKDIR} ${STAGEDIR}${PREFIX}/gemini/gemserv-dist
129
	${INSTALL_DATA} ${WRKDIR}/index.gmi.sample ${STAGEDIR}${EXAMPLESDIR}
130
131
.include <bsd.port.mk>
(-)b/net/gemserv/distinfo (+157 lines)
Added Link Here
1
TIMESTAMP = 1620397069
2
SHA256 (gemserv-v0.4.5.tar.gz) = 7aeb5edc8af6ebefc2331aebc0c360798711c2fb16ee9cbde8c5c4f9502c491f
3
SIZE (gemserv-v0.4.5.tar.gz) = 16739
4
SHA256 (rust/crates/atty-0.2.14.tar.gz) = d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8
5
SIZE (rust/crates/atty-0.2.14.tar.gz) = 5470
6
SHA256 (rust/crates/autocfg-1.0.1.tar.gz) = cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a
7
SIZE (rust/crates/autocfg-1.0.1.tar.gz) = 12908
8
SHA256 (rust/crates/bitflags-1.2.1.tar.gz) = cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693
9
SIZE (rust/crates/bitflags-1.2.1.tar.gz) = 16745
10
SHA256 (rust/crates/bytes-0.5.6.tar.gz) = 0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38
11
SIZE (rust/crates/bytes-0.5.6.tar.gz) = 46291
12
SHA256 (rust/crates/cc-1.0.66.tar.gz) = 4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48
13
SIZE (rust/crates/cc-1.0.66.tar.gz) = 53454
14
SHA256 (rust/crates/cfg-if-0.1.10.tar.gz) = 4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822
15
SIZE (rust/crates/cfg-if-0.1.10.tar.gz) = 7933
16
SHA256 (rust/crates/cfg-if-1.0.0.tar.gz) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
17
SIZE (rust/crates/cfg-if-1.0.0.tar.gz) = 7934
18
SHA256 (rust/crates/chrono-0.4.19.tar.gz) = 670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73
19
SIZE (rust/crates/chrono-0.4.19.tar.gz) = 155663
20
SHA256 (rust/crates/colored-1.9.3.tar.gz) = f4ffc801dacf156c5854b9df4f425a626539c3a6ef7893cc0c5084a23f0b6c59
21
SIZE (rust/crates/colored-1.9.3.tar.gz) = 20062
22
SHA256 (rust/crates/foreign-types-0.3.2.tar.gz) = f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1
23
SIZE (rust/crates/foreign-types-0.3.2.tar.gz) = 7504
24
SHA256 (rust/crates/foreign-types-shared-0.1.1.tar.gz) = 00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b
25
SIZE (rust/crates/foreign-types-shared-0.1.1.tar.gz) = 5672
26
SHA256 (rust/crates/form_urlencoded-1.0.0.tar.gz) = ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00
27
SIZE (rust/crates/form_urlencoded-1.0.0.tar.gz) = 8412
28
SHA256 (rust/crates/futures-core-0.3.8.tar.gz) = 847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748
29
SIZE (rust/crates/futures-core-0.3.8.tar.gz) = 13857
30
SHA256 (rust/crates/futures-macro-0.3.8.tar.gz) = 77408a692f1f97bcc61dc001d752e00643408fbc922e4d634c655df50d595556
31
SIZE (rust/crates/futures-macro-0.3.8.tar.gz) = 9766
32
SHA256 (rust/crates/futures-task-0.3.8.tar.gz) = 7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d
33
SIZE (rust/crates/futures-task-0.3.8.tar.gz) = 11118
34
SHA256 (rust/crates/futures-util-0.3.8.tar.gz) = d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2
35
SIZE (rust/crates/futures-util-0.3.8.tar.gz) = 134020
36
SHA256 (rust/crates/idna-0.2.0.tar.gz) = 02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9
37
SIZE (rust/crates/idna-0.2.0.tar.gz) = 257203
38
SHA256 (rust/crates/iovec-0.1.4.tar.gz) = b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e
39
SIZE (rust/crates/iovec-0.1.4.tar.gz) = 8720
40
SHA256 (rust/crates/lazy_static-1.4.0.tar.gz) = e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646
41
SIZE (rust/crates/lazy_static-1.4.0.tar.gz) = 10443
42
SHA256 (rust/crates/libc-0.2.81.tar.gz) = 1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb
43
SIZE (rust/crates/libc-0.2.81.tar.gz) = 513105
44
SHA256 (rust/crates/log-0.4.11.tar.gz) = 4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b
45
SIZE (rust/crates/log-0.4.11.tar.gz) = 36276
46
SHA256 (rust/crates/matches-0.1.8.tar.gz) = 7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08
47
SIZE (rust/crates/matches-0.1.8.tar.gz) = 2216
48
SHA256 (rust/crates/memchr-2.3.4.tar.gz) = 0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525
49
SIZE (rust/crates/memchr-2.3.4.tar.gz) = 23077
50
SHA256 (rust/crates/mime-0.3.16.tar.gz) = 2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d
51
SIZE (rust/crates/mime-0.3.16.tar.gz) = 15206
52
SHA256 (rust/crates/mime_guess-2.0.3.tar.gz) = 2684d4c2e97d99848d30b324b00c8fcc7e5c897b7cbb5819b09e7c90e8baf212
53
SIZE (rust/crates/mime_guess-2.0.3.tar.gz) = 27437
54
SHA256 (rust/crates/mio-0.6.23.tar.gz) = 4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4
55
SIZE (rust/crates/mio-0.6.23.tar.gz) = 103554
56
SHA256 (rust/crates/mio-uds-0.6.8.tar.gz) = afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0
57
SIZE (rust/crates/mio-uds-0.6.8.tar.gz) = 11496
58
SHA256 (rust/crates/net2-0.2.37.tar.gz) = 391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae
59
SIZE (rust/crates/net2-0.2.37.tar.gz) = 21311
60
SHA256 (rust/crates/num-integer-0.1.44.tar.gz) = d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db
61
SIZE (rust/crates/num-integer-0.1.44.tar.gz) = 22216
62
SHA256 (rust/crates/num-traits-0.2.14.tar.gz) = 9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290
63
SIZE (rust/crates/num-traits-0.2.14.tar.gz) = 45476
64
SHA256 (rust/crates/num_cpus-1.13.0.tar.gz) = 05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3
65
SIZE (rust/crates/num_cpus-1.13.0.tar.gz) = 14704
66
SHA256 (rust/crates/once_cell-1.5.2.tar.gz) = 13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0
67
SIZE (rust/crates/once_cell-1.5.2.tar.gz) = 27660
68
SHA256 (rust/crates/openssl-0.10.32.tar.gz) = 038d43985d1ddca7a9900630d8cd031b56e4794eecc2e9ea39dd17aa04399a70
69
SIZE (rust/crates/openssl-0.10.32.tar.gz) = 199469
70
SHA256 (rust/crates/percent-encoding-2.1.0.tar.gz) = d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e
71
SIZE (rust/crates/percent-encoding-2.1.0.tar.gz) = 9748
72
SHA256 (rust/crates/pin-project-1.0.2.tar.gz) = 9ccc2237c2c489783abd8c4c80e5450fc0e98644555b1364da68cc29aa151ca7
73
SIZE (rust/crates/pin-project-1.0.2.tar.gz) = 54886
74
SHA256 (rust/crates/pin-project-internal-1.0.2.tar.gz) = f8e8d2bf0b23038a4424865103a4df472855692821aab4e4f5c3312d461d9e5f
75
SIZE (rust/crates/pin-project-internal-1.0.2.tar.gz) = 27379
76
SHA256 (rust/crates/pin-project-lite-0.1.11.tar.gz) = c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b
77
SIZE (rust/crates/pin-project-lite-0.1.11.tar.gz) = 25308
78
SHA256 (rust/crates/pin-utils-0.1.0.tar.gz) = 8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184
79
SIZE (rust/crates/pin-utils-0.1.0.tar.gz) = 7580
80
SHA256 (rust/crates/pkg-config-0.3.19.tar.gz) = 3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c
81
SIZE (rust/crates/pkg-config-0.3.19.tar.gz) = 15451
82
SHA256 (rust/crates/proc-macro-hack-0.5.19.tar.gz) = dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5
83
SIZE (rust/crates/proc-macro-hack-0.5.19.tar.gz) = 15556
84
SHA256 (rust/crates/proc-macro-nested-0.1.6.tar.gz) = eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a
85
SIZE (rust/crates/proc-macro-nested-0.1.6.tar.gz) = 6498
86
SHA256 (rust/crates/proc-macro2-1.0.24.tar.gz) = 1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71
87
SIZE (rust/crates/proc-macro2-1.0.24.tar.gz) = 37716
88
SHA256 (rust/crates/quote-1.0.8.tar.gz) = 991431c3519a3f36861882da93630ce66b52918dcf1b8e2fd66b397fc96f28df
89
SIZE (rust/crates/quote-1.0.8.tar.gz) = 24997
90
SHA256 (rust/crates/serde-1.0.118.tar.gz) = 06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800
91
SIZE (rust/crates/serde-1.0.118.tar.gz) = 74248
92
SHA256 (rust/crates/serde_derive-1.0.118.tar.gz) = c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df
93
SIZE (rust/crates/serde_derive-1.0.118.tar.gz) = 50589
94
SHA256 (rust/crates/signal-hook-registry-1.3.0.tar.gz) = 16f1d0fef1604ba8f7a073c7e701f213e056707210e9020af4528e0101ce11a6
95
SIZE (rust/crates/signal-hook-registry-1.3.0.tar.gz) = 17786
96
SHA256 (rust/crates/simple_logger-1.11.0.tar.gz) = cd57f17c093ead1d4a1499dc9acaafdd71240908d64775465543b8d9a9f1d198
97
SIZE (rust/crates/simple_logger-1.11.0.tar.gz) = 7194
98
SHA256 (rust/crates/slab-0.4.2.tar.gz) = c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8
99
SIZE (rust/crates/slab-0.4.2.tar.gz) = 10136
100
SHA256 (rust/crates/syn-1.0.55.tar.gz) = a571a711dddd09019ccc628e1b17fe87c59b09d513c06c026877aa708334f37a
101
SIZE (rust/crates/syn-1.0.55.tar.gz) = 229095
102
SHA256 (rust/crates/time-0.1.44.tar.gz) = 6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255
103
SIZE (rust/crates/time-0.1.44.tar.gz) = 28885
104
SHA256 (rust/crates/tinyvec-1.1.0.tar.gz) = ccf8dbc19eb42fba10e8feaaec282fb50e2c14b2726d6301dbfeed0f73306a6f
105
SIZE (rust/crates/tinyvec-1.1.0.tar.gz) = 39037
106
SHA256 (rust/crates/tinyvec_macros-0.1.0.tar.gz) = cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c
107
SIZE (rust/crates/tinyvec_macros-0.1.0.tar.gz) = 1817
108
SHA256 (rust/crates/tokio-0.2.24.tar.gz) = 099837d3464c16a808060bb3f02263b412f6fafcb5d01c533d309985fbeebe48
109
SIZE (rust/crates/tokio-0.2.24.tar.gz) = 413332
110
SHA256 (rust/crates/tokio-openssl-0.4.0.tar.gz) = 3c4b08c5f4208e699ede3df2520aca2e82401b2de33f45e96696a074480be594
111
SIZE (rust/crates/tokio-openssl-0.4.0.tar.gz) = 11790
112
SHA256 (rust/crates/toml-0.5.8.tar.gz) = a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa
113
SIZE (rust/crates/toml-0.5.8.tar.gz) = 54219
114
SHA256 (rust/crates/unicase-2.6.0.tar.gz) = 50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6
115
SIZE (rust/crates/unicase-2.6.0.tar.gz) = 23478
116
SHA256 (rust/crates/unicode-bidi-0.3.4.tar.gz) = 49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5
117
SIZE (rust/crates/unicode-bidi-0.3.4.tar.gz) = 32228
118
SHA256 (rust/crates/unicode-normalization-0.1.16.tar.gz) = a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606
119
SIZE (rust/crates/unicode-normalization-0.1.16.tar.gz) = 92805
120
SHA256 (rust/crates/unicode-xid-0.2.1.tar.gz) = f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564
121
SIZE (rust/crates/unicode-xid-0.2.1.tar.gz) = 14392
122
SHA256 (rust/crates/url-2.2.0.tar.gz) = 5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e
123
SIZE (rust/crates/url-2.2.0.tar.gz) = 42787
124
SHA256 (rust/crates/version_check-0.9.2.tar.gz) = b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed
125
SIZE (rust/crates/version_check-0.9.2.tar.gz) = 11979
126
SHA256 (rust/crates/winapi-0.2.8.tar.gz) = 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a
127
SIZE (rust/crates/winapi-0.2.8.tar.gz) = 455145
128
SHA256 (rust/crates/winapi-0.3.9.tar.gz) = 5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419
129
SIZE (rust/crates/winapi-0.3.9.tar.gz) = 1200382
130
SHA256 (rust/crates/mio-named-pipes-0.1.7.tar.gz) = 0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656
131
SIZE (rust/crates/mio-named-pipes-0.1.7.tar.gz) = 15140
132
SHA256 (rust/crates/openssl-sys-0.9.61.tar.gz) = 313752393519e876837e09e1fa183ddef0be7735868dced3196f4472d536277f
133
SIZE (rust/crates/openssl-sys-0.9.61.tar.gz) = 52010
134
SHA256 (rust/crates/hermit-abi-0.1.18.tar.gz) = 322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c
135
SIZE (rust/crates/hermit-abi-0.1.18.tar.gz) = 9936
136
SHA256 (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.tar.gz) = ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6
137
SIZE (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.tar.gz) = 2918815
138
SHA256 (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.tar.gz) = 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f
139
SIZE (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.tar.gz) = 2947998
140
SHA256 (rust/crates/fuchsia-zircon-0.3.3.tar.gz) = 2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82
141
SIZE (rust/crates/fuchsia-zircon-0.3.3.tar.gz) = 22565
142
SHA256 (rust/crates/fuchsia-zircon-sys-0.3.3.tar.gz) = 3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7
143
SIZE (rust/crates/fuchsia-zircon-sys-0.3.3.tar.gz) = 7191
144
SHA256 (rust/crates/kernel32-sys-0.2.2.tar.gz) = 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d
145
SIZE (rust/crates/kernel32-sys-0.2.2.tar.gz) = 24537
146
SHA256 (rust/crates/miow-0.2.2.tar.gz) = ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d
147
SIZE (rust/crates/miow-0.2.2.tar.gz) = 22044
148
SHA256 (rust/crates/miow-0.3.7.tar.gz) = b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21
149
SIZE (rust/crates/miow-0.3.7.tar.gz) = 24563
150
SHA256 (rust/crates/wasi-0.10.0+wasi-snapshot-preview1.tar.gz) = 1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f
151
SIZE (rust/crates/wasi-0.10.0+wasi-snapshot-preview1.tar.gz) = 26964
152
SHA256 (rust/crates/winapi-build-0.1.1.tar.gz) = 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc
153
SIZE (rust/crates/winapi-build-0.1.1.tar.gz) = 669
154
SHA256 (rust/crates/ws2_32-sys-0.2.1.tar.gz) = d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e
155
SIZE (rust/crates/ws2_32-sys-0.2.1.tar.gz) = 4697
156
SHA256 (rust/crates/vcpkg-0.2.12.tar.gz) = cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d
157
SIZE (rust/crates/vcpkg-0.2.12.tar.gz) = 15530
(-)b/net/gemserv/files/config.toml.sample.in (+21 lines)
Added Link Here
1
port = 1965
2
# use "::" for ipv6 and ipv4 or "0.0.0.0" for ipv4 only
3
host = "0.0.0.0"
4
# log is optional and server wide. It defaults to info if not set. Other levels
5
# are error, warn, and info. If error is set it will only show error. If warn
6
# is set it will show error and warn. Info shows all three.
7
log = "info"
8
9
# There must be at least 1 server tag if a client doesn't send sni the server
10
# will use this tag as its default.
11
# Server 1
12
[[server]]
13
hostname = "gemini.example.net"
14
dir = "/usr/local/gemini/gemserv-dist"
15
key = "/usr/local/etc/gemserv/key.pem"
16
cert = "/usr/local/etc/gemserv/cert.pem"
17
# index is optional but defaults to index.gemini. The server will serve files
18
# ending in gemini or gmi.
19
index = "index.gmi"
20
# lang is optional
21
lang = "en"
(-)b/net/gemserv/files/gemserv.in (+76 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: gemserv
4
# REQUIRE: NETWORKING
5
# KEYWORD: shutdown
6
#
7
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
8
# to enable this service:
9
#
10
# gemserv_enable (bool):		Set to NO by default.
11
#					Set it to YES to enable gemserv.
12
# gemserv_user (user):			Set user to run gemserv.
13
#					Default: _gemini
14
# gemserv_group (group):		Set group to run gemserv.
15
#					Default: _gemini
16
# gemserv_config (path):		Set to %%ETCDIR%%/config.toml
17
#					by default.
18
# gemserv_syslog_output_enable:		Set to enable syslog output.
19
#					Default: YES
20
# gemserv_syslog_output_tag:		Set syslog tag if syslog enabled.
21
#					Default: gemserv
22
# gemserv_syslog_output_priority:	Set syslog priority if syslog enabled.
23
#					Default: notice
24
# gemserv_syslog_output_facility:	Set syslog facility if syslog enabled.
25
#					Default: daemon
26
27
. /etc/rc.subr
28
29
name=gemserv
30
rcvar=gemserv_enable
31
32
load_rc_config $name
33
34
: ${gemserv_enable:=NO}
35
: ${gemserv_user:="%%GEMSERV_USER%%"}
36
: ${gemserv_group:="%%GEMSERV_GROUP%%"}
37
: ${gemserv_config="%%ETCDIR%%/config.toml"}
38
: ${gemserv_syslog_output_enable:="YES"}
39
: ${gemserv_syslog_output_tag:="gemserv"}
40
: ${gemserv_syslog_output_priority:="notice"}
41
: ${gemserv_syslog_output_facility:="daemon"}
42
43
44
if checkyesno gemserv_syslog_output_enable; then
45
	if [ -n "${gemserv_syslog_output_tag}" ]; then
46
		gemserv_syslog_output_flags="-T ${gemserv_syslog_output_tag}"
47
	else
48
		gemserv_syslog_output_flags="-T ${name}"
49
	fi
50
	if [ -n "${gemserv_syslog_output_priority}" ]; then
51
		gemserv_syslog_output_flags="${gemserv_syslog_output_flags} -s ${gemserv_syslog_output_priority}"
52
	fi
53
	if [ -n "${gemserv_syslog_output_facility}" ]; then
54
		gemserv_syslog_output_flags="${gemserv_syslog_output_flags} -l ${gemserv_syslog_output_facility}"
55
	fi
56
fi
57
58
pidfile=/var/run/gemserv.pid
59
command=/usr/sbin/daemon
60
procname=%%PREFIX%%/bin/gemserv
61
command_args="-p ${pidfile} ${gemserv_syslog_output_flags} ${procname} ${gemserv_config}"
62
63
start_precmd="gemserv_start_precmd"
64
stop_postcmd="gemserv_stop_postcmd"
65
66
gemserv_start_precmd() {
67
	if [ ! -e "${pidfile}" ]; then
68
		/usr/bin/install -m 0644 -o ${gemserv_user} -g ${gemserv_group} /dev/null "${pidfile}"
69
	fi
70
}
71
72
gemserv_stop_postcmd() {
73
        /bin/rm -f ${pidfile}
74
}
75
76
run_rc_command "$1"
(-)b/net/gemserv/files/index.gmi.sample.in (+3 lines)
Added Link Here
1
Hello world !
2
3
New gemini server running here.
(-)b/net/gemserv/pkg-descr (+10 lines)
Added Link Here
1
A gemini server written in Rust. It features:
2
3
 - Vhosts
4
 - CGI
5
 - User directories
6
 - Reverse proxy
7
 - Redirect
8
 - SCGI
9
10
WWW: https://git.sr.ht/~int80h/gemserv
(-)b/net/gemserv/pkg-message (+31 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
Gemserv gemini server is now installed.
5
6
README and UPDATING files from source distribution are installed in:
7
8
    /usr/local/share/doc/gemserv/
9
10
Example cgi-scripts are installed in:
11
12
    /usr/local/share/examples/gemserv/
13
14
Quick Start:
15
16
1) Check, edit server configuration in /usr/local/etc/gemserv/config.toml
17
   (see config.toml-dist for all configuration options)
18
2) Generate TLS key and cert, i.e. for domain "gemini.example.net":
19
20
    openssl req -newkey rsa:4096 -nodes -keyout /usr/local/etc/gemserv/key.pem  \
21
                         -x509 -days 36500 -out /usr/local/etc/gemserv/cert.pem \
22
      -subj "/C=FR/ST=FR/L=FR/O=example.net/OU=IT/CN=gemini.example.net/emailAddress=root@example.net"
23
24
    chown _gemini /usr/local/etc/gemserv/key.pem
25
26
3) sysrc gemserv_enable=YES
27
4) service gemserv start
28
5) tail /var/log/messages
29
EOM
30
}
31
]
(-)b/net/gemserv/pkg-plist (+12 lines)
Added Link Here
1
bin/gemserv
2
@dir %%ETCDIR%%
3
@sample %%ETCDIR%%/config.toml.sample
4
%%ETCDIR%%/config.toml-dist
5
%%DOCSDIR%%/README
6
%%DOCSDIR%%/UPDATING
7
%%EXAMPLESDIR%%/agena-cgi/Cargo.toml
8
%%EXAMPLESDIR%%/agena-cgi/src/main.rs
9
%%EXAMPLESDIR%%/scgi/scgi.pl
10
%%EXAMPLESDIR%%/scgi/scgi.py
11
@dir %%GEMSERV_DATADIR%%
12
@sample %%EXAMPLESDIR%%/index.gmi.sample %%GEMSERV_DATADIR%%/index.gmi

Return to bug 255684