Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_C9 / gmid
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               gmid
4 VERSION=                1.8.6
5 KEYWORDS=               net
6 VARIANTS=               standard
7 SDESC[standard]=        Simple and secure Gemini server
8 HOMEPAGE=               https://gmid.omarpolo.com/
9 CONTACT=                Michael_Reim[kraileth@elderlinux.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/omar-polo:gmid:1.8.6
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         man
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 BUILD_DEPENDS=          libevent:dev:standard
23 BUILDRUN_DEPENDS=       libevent:primary:standard
24
25 USERS=                  _gmid
26 GROUPS=                 _gmid
27 USERGROUP_SPKG=         primary
28
29 USES=                   pkgconfig ssl
30
31 LICENSE=                ISCL:primary
32 LICENSE_FILE=           ISCL:{{WRKSRC}}/LICENSE
33 LICENSE_SCHEME=         solo
34
35 FPC_EQUIVALENT=         net/gmid
36
37 MUST_CONFIGURE=         yes
38 CONFIGURE_ARGS=         --prefix={{PREFIX}}
39                         MANDIR={{PREFIX}}/share/man
40
41 RC_SUBR=                gmid:primary
42 SUB_FILES=              gmid.conf.sample
43
44 post-stage:
45         ${INSTALL_DATA} ${WRKDIR}/gmid.conf.sample \
46                 ${STAGEDIR}${PREFIX}/etc/
47
48 [FILE:416:descriptions/desc.primary]
49 Gmid is an Internet server that uses the Gemini protocol. Some of its 
50 features are:
51
52 * Sandboxed by default on OpenBSD, FreeBSD and Linux
53 * Ability to reload the configuration on-the-fly without losing connections
54 * Punycode and IRI support
55 * Reverse proxying
56 * Support for CGI and FastCGI
57 * Virtual hosts and per-location rules
58 * Low memory footprint
59 * Event-based asynchronous I/O model
60 * Rich configuration file
61
62
63 [FILE:106:distinfo]
64 1edf81d7368455247701f4c5658df7173dd150adbb78bf137d48ece17e67bc1e       151110 omar-polo-gmid-1.8.6.tar.gz
65
66
67 [FILE:44:manifests/plist.primary]
68 @sample etc/gmid.conf.sample
69 bin/
70  gg
71  gmid
72
73
74 [FILE:66:manifests/plist.man]
75 share/man/man1/
76  gg.1.gz
77  gmid.1.gz
78 share/man/man5/gmid.conf.5.gz
79
80
81 [FILE:698:files/gmid.conf.sample.in]
82 # drop privileges
83 user "_gmid"
84
85 # it's a good idea to enable chroot, but
86 # beware that can make CGI scripting harder
87 chroot "/var/gemini"
88
89 # An example of a server block:
90 server "localhost" {
91         # set the directory to serve; it's relative to the
92         # chroot (if enabled)
93         root "/localhost"
94
95         # Set self-signed TLS cert and key.  It's better to keep
96         # the keys outside the chroot.
97         #
98         # You should generate them manually, for example:
99         # openssl req -x509 -newkey rsa:4096 -nodes             \
100         #       -out %%PREFIX%%/etc/ssl/gmid/localhost.crt      \
101         #       -keyout %%PREFIX%%/etc/ssl/gmid/localhost.key   \
102         #       -subj "/CN=localhost"
103         cert "%%PREFIX%%/etc/ssl/gmid/localhost.crt"
104         key  "%%PREFIX%%/etc/ssl/gmid/localhost.key"
105 }
106
107
108 [FILE:773:files/gmid.in]
109 #!/bin/sh
110 #
111
112 # PROVIDE: gmid
113 # REQUIRE: SERVERS
114 # KEYWORD: shutdown
115
116 #
117 # Add the following lines to /etc/rc.conf to enable gmid:
118 # gmid_enable (bool):   Set it to "YES" to enable gmid
119 #                       Default is "NO".
120 # gmid_config (string): Path to gmid configuration file.
121 #                       Default is "%%PREFIX%%/etc/gmid.conf"
122 #
123 #
124
125 . /etc/rc.subr
126
127 name="gmid"
128 rcvar="gmid_enable"
129
130 start_precmd="gmid_checkconfig"
131 configtest_cmd="gmid_checkconfig"
132 extra_commands="configtest"
133
134 : ${gmid_enable:="NO"}
135 : ${gmid_config:="%%PREFIX%%/etc/gmid.conf"}
136
137 load_rc_config $name
138
139 command="%%PREFIX%%/bin/${name}"
140 gmid_flags="-c ${gmid_config}"
141
142 required_files="${gmid_config}"
143
144 gmid_checkconfig()
145 {
146         echo "Performing sanity check on gmid configuration:"
147         eval ${command} -n ${gmid_flags}
148 }
149
150 run_rc_command "$1"
151