aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny (tastytea) Gutbrod <gentoo@tastytea.de>2020-07-11 21:50:48 +0200
committerRonny (tastytea) Gutbrod <gentoo@tastytea.de>2020-07-11 21:50:48 +0200
commita3236336a5e76237790f21275519c49931d1041c (patch)
treecda3ba6dcdcf0490913ddc72569f8233774e379c /net-misc
parentgui-apps/nwg-launchers: New package (diff)
downloadguru-a3236336a5e76237790f21275519c49931d1041c.tar.gz
guru-a3236336a5e76237790f21275519c49931d1041c.tar.bz2
guru-a3236336a5e76237790f21275519c49931d1041c.zip
net-misc/gemserv: Version bump 0.4.4.
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/gemserv/Manifest2
-rw-r--r--net-misc/gemserv/gemserv-0.4.4.ebuild149
2 files changed, 151 insertions, 0 deletions
diff --git a/net-misc/gemserv/Manifest b/net-misc/gemserv/Manifest
index 827bcf16..9760b45d 100644
--- a/net-misc/gemserv/Manifest
+++ b/net-misc/gemserv/Manifest
@@ -8,6 +8,7 @@ DIST cc-1.0.54.crate 51972 BLAKE2B f3760987ea93e71254939a42bc795cfd68b994494c2d5
DIST cc-1.0.57.crate 52820 BLAKE2B e43bc7e17b0b4bb09b2e15ae1bd9b8244470cb26e431bdc4c228c0e0e78b51f2bab92e31872ca744b83459e8d76d83bac9764048a100122a065120fce236fca2 SHA512 2613adbc4383d722f227789d190f93032907c03e93dd2f281e516ccbb782a739f166239a79478ec270682da6e28d1116ae68ea7eeb0c2ea85a6c0ef9128bb0bb
DIST cfg-if-0.1.10.crate 7933 BLAKE2B 063a96ed176f34f788666b40adc483d147fc011dee941ab60569ddd0e57502b5dd06ed71090f4e14ce005d06e240500a286f74652615e9d068fba649610d8cf8 SHA512 9d22616bfb4a75770a828a0a3cddac6787297a5fdc53eb17e25811cc94de717f2de8bd66d53c5d65ba1c83d8892aefee5ae758cf56a1ef0a0c3120f70b244339
DIST chrono-0.4.11.crate 139811 BLAKE2B d327f6be0a890ed74f2a2330777dcefbcf87e0291e47ef9c63aea46050f38c89a9b2e7a4716ac92202fab66aedc98ae81e090f1921a1aa51fa7ba18cb1cf24a9 SHA512 bedb698ae2994fc6fcf858b86a122cdaccd150996eb3e4313f876599cfa2180c2f687cca78ba30860365e04b75911fcdb19b5930fc155d1c17f06ec8197d3da9
+DIST chrono-0.4.12.crate 142736 BLAKE2B 66268675e6201dc66f8851efb5da6b57f313350b7fe1b211b5360f69adf59517fb00a15c2303564130ed79b1e182191722a8cef7454dea022bbd2b16d78d3a17 SHA512 58d205fab70802903c1a689d8942f148fdd971385c29bbbf7087956bf97baa579cffb44212f5a31a1e934892a1e913ad666a8540dc331dc8f870f9ad6d53421e
DIST chrono-0.4.13.crate 144286 BLAKE2B 6ff59ebcd58761852a38fe490a1b2c407d1ca07b046a0980bd1ead9973091de0518e49f4777c8b132e4f82e68b51b4a3624d90e2e09fbc5214df7f2a8a8b9e00 SHA512 02933602df1964df8e91dbab8d1b5baead493ec73d1da4a4e090eeabb3e37b818f0b800a580c13a14aae9c20df83c9f66a713bed02800f5022b2999881dc2f23
DIST colored-1.9.3.crate 20062 BLAKE2B 43bea2edb35df0382def6b0d37a55ce0214732bb152eddafae0c23fae05c5f4c6f9f3b88c6f271c778d80990eedc52e02a46289abdf2b1e0ba692bd83d9913b6 SHA512 72a77360148b960662d62aa63313e235c155c761948ecc67d92f244a99fefc92ad133e1820634358130db841095027cd99b64a79aa6fa41a279e0d5d505aacd6
DIST foreign-types-0.3.2.crate 7504 BLAKE2B 520818b702d990d296ecd31a8646850202509ccfa18edd0e1b260289619a6c351e758f317ec0824bd76eccb209b6f087057c25f1bd01a47897715013dd834867 SHA512 bf27b8243ed482c202d120383374f19ff09422535e24b9c1aebccc66529bf300ca17b8bbc76d67f98ac092e614497afe3add9dc68aa69c93074df05762f91232
@@ -20,6 +21,7 @@ DIST futures-task-0.3.5.crate 11030 BLAKE2B 272de7f0a923bab04071b705b3b396830225
DIST futures-util-0.3.5.crate 132197 BLAKE2B 07cf5f757cd9bc663266b18025efe200fc911c6d829bca139db4c5dcddce5f5e5dbe62968c6c7b328a63a5f23d0a232087e162f926716029ff52c24923bb7c53 SHA512 f71bd29e113fc8aa3795904b3130dd6f09076e6a19e52e34702973b6428a1834d300fdd3c48259e7f27fc1252dcefc80a4b104962fe7e6e4e536322d0aa9c5a2
DIST gemserv-0.4.1.tar.gz 10721 BLAKE2B 7a8d23e0250480d56698150185235544cc7587f0ab652b6d885b627299dc4b7762e8705bbeeaf9ad94a1ce71a1e70822b31dc445201a07662c7594bf43927f95 SHA512 c4d81b08bc2ccea142d895acc4cf1ec77b15675c8fce9461edd53f81193a207476705115585d262cc629512311f90cb9328095dcebdae516e65149efa34f25c6
DIST gemserv-0.4.2.tar.gz 11034 BLAKE2B f8a2f8492f0db9268e15809b98a19df6ab085239beee35fc6e8fae9bd51042c644e10297b45768ad37336c485cf0d58e107f79b7afe00c8c601d35f05fea3ccd SHA512 7c6f18d2d1260903f2c63ec27080172f81357c349988644f7f846f8aa27ea45bc6a68fbe5808870b8d2a7eee56d5568998b9189914f74ffef0cf52b7521fca9f
+DIST gemserv-0.4.4.tar.gz 17027 BLAKE2B 6c31df8bd505b67ea060af4a4121ff3c1ae1d9e75a8d0c8260e2a788e65d31fc04ff5133157e064cdde42bd196a6b37407920847c52a45aa8133d6a0977e756e SHA512 d73237d43b59fb44bbf037171ca65400a6b0c8f4196ffa368d2f08ce2afe5c200fbcc452c2f8e6157d035981ec045ba79bae29f1ec6fb2a7c1fd69b49c6c966d
DIST generator-0.6.21.crate 28473 BLAKE2B 5f87df0528b8930cb7621d419b944301761d4a2f488f723e26697fc9e7f5acd3a2d6e138148ef734fd2865519958e19a492ccc0aa08fb189e7f1277c302f06c9 SHA512 d6da62cf4d37d22b250b8d27c364e870e22b9ff040dbafb5a3697244da7852ad6f4430b66cfb13f285728da5b180e048a918445022c1268ae393b0c6134ed256
DIST hermit-abi-0.1.14.crate 9556 BLAKE2B 03b27536c3a8ce98d26321439ea6d0b14785fa4dc1666f2bfc6142f4f79d003393aae4fa0e351f6eb3cee6719bdf14e32fc6e07f5aa6f75916cdd20d3c1f5be4 SHA512 a3b5eb8462f47d9a0d7342d45ded3c22578cc19bca05ea0856daf04f263d88b0ca1a4f4c1daec14708282dbc39efcc11e100a3a7fc2bdfa73522ce5575ee7b8d
DIST hermit-abi-0.1.15.crate 9597 BLAKE2B 012fdcd6ed09e4bfc9256d524648b0e7f65e9bc8dc6351d04249c492a0b5e836c529791f79fd144b9f09ae55462c034b9a3fbcff5b2abb40a7c78f7f8d78f64a SHA512 f81f6a87e0a182b5e49a2edf60f47243b7cbb116df5aa6a3354f1e230d4030bb5697ad4eb9abb6203ff66c1cfac1fc35b7d7e76dedc276767124ea4f41f97535
diff --git a/net-misc/gemserv/gemserv-0.4.4.ebuild b/net-misc/gemserv/gemserv-0.4.4.ebuild
new file mode 100644
index 00000000..993dbeca
--- /dev/null
+++ b/net-misc/gemserv/gemserv-0.4.4.ebuild
@@ -0,0 +1,149 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CRATES="
+ arc-swap-0.4.7
+ atty-0.2.14
+ autocfg-1.0.0
+ bitflags-1.2.1
+ bytes-0.5.5
+ cc-1.0.57
+ cfg-if-0.1.10
+ chrono-0.4.12
+ colored-1.9.3
+ foreign-types-0.3.2
+ foreign-types-shared-0.1.1
+ fuchsia-zircon-0.3.3
+ fuchsia-zircon-sys-0.3.3
+ futures-core-0.3.5
+ futures-macro-0.3.5
+ futures-task-0.3.5
+ futures-util-0.3.5
+ generator-0.6.21
+ hermit-abi-0.1.14
+ idna-0.2.0
+ iovec-0.1.4
+ kernel32-sys-0.2.2
+ lazy_static-1.4.0
+ libc-0.2.71
+ log-0.4.8
+ loom-0.3.4
+ matches-0.1.8
+ memchr-2.3.3
+ mime-0.3.16
+ mime_guess-2.0.3
+ mio-0.6.22
+ mio-named-pipes-0.1.7
+ mio-uds-0.6.8
+ miow-0.2.1
+ miow-0.3.5
+ net2-0.2.34
+ num-integer-0.1.43
+ num-traits-0.2.12
+ num_cpus-1.13.0
+ once_cell-1.4.0
+ openssl-0.10.30
+ openssl-sys-0.9.58
+ percent-encoding-2.1.0
+ pin-project-0.4.22
+ pin-project-internal-0.4.22
+ pin-project-lite-0.1.7
+ pin-utils-0.1.0
+ pkg-config-0.3.17
+ proc-macro-hack-0.5.16
+ proc-macro-nested-0.1.6
+ proc-macro2-1.0.18
+ quote-1.0.7
+ redox_syscall-0.1.56
+ rustc_version-0.2.3
+ scoped-tls-0.1.2
+ semver-0.9.0
+ semver-parser-0.7.0
+ serde-1.0.114
+ serde_derive-1.0.114
+ signal-hook-registry-1.2.0
+ simple_logger-1.6.0
+ slab-0.4.2
+ socket2-0.3.12
+ syn-1.0.33
+ time-0.1.43
+ tinyvec-0.3.3
+ tokio-0.2.21
+ tokio-openssl-0.4.0
+ toml-0.5.6
+ unicase-2.6.0
+ unicode-bidi-0.3.4
+ unicode-normalization-0.1.13
+ unicode-xid-0.2.1
+ url-2.1.1
+ vcpkg-0.2.10
+ version_check-0.9.2
+ winapi-0.2.8
+ winapi-0.3.9
+ winapi-build-0.1.1
+ winapi-i686-pc-windows-gnu-0.4.0
+ winapi-x86_64-pc-windows-gnu-0.4.0
+ ws2_32-sys-0.2.1
+"
+
+inherit cargo systemd
+
+DESCRIPTION="A gemini Server written in rust"
+HOMEPAGE="
+ gemini://80h.dev/projects/gemserv/
+ https://git.sr.ht/~int80h/gemserv
+"
+SRC_URI="
+ https://git.sr.ht/~int80h/gemserv/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+"
+
+LICENSE="Apache-2.0 BSD MIT MPL-2.0 ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-libs/openssl-1.1.0g
+ acct-user/gemini
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+ # Fix paths in systemd unit.
+ sed -i "s@/path/to/bin /path/to/config@${EPREFIX}/usr/bin/gemserv ${EPREFIX}/etc/gemserv/config.toml@" \
+ init-scripts/gemserv.service || die
+
+ # Fix paths in config.
+ sed -Ei 's@/path/to/(key|cert)@/etc/gemserv/\1.pem@' config.toml || die
+ sed -Ei 's@/path/to/serv@/var/gemini@' config.toml || die
+
+ default
+}
+
+src_unpack() {
+ unpack "${P}.tar.gz"
+ cargo_src_unpack
+}
+
+src_install() {
+ cargo_src_install
+
+ einstalldocs
+
+ diropts --group=gemini
+ insinto etc/gemserv
+ newins config.toml config.toml.example
+
+ systemd_dounit init-scripts/gemserv.service
+ newinitd "init-scripts/${PN}.openrc" "${PN}"
+}
+
+pkg_postinst() {
+ einfo "You can generate yourself a TLS certificate and key with:"
+ einfo "openssl req -x509 -newkey rsa:4096 -sha256 -days 3660 -nodes \\"
+ einfo " -keyout /etc/gemserv/key.pem -out /etc/gemserv/cert.pem"
+}