From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 30E7815808C for ; Sun, 13 Feb 2022 20:24:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BACFE092A; Sun, 13 Feb 2022 20:24:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4572FE092A for ; Sun, 13 Feb 2022 20:24:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 349AB342F0D for ; Sun, 13 Feb 2022 20:24:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CD392DC for ; Sun, 13 Feb 2022 20:24:42 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1644673344.06d2a643fd88e82365d7cae09962318b4592b06d.arthurzam@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: net-misc/gemserv/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-misc/gemserv/Manifest net-misc/gemserv/gemserv-0.6.5.ebuild X-VCS-Directories: net-misc/gemserv/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 06d2a643fd88e82365d7cae09962318b4592b06d X-VCS-Branch: master Date: Sun, 13 Feb 2022 20:24:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2036f964-9b0b-490f-9874-74adaaa745d8 X-Archives-Hash: 6e943ced802e252dcddb3b46146bd9a2 commit: 06d2a643fd88e82365d7cae09962318b4592b06d Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Sat Feb 12 13:42:24 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Feb 12 13:42:24 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=06d2a643 net-misc/gemserv: Version bump 0.6.5 Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> net-misc/gemserv/Manifest | 1 + net-misc/gemserv/gemserv-0.6.5.ebuild | 167 ++++++++++++++++++++++++++++++++++ 2 files changed, 168 insertions(+) diff --git a/net-misc/gemserv/Manifest b/net-misc/gemserv/Manifest index 0939f7948..f809278c7 100644 --- a/net-misc/gemserv/Manifest +++ b/net-misc/gemserv/Manifest @@ -26,6 +26,7 @@ DIST futures-util-0.3.19.crate 149240 BLAKE2B e831c92e184b976494836b393824834c37 DIST gemserv-0.6.0.tar.gz 21027 BLAKE2B 35b17c7f6c4486518a605ef6207dcf9331b6205b52d3b4b81db9708b393f7a183ec360bd6e78b990ff24da4b53872c4d09d55817aa7c735c91a4a7b44589d38f SHA512 2eb34320c2c1e1b4784562f1390e079748449012cfa0cc1bdcb193182eda56cb58b1cf7bffb2fe7a798d4df074890417cdd47fa670788abe13ddd038e4a14263 DIST gemserv-0.6.1.tar.gz 21154 BLAKE2B a5d8c535e5c46b0f72d2ec1496b7bcf6a0e23910042fa9321c39dafa0236f0fde75492006f3c34e6dabab2ff180a6a775d00da079583626fd21d6219bbfc0e7e SHA512 4e5e1c4f3c3ab5b291ab4f6ce92e1509be77bd1b553baa7496996277fd4cd73d2024858e72341c8f49e2bb204c780a3748c624d2ea41fa3ab95b61645fefc743 DIST gemserv-0.6.3.tar.gz 22430 BLAKE2B e4759041ef77d85af7fcae99e913c81eccad45290f95421c740aa0862a929755444f5e21d07e5ade58cd5eb60da57541e9b23951194ba9ff1784a48138d02842 SHA512 c56bee15fbd14b980c603ab6689f9279453b04e38549146f4e79591c2bd7a843b797b77f8427dfd8e8669c82629fde56acea8b2a442d39154f0dbb02db580a41 +DIST gemserv-0.6.5.tar.gz 22567 BLAKE2B 601bd49802bddf66d8c7180a0c1da6b4fdd7686887d278f7d07e15ec4daf317b248d30c4cba38b27b7202e633eb484dd1e0cf5f1fde76bb686ca9685bd2c80f6 SHA512 a14c07bcb0fb060721591390b92858f1dc29af0f803d4f7ea147bd54a3ddac2d2539e97e48bb04ec13bbf0542368403319c450308a8d83f97b3305bf3e4eec8e DIST generic-array-0.14.4.crate 28916 BLAKE2B 41adcb738bb316d17967e029a829dcf7377427977309b010c2f2e365f16306b44991eb5f65698782497f614b129b14cad11bfeba2ae19b45efd117114492517e SHA512 34ac71fee2cd50ff786d39b4abacd9e090a8598baf4dc36ba5fecfb7171cd8e4f58e5360cbb0baf02a87eea26b7dca85b35555b82bbefe06635d2fd38f7b8b40 DIST half-1.7.1.crate 36168 BLAKE2B 632fefc24ad4b44c64ef6d3da745392ac016580baa5ba898c45bf41598ebb9ea86bb11c041b8813df73aaa755e323cc762b9e95b834aff7118d0d77e1834e7d5 SHA512 cd678b9277fd909083b67eb86c1fe92f464c92e1932246c6793dd835069aac5af6b9dc16bfbdcfbcdd75d3a641bc1f2240effd83dff6068a41b6c54d3739f73e DIST hermit-abi-0.1.19.crate 9979 BLAKE2B 801e8052b85341cca388ada9db4b06bb1bd7b64474185b2ad06c0256b9e597639bd3dd4ba0053ea010f922e53969a4ab47b90d451fd9b94c8f2324055d151ea1 SHA512 1c877fcd562b15d2de9c151fd6c5f3ea4bf48abcb799e6139a180ffad5d64b632f0000d5707bbd92ff23a0e5f349157b9e0f5be8b50f03680b0fa47315dbb78a diff --git a/net-misc/gemserv/gemserv-0.6.5.ebuild b/net-misc/gemserv/gemserv-0.6.5.ebuild new file mode 100644 index 000000000..d88f401b3 --- /dev/null +++ b/net-misc/gemserv/gemserv-0.6.5.ebuild @@ -0,0 +1,167 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + atty-0.2.14 + autocfg-1.0.1 + base64-0.13.0 + bitflags-1.2.1 + block-buffer-0.9.0 + bumpalo-3.8.0 + bytes-1.1.0 + cc-1.0.72 + cfg-if-1.0.0 + chrono-0.4.19 + colored-1.9.3 + cpufeatures-0.2.1 + data-encoding-2.3.2 + der-oid-macro-0.5.0 + der-parser-6.0.0 + digest-0.9.0 + form_urlencoded-1.0.1 + futures-core-0.3.19 + futures-macro-0.3.19 + futures-task-0.3.19 + futures-util-0.3.19 + generic-array-0.14.4 + half-1.7.1 + hermit-abi-0.1.19 + idna-0.2.3 + instant-0.1.12 + itoa-0.4.8 + js-sys-0.3.55 + lazy_static-1.4.0 + libc-0.2.112 + lock_api-0.4.5 + log-0.4.14 + matches-0.1.9 + memchr-2.4.1 + mime-0.3.16 + minimal-lexical-0.2.1 + mio-0.7.14 + miow-0.3.7 + new_mime_guess-3.0.2 + nom-7.1.0 + ntapi-0.3.6 + num-bigint-0.4.3 + num-integer-0.1.44 + num-traits-0.2.14 + num_cpus-1.13.1 + oid-registry-0.2.0 + once_cell-1.9.0 + opaque-debug-0.3.0 + parking_lot-0.11.2 + parking_lot_core-0.8.5 + percent-encoding-2.1.0 + pin-project-lite-0.2.7 + pin-utils-0.1.0 + proc-macro2-1.0.34 + quote-1.0.10 + redox_syscall-0.2.10 + ring-0.16.20 + rusticata-macros-4.0.0 + rustls-0.20.2 + rustls-pemfile-0.2.1 + scopeguard-1.1.0 + sct-0.7.0 + serde-1.0.132 + serde_derive-1.0.132 + sha2-0.9.8 + signal-hook-registry-1.4.0 + simple_logger-1.16.0 + slab-0.4.5 + smallvec-1.7.0 + spin-0.5.2 + syn-1.0.83 + thiserror-1.0.30 + thiserror-impl-1.0.30 + time-0.3.5 + time-macros-0.2.3 + tinyvec-1.5.1 + tinyvec_macros-0.1.0 + tokio-1.15.0 + tokio-macros-1.7.0 + tokio-rustls-0.23.2 + toml-0.5.8 + typenum-1.14.0 + unicase-2.6.0 + unicode-bidi-0.3.7 + unicode-normalization-0.1.19 + unicode-xid-0.2.2 + untrusted-0.7.1 + url-2.2.2 + version_check-0.9.3 + wasm-bindgen-0.2.78 + wasm-bindgen-backend-0.2.78 + wasm-bindgen-macro-0.2.78 + wasm-bindgen-macro-support-0.2.78 + wasm-bindgen-shared-0.2.78 + web-sys-0.3.55 + webpki-0.22.0 + winapi-0.3.9 + winapi-i686-pc-windows-gnu-0.4.0 + winapi-x86_64-pc-windows-gnu-0.4.0 + x509-parser-0.12.0 +" + +inherit cargo systemd + +DESCRIPTION="A gemini Server written in rust" +HOMEPAGE="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}) +" + +# openssl and SSLeay come from the “ring” crate. +LICENSE="Apache-2.0 BSD ISC MIT MPL-2.0 openssl SSLeay ZLIB" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-user/gemini +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}-v${PV}" + +# Rust packages ignore CFLAGS and LDFLAGS so let's silence the QA warnings. +QA_FLAGS_IGNORED="usr/bin/gemserv" + +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" +}