aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-04-09 05:47:42 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-04-09 06:21:19 +0500
commit923fd0f1045a936e5ba27048237b66f9213bf186 (patch)
tree268e7561bbb41d643ba9274f86fe9b9ba95df44d /net-misc
parentnet-p2p/gridcoin: new package, add 5.4.7.0 (diff)
downloadguru-923fd0f1045a936e5ba27048237b66f9213bf186.tar.gz
guru-923fd0f1045a936e5ba27048237b66f9213bf186.tar.bz2
guru-923fd0f1045a936e5ba27048237b66f9213bf186.zip
net-misc/gmid: add 2.0.2
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/gmid/Manifest2
-rw-r--r--net-misc/gmid/gmid-2.0.2.ebuild111
2 files changed, 113 insertions, 0 deletions
diff --git a/net-misc/gmid/Manifest b/net-misc/gmid/Manifest
index dad4fe733..665681059 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 000000000..bcd826ad4
--- /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)."
+}