commit: 6efc960f3fc9d50b651f4adaa4516079ec865156 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> AuthorDate: Thu Feb 24 15:59:37 2022 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Thu Feb 24 15:59:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6efc960f
net-misc/gemserv: Version bump 0.6.6 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> net-misc/gemserv/Manifest | 4 + net-misc/gemserv/gemserv-0.6.6.ebuild | 170 ++++++++++++++++++++++++++++++++++ 2 files changed, 174 insertions(+) diff --git a/net-misc/gemserv/Manifest b/net-misc/gemserv/Manifest index b9732bee0..ad82a3b28 100644 --- a/net-misc/gemserv/Manifest +++ b/net-misc/gemserv/Manifest @@ -1,3 +1,4 @@ +DIST aho-corasick-0.7.18.crate 112923 BLAKE2B 4f6947d1aacf89ccfab0592cdc55fa61ef09cea38231d3f758765dbce328a810c0b588be4ba96e81d64955379ee005722d22a7aec39caea6e72342245d7ca34f SHA512 7a23b16231a90d23ee60ad4c81bc225410599a4560d33d3a203138fc540c39cf1000100fed3aed40dcc371c3635656a3792545dca5dd1aefbde00d8774eebd00 DIST atty-0.2.14.crate 5470 BLAKE2B 2db856a9e898a430258f059aeaf7c844a153293e8856d90ac81f7d91a888c89198768ad5cb09303c23241fe85c560a55148fa56a303651a82b0edb895616bfab SHA512 d7b6c4b9a0f898d91ddbc41a5ee45bbf45d1d269508c8cc87ee3e3990500e41e0ec387afb1f3bc7db55bedac396dd86c6509f4bf9e5148d809c3802edcc5e1d9 DIST autocfg-1.0.1.crate 12908 BLAKE2B 40c53cab298e4f26634c3acff3ece6a3371188d91dbf377ed664eabedcde20536edaa93daf406618f37edde019f049a6e7b9a47f627344587dbd126bee2b5e3a SHA512 630b348acb98b012e97804e6325d03c89abc22f2157762c59144c04e6c733daf550bdc7f0fe0b9f3b50e15dae8c1c3c4bdfce3d805b02f0fc987311f5332419b DIST base64-0.13.0.crate 62070 BLAKE2B b957f65cdb1e28baeca0cefc92fa98be797409b7dabd15e0e88db6cdfb89779b662cba9f2270fbf3b7b66948fdc46c118b8040a78ab72049c48a928fa802bee0 SHA512 991a72999839daa232f508c5b24e7d3225e8a26db8d1d0e747881b115af9e408b92374e163b31e0b0d324c1c2e57e8e38d66861b61eb0a1dba87bb5871940151 @@ -21,6 +22,7 @@ DIST futures-task-0.3.19.crate 11894 BLAKE2B 16f39551920931f7535d65d0c787318d13d DIST futures-util-0.3.19.crate 149240 BLAKE2B e831c92e184b976494836b393824834c378f8eba4f32f7883a355fc7745e224984954fb9705f04e064b3aa33aa7c5c8e1a8e12688cbea9020e9aa8f444e130d5 SHA512 cdadde2949a496806fc432efcdb9f4555ca0482320017ea45c29d8dbde69bf9d4af7a6660d351bef3989c5ef905b1f011788506fa2e87d8b53b83cf54256a3ef 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 gemserv-0.6.6.tar.gz 23016 BLAKE2B 1cc989a23c59f87b2312513567efe7180d08cd632655380dfbb47a1dde15d2eb24fab769864f65340d1cb8604d7a2133f280cbc6735aca00f697d2ed71548a68 SHA512 9193f767feb44dd23a8ea2b093198a3139e7a08a6d8d10d3f5123b0292a7a3c32ed683e6226d1d808312158bee680a1966439930b32fd8dd1a48f02ec3777e4c 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 @@ -56,6 +58,8 @@ DIST pin-utils-0.1.0.crate 7580 BLAKE2B 457e1287202f16d1873b24bf4f1de1828300128c DIST proc-macro2-1.0.34.crate 41072 BLAKE2B 6b507e95802fd8dfca422deace25e328b1e4c5a9515c83ae55f8a34b1c1d34ce427afea7d7a748f582abf903245ed8c2b3f4175d78c8c9dc9f467c9805329d47 SHA512 960036a077c3869386ecb5c2019816adc70e9a9b32ceeacd4b14b39a91dbffe0b21764ead7237ab3aa553b26cb6732bbeccacbaf83c8dca9069b11b9a85dd1f8 DIST quote-1.0.10.crate 29960 BLAKE2B fbd4e3e0e0f452e64b30399fdfaef318cead505d05f0c61db61a7aa3cd5a3300220b4ba2656603f88bc0b535390ab4d0ec101a919ace1d442a3e979f08e8d48f SHA512 08613679b564ea7d750117d3a2907ba957d5d595bdfa8016344f99a232c72c6b08acb882dff45c34c9e4c8f93f879fb308b36125572722aac04fbc6bb0c666f0 DIST redox_syscall-0.2.10.crate 23582 BLAKE2B 7253dd96415e7b70df488c208d86c250c670b1245ac6573a59085faabbde9e33fabfacd233e7d737e365493db14008c180274b41ea0a4af5f6f98eec666a873f SHA512 ef012eb4bffe32119e50ecdbef4cc31f6e84a344e94f026484fe4e2c904f94053a8b6249fb6bd8ada31b3ecfbf0096085283bb68aeb62b1b01b57f35794aee92 +DIST regex-1.5.4.crate 236581 BLAKE2B 6efaf69d1a99dc3a2e04b2d1a96b036f631e9a0ad0d3aa57263febd47f7ec12765526f06f9c52a5497bf0d9b455f1d1b39e011adc4c28530c44b65c8a453efc0 SHA512 1a9208358c4ab87c19ec91bcf5c1e35dede46f3a0c0097061b7b53fa77a1e5ad38090d243aab274956f09c491e5fbe3b3b35a91db079b82a2dde2fd9fbad4c19 +DIST regex-syntax-0.6.25.crate 293293 BLAKE2B d5ca0dbc26b03c6a1818026f9a69cd226ec934e7c64094d0ebe843052b648617ffae7aa3a074f8da46d03c46996d8b547d8916576342000bd9711089b3e57d73 SHA512 a3d31f82aadc6be1796f76c03152ff24f37fe42d6ce27fb98e2f55ab102f86502bc37ccd563f6e0eba61aab20d002184c618517b678b3b93cb8f0497cc046ca5 DIST ring-0.16.20.crate 5082615 BLAKE2B 6011eb7148c2d2ab410e564a06604f4350e07ea030e4d7dcb30574b977f0b0c7e53e09f6e6dbb2d068cdf110262876c48dfaeeef1b691932a056fe149916d934 SHA512 d97d1b08eb796d4c107426ff2c015ab1f221612500c8a57fca8e3f064e8c0f5ae2a5e6071d013313cd9f4be8fed4ba03beae84bd446f56b2b2ca5d483c328191 DIST rusticata-macros-4.0.0.crate 12192 BLAKE2B b54fbd4f520b66b3d090d62b372e5604b20b3ebb0a1129e709200c32486ec5a154c765a43c093ce365449909eec9af74ba23a98cebb183416caf20cb234ef4cf SHA512 62fe39ca2ace7dbec2744ac78012bc107fbf751240c681f1943db44db3a738d6926e6890cb7098fdc089bcea621b22d40bceda4d4a9400d5e18c974ba5bd19bc DIST rustls-0.20.2.crate 238289 BLAKE2B 9e707a3ab7bbe07b4bc200cac805e7a723e03b461adaf4ced74a1d3b432c9647850189f69112a382d3063cee51aab377df50ca7835aaf1039bae8ed4b8c25ee0 SHA512 18e245c0cf96fb9caa6b09be69fc8be0e580a2d0521055a4d4011a506c022be62e3c8103708b2aea8f3dc77274c97cbedd71e8affda9a3b260335d24d062ca4e diff --git a/net-misc/gemserv/gemserv-0.6.6.ebuild b/net-misc/gemserv/gemserv-0.6.6.ebuild new file mode 100644 index 000000000..738a467df --- /dev/null +++ b/net-misc/gemserv/gemserv-0.6.6.ebuild @@ -0,0 +1,170 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + aho-corasick-0.7.18 + 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 + regex-1.5.4 + regex-syntax-0.6.25 + 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" +}