From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-misc/gmid/
Date: Tue, 9 Apr 2024 11:25:20 +0000 (UTC) [thread overview]
Message-ID: <1712625679.923fd0f1045a936e5ba27048237b66f9213bf186.julien@gentoo> (raw)
commit: 923fd0f1045a936e5ba27048237b66f9213bf186
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Apr 9 00:47:42 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Tue Apr 9 01:21:19 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=923fd0f1
net-misc/gmid: add 2.0.2
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
net-misc/gmid/Manifest | 2 +
net-misc/gmid/gmid-2.0.2.ebuild | 111 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 113 insertions(+)
diff --git a/net-misc/gmid/Manifest b/net-misc/gmid/Manifest
index dad4fe7335..665681059c 100644
--- a/net-misc/gmid/Manifest
+++ b/net-misc/gmid/Manifest
@@ -1,2 +1,4 @@
DIST gmid-2.0.1.sha256.sig 239 BLAKE2B b118bd39fc529a05112f405589ce2d1c44d4436b19edecb388709ff2cfe4f49ec15506082da6e8a9aecba7cd9ed2d308aafef5432f1692145d6eabe3b5e53683 SHA512 83eff56ffec7ed55338dfe1e48d670779008c523634c86050a63f333ed328541dcaeb1a0d3fccb01bdf2f6d3bbea20c2898bfbd115ee7590203c04bd24baa064
DIST gmid-2.0.1.tar.gz 182989 BLAKE2B 4973711ee94babd0b0f470cf84f460343c39867753858817b7262d8ca3947e79b2e20fe004627e8acf00728a3b43db4bfddf446115acca8eadf190dcc6ef533f SHA512 38d29775968c40fe174b8ead3393c3cd77dd535dae18d3051eb9b98b248a56929d84909c07c3405ddc6035e7d1fc66ea856a2a1dd96e53ac8d30fd231c764478
+DIST gmid-2.0.2.sha256.sig 239 BLAKE2B e7f6e6c0f21e10b5bc08b5b72747036ab2b7f1ce820bbf45b3bb4e589d83a6fa1d49e20b95acf3148dcf20608272d48ff2de99ea7fae5b2071a0b7c14539b0cc SHA512 482d8673b140c1a3d0b1a4bc9fd11d74d1bdf968e5d69682c911ff1ea587cfb4e66bafb5817f5286d570f48774d1e13c98939f35afdb69be2f81868dc7560df2
+DIST gmid-2.0.2.tar.gz 182867 BLAKE2B edceadfdccbd2e1c90ec4059062f3fc9feaa0c8d5efede5e51a917604eb7ec7537eff25e1a53223fc0fb13645c7fd3be7e3d4545ea14c7cafc1b0f409c949616 SHA512 dd5ab9b1eb7d1ea82fb935099d05f4e606c9e4e112baf132dad72abe5469b2ade2a4a650c5bad7675ca46601721dd5f0a8ebb91b356af90aed9e11c487fd2f7d
diff --git a/net-misc/gmid/gmid-2.0.2.ebuild b/net-misc/gmid/gmid-2.0.2.ebuild
new file mode 100644
index 0000000000..bcd826ad4e
--- /dev/null
+++ b/net-misc/gmid/gmid-2.0.2.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+SSL_DAYS=36500
+SSL_CERT_MANDATORY=1
+VERIFY_SIG_METHOD="signify"
+inherit edo ssl-cert systemd toolchain-funcs verify-sig
+
+DESCRIPTION="Simple and secure Gemini server"
+HOMEPAGE="https://gmid.omarpolo.com"
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://git.omarpolo.com/${PN} https://github.com/omar-polo/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://ftp.omarpolo.com/${P}.tar.gz
+ verify-sig? ( https://ftp.omarpolo.com/${P}.sha256.sig )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD ISC MIT"
+SLOT="0"
+IUSE="seccomp test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ acct-user/gemini
+ dev-libs/libevent:=
+ dev-libs/openssl:=
+ !elibc_Darwin? ( dev-libs/libbsd )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ app-alternatives/yacc
+ seccomp? ( sys-kernel/linux-headers )
+"
+if [[ ${PV} != 9999 ]]; then
+ BDEPEND+="verify-sig? ( sec-keys/signify-keys-gmid:$(ver_cut 1-2) )"
+fi
+
+VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/${PN}-$(ver_cut 1-2).pub"
+
+DOCS=( README.md ChangeLog contrib/README )
+
+# not an autoconf configure script
+QA_CONFIG_IMPL_DECL_SKIP=( "*" )
+
+src_unpack() {
+ if [[ ${PV} == 9999 ]]; then
+ git-r3_src_unpack
+ else
+ if use verify-sig; then
+ # Too many levels of symbolic links
+ cp "${DISTDIR}"/${P}.{sha256.sig,tar.gz} "${WORKDIR}" || die
+ cd "${WORKDIR}" || die
+ verify-sig_verify_signed_checksums \
+ ${P}.sha256.sig sha256 ${P}.tar.gz
+ fi
+ default
+ fi
+}
+
+src_configure() {
+ local conf_args
+ tc-export CC
+
+ # note: not an autoconf configure script
+ conf_args=(
+ --prefix="${EPREFIX}"/usr
+ --mandir="${EPREFIX}"/usr/share/man
+ --sysconfdir="${EPREFIX}"/etc
+ --with-libtls=bundled
+ $(use_enable seccomp sandbox)
+ )
+ edo ./configure "${conf_args[@]}"
+
+ if use seccomp && has usersandbox ${FEATURES}; then
+ export SKIP_RUNTIME_TESTS=1
+ fi
+}
+
+src_install() {
+ default
+
+ insinto /etc/gmid
+ newins "${FILESDIR}"/gmid.conf-r1 gmid.conf
+
+ insinto /usr/share/vim/vimfiles
+ doins -r contrib/vim/*
+
+ systemd_dounit "${FILESDIR}"/gmid.service
+ newinitd "${FILESDIR}"/gmid.initd gmid
+ newconfd "${FILESDIR}"/gmid.confd gmid
+
+ keepdir /var/gemini/localhost
+}
+
+pkg_postinst() {
+ if [[ ! -f "${EROOT}"/etc/ssl/${PN}/${PN}.key ]]; then
+ install_cert /etc/ssl/${PN}/${PN}
+ chown gemini:gemini "${EROOT}"/etc/ssl/${PN}/${PN}.{crt,csr,key,pem}
+ fi
+
+ einfo "This gemini server can be run as a user with zero configuration.\n"
+ einfo "In order to use it with the init service you will need to generate a"
+ einfo "self-signed TLS certificate and a key and set up the configuration"
+ einfo "file (see man 1 gmid for details)."
+}
next reply other threads:[~2024-04-09 11:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-09 11:25 Julien Roy [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-21 9:51 [gentoo-commits] repo/proj/guru:master commit in: net-misc/gmid/ David Roman
2024-09-07 13:38 David Roman
2024-08-27 9:57 David Roman
2024-08-09 12:46 David Roman
2024-02-01 22:00 David Roman
2024-01-15 15:46 David Roman
2022-12-14 16:46 Florian Schmaus
2022-12-14 16:46 Florian Schmaus
2022-07-07 7:33 Haelwenn Monnier
2022-02-20 8:46 Florian Schmaus
2022-01-02 18:55 Andrew Ammerlaan
2022-01-02 15:04 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-01-02 15:04 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-09-25 17:14 Arthur Zamarin
2021-09-20 13:38 Arthur Zamarin
2021-07-13 9:09 Andrew Ammerlaan
2021-07-09 2:20 Jian Lin
2021-07-08 11:07 Florian Schmaus
2021-05-03 9:36 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-05-03 10:11 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-03-30 8:53 Andrew Ammerlaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1712625679.923fd0f1045a936e5ba27048237b66f9213bf186.julien@gentoo \
--to=julien@jroy.ca \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox