public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: net-misc/gmid/, net-misc/gmid/files/
@ 2021-03-29 18:40 Anna Vyalkova
  0 siblings, 0 replies; 3+ messages in thread
From: Anna Vyalkova @ 2021-03-29 18:40 UTC (permalink / raw
  To: gentoo-commits

commit:     391278d559abf05ee79afa855fd04e0b28373d3c
Author:     Anna Vyalkova <cyber <AT> sysrq <DOT> in>
AuthorDate: Mon Mar 29 18:33:01 2021 +0000
Commit:     Anna Vyalkova <cybertailor <AT> gmail <DOT> com>
CommitDate: Mon Mar 29 18:39:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=391278d5

net-misc/gmid: new package

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>

 net-misc/gmid/Manifest         |  1 +
 net-misc/gmid/files/gmid.confd | 13 ++++++++
 net-misc/gmid/files/gmid.initd | 53 ++++++++++++++++++++++++++++++++
 net-misc/gmid/gmid-1.6.ebuild  | 69 ++++++++++++++++++++++++++++++++++++++++++
 net-misc/gmid/gmid-9999.ebuild | 69 ++++++++++++++++++++++++++++++++++++++++++
 net-misc/gmid/metadata.xml     | 15 +++++++++
 6 files changed, 220 insertions(+)

diff --git a/net-misc/gmid/Manifest b/net-misc/gmid/Manifest
new file mode 100644
index 000000000..00cf99da9
--- /dev/null
+++ b/net-misc/gmid/Manifest
@@ -0,0 +1 @@
+DIST gmid-1.6.tar.gz 59402 BLAKE2B 1a13ae3f598a406e7920ad3a4f73cb230d70fe3bf4a1017d8d196ab80fdc0ffcf339ad79c64de93dc69d06e294132d714ad8ea1a5248dc69377e8d088f772d6c SHA512 cf118ac3b067b23d480006bccf36218ab0bf91d778092855a01706782fb0c68252157615d92d143d29deb8331422ef1263228b9eb53dd30e64a480b17c48af7a

diff --git a/net-misc/gmid/files/gmid.confd b/net-misc/gmid/files/gmid.confd
new file mode 100644
index 000000000..62027f6a4
--- /dev/null
+++ b/net-misc/gmid/files/gmid.confd
@@ -0,0 +1,13 @@
+# /etc/conf.d/gmid
+
+# Configuration file
+#GMID_CONFIGFILE="/etc/gmid/gmid.conf"
+
+# PID file
+#GMID_PIDFILE="/var/run/gmid.pid"
+
+# User to run gmid as
+#GMID_USER="gemini"
+
+# Group to run gmid as
+#GMID_GROUP="gemini"

diff --git a/net-misc/gmid/files/gmid.initd b/net-misc/gmid/files/gmid.initd
new file mode 100644
index 000000000..dfe3b0009
--- /dev/null
+++ b/net-misc/gmid/files/gmid.initd
@@ -0,0 +1,53 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+extra_commands="configtest"
+extra_started_commands="reload"
+
+description="Simple and secure Gemini server"
+description_configtest="Run gmid's internal config check."
+description_reload="Reload the gmid configuration without losing connections."
+
+GMID_CONFIGFILE=${GMID_CONFIGFILE:-/etc/gmid/gmid.conf}
+
+command="/usr/bin/gmid"
+command_args="-c \"${GMID_CONFIGFILE}\""
+pidfile=${GMID_PIDFILE:-/var/run/gmid.pid}
+user=${GMID_USER:-gemini}
+group=${GMID_GROUP:-gemini}
+
+depend() {
+	need net
+	use dns logger netmount
+}
+
+start_pre() {
+	if [ "${RC_CMD}" != "restart" ]; then
+		configtest || return 1
+	fi
+}
+
+stop_pre() {
+	if [ "${RC_CMD}" = "restart" ]; then
+		configtest || return 1
+	fi
+}
+
+stop_post() {
+	rm -f ${pidfile}
+}
+
+reload() {
+	configtest || return 1
+	ebegin "Refreshing gmid's configuration"
+	start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
+	eend $? "Failed to reload gmid"
+}
+
+configtest() {
+	ebegin "Checking gmid's configuration"
+	${command} -c "${GMID_CONFIGFILE}" -n
+
+	eend $? "failed, please correct errors in the config file"
+}

diff --git a/net-misc/gmid/gmid-1.6.ebuild b/net-misc/gmid/gmid-1.6.ebuild
new file mode 100644
index 000000000..7f845df6f
--- /dev/null
+++ b/net-misc/gmid/gmid-1.6.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="simple and secure Gemini server"
+HOMEPAGE="
+	gemini://gemini.omarpolo.com/pages/gmid.gmi
+	https://www.omarpolo.com/pages/gmid.html
+"
+
+if [[ ${PV} == "9999" ]] ; then
+	inherit git-r3
+	EGIT_REPO_URI="https://git.omarpolo.com/${PN}"
+	KEYWORDS=""
+else
+	SRC_URI="https://git.omarpolo.com/${PN}/snapshot/${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="ISC"
+SLOT="0"
+IUSE="libressl"
+
+DEPEND="acct-user/gemini
+	dev-libs/libevent
+	!libressl? ( dev-libs/libretls )
+	libressl? ( dev-libs/libressl )"
+BDEPEND="sys-devel/flex
+	virtual/yacc"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md ChangeLog )
+
+src_prepare() {
+	default
+
+	# QA Notice: command not found
+	# remove `etags` from the "all" target
+	sed \
+		-e "s/^\(all: .*\) TAGS \(.*\)$/\1 \2/" \
+		-i Makefile || die
+}
+
+src_configure() {
+	# note: not an autoconf configure script
+	./configure \
+		CC="$(tc-getCC)" \
+		PREFIX="${EPREFIX}"/usr/share \
+		BINDIR="${EPREFIX}"/usr/bin \
+		CFLAGS="${CFLAGS}" \
+		LDFLAGS="${LDFLAGS} -ltls -lssl -lcrypto -levent" || die
+}
+
+src_install() {
+	default
+
+	newinitd "${FILESDIR}"/gmid.initd gmid
+	newconfd "${FILESDIR}"/gmid.confd gmid
+}
+
+pkg_postinst() {
+	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 key and set up the configuration"
+	einfo "file (see man 1 gmid for details)."
+}

diff --git a/net-misc/gmid/gmid-9999.ebuild b/net-misc/gmid/gmid-9999.ebuild
new file mode 100644
index 000000000..7f845df6f
--- /dev/null
+++ b/net-misc/gmid/gmid-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="simple and secure Gemini server"
+HOMEPAGE="
+	gemini://gemini.omarpolo.com/pages/gmid.gmi
+	https://www.omarpolo.com/pages/gmid.html
+"
+
+if [[ ${PV} == "9999" ]] ; then
+	inherit git-r3
+	EGIT_REPO_URI="https://git.omarpolo.com/${PN}"
+	KEYWORDS=""
+else
+	SRC_URI="https://git.omarpolo.com/${PN}/snapshot/${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="ISC"
+SLOT="0"
+IUSE="libressl"
+
+DEPEND="acct-user/gemini
+	dev-libs/libevent
+	!libressl? ( dev-libs/libretls )
+	libressl? ( dev-libs/libressl )"
+BDEPEND="sys-devel/flex
+	virtual/yacc"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md ChangeLog )
+
+src_prepare() {
+	default
+
+	# QA Notice: command not found
+	# remove `etags` from the "all" target
+	sed \
+		-e "s/^\(all: .*\) TAGS \(.*\)$/\1 \2/" \
+		-i Makefile || die
+}
+
+src_configure() {
+	# note: not an autoconf configure script
+	./configure \
+		CC="$(tc-getCC)" \
+		PREFIX="${EPREFIX}"/usr/share \
+		BINDIR="${EPREFIX}"/usr/bin \
+		CFLAGS="${CFLAGS}" \
+		LDFLAGS="${LDFLAGS} -ltls -lssl -lcrypto -levent" || die
+}
+
+src_install() {
+	default
+
+	newinitd "${FILESDIR}"/gmid.initd gmid
+	newconfd "${FILESDIR}"/gmid.confd gmid
+}
+
+pkg_postinst() {
+	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 key and set up the configuration"
+	einfo "file (see man 1 gmid for details)."
+}

diff --git a/net-misc/gmid/metadata.xml b/net-misc/gmid/metadata.xml
new file mode 100644
index 000000000..2f806f847
--- /dev/null
+++ b/net-misc/gmid/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<upstream>
+		<maintainer>
+			<name>Omar Polo</name>
+			<email>op@omarpolo.com</email>
+		</maintainer>
+		<changelog>https://git.omarpolo.com/gmid/tree/ChangeLog</changelog>
+	</upstream>
+	<maintainer type="person">
+		<email>cyber@sysrq.in</email>
+		<name>Anna</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: net-misc/gmid/, net-misc/gmid/files/
@ 2022-02-03  8:36 Anna Vyalkova
  0 siblings, 0 replies; 3+ messages in thread
From: Anna Vyalkova @ 2022-02-03  8:36 UTC (permalink / raw
  To: gentoo-commits

commit:     b5e6e07976edfe078377eff92ac13e41fc675b75
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Feb  3 08:08:28 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Feb  3 08:35:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b5e6e079

net-misc/gmid: add 1.8, drop 1.7.4

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-misc/gmid/Manifest                             |  3 +-
 net-misc/gmid/files/gmid.service                   | 21 ++++++++++
 .../gmid/{gmid-1.7.4.ebuild => gmid-1.8.ebuild}    | 48 ++++++++++++----------
 .../gmid/{gmid-1.7.4.ebuild => gmid-9999.ebuild}   | 48 ++++++++++++----------
 4 files changed, 77 insertions(+), 43 deletions(-)

diff --git a/net-misc/gmid/Manifest b/net-misc/gmid/Manifest
index 4f673292d..52d03e95c 100644
--- a/net-misc/gmid/Manifest
+++ b/net-misc/gmid/Manifest
@@ -1,3 +1,4 @@
-DIST gmid-1.7.4.tar.gz 81988 BLAKE2B 4dc2ec0e89aeb0b2c627927f35a9996f3d91c91b0266f351c6b64f1ba52e0f425cc48add1bdee6f5434f2a486ddd76db8c9e574ac9cbaea3e2a34b16bf0ee9ad SHA512 3dd2cae5597d1b88eec8f2f3b8e60ccc3e2034cbaa30382d982cf0435f1a243643d40c5d00aa7d1c7abae9c9f6751b38f7d6741ec08f7ee280bc2db99263d19e
 DIST gmid-1.7.5.sha.sig 708 BLAKE2B ae5c1ee80e7994c9d8b1b630c01b9dea121f08d2d8efd2a6ccfa129badaa680da037c2a0b955497ba81224e0faf2ca95a9ce11076aadf4012321648bdd5cde81 SHA512 b2ca1974188199eae71aab4d7cc740b7101adc7b3ebe36aa5690aa638e03e028f6f8cd6798fda2586543e2ca71981d95d0921fa58775dd8d66898650d9299578
 DIST gmid-1.7.5.tar.gz 82100 BLAKE2B 15d5ff725019193dd0394ad7d0f641d036064355118c37980c899b8c84b226eff2ebd5c8f0b17d5575e44f26d93b9492ef48efac6d7d93c4f1972dfb965e4e3d SHA512 eb7951f93746fe133291ac4136837b07d768997241fe913650ecd75d98153479e417c34a4e687ca30dc08f904dcc738d16834910ca21b100e3a220d7ed715507
+DIST gmid-1.8.sha.sig 888 BLAKE2B 283d9996dc279591bc6537fd3be5666b55ab8e81ae0284d7de867e7d34560cf51502fcd26126f294600785d57f94ac316b545c3bb3788d0db57397ccfebb0524 SHA512 dbb08dbd890c869e09dc9bd528efd6912fb40e8f18bf07601d64c935155b51e7ec8d7722c68b816262f5df78babd0e18e1f98b9df4835960a519595aed744e1d
+DIST gmid-1.8.tar.gz 141057 BLAKE2B 299514df69c35ea0b5ac8e83261025a3a34a419998e4c3833c4f0f8abff6e526222b3c5b0ae69dffd5b2605efe9c0c27ef870fc8eee34f6059095ca7f18706a6 SHA512 ba1c755909004b8399a2323be6a5325fe5a712c0c845630cadabd83d1fb9dd636b4ac077df5b644c04b4701f1b8a92ca02126dcb5c82019ce5a46beefdc42dd5

diff --git a/net-misc/gmid/files/gmid.service b/net-misc/gmid/files/gmid.service
new file mode 100644
index 000000000..9c5d14cc8
--- /dev/null
+++ b/net-misc/gmid/files/gmid.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=The gmid Gemini server
+Documentation=https://gmid.omarpolo.com/
+After=network-online.target syslog.target 
+Wants=network-online.target
+
+[Service]
+Type=simple
+User=gemini
+Group=gemini
+ExecStart=/usr/bin/gmid -f -c /etc/gmid.conf
+ExecStop=/bin/kill -TERM $MAINPID
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+RestartSec=30
+StandardOutput=journal
+StandardError=inherit
+SyslogIdentifier=gmid
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-misc/gmid/gmid-1.7.4.ebuild b/net-misc/gmid/gmid-1.8.ebuild
similarity index 66%
copy from net-misc/gmid/gmid-1.7.4.ebuild
copy to net-misc/gmid/gmid-1.8.ebuild
index 10cb49b3a..7b929d7cc 100644
--- a/net-misc/gmid/gmid-1.7.4.ebuild
+++ b/net-misc/gmid/gmid-1.8.ebuild
@@ -1,11 +1,12 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 SSL_DAYS=36500
 SSL_CERT_MANDATORY=1
-inherit ssl-cert systemd toolchain-funcs
+VERIFY_SIG_METHOD="signify"
+inherit ssl-cert systemd toolchain-funcs verify-sig
 
 DESCRIPTION="Simple and secure Gemini server"
 HOMEPAGE="https://gmid.omarpolo.com"
@@ -14,8 +15,9 @@ 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://git.omarpolo.com/${PN}/snapshot/${P}.tar.gz"
-	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+	SRC_URI="https://github.com/omar-polo/${PN}/releases/download/${PV}/${P}.tar.gz
+		verify-sig? ( https://github.com/omar-polo/${PN}/releases/download/${PV}/SHA256.sig -> ${P}.sha.sig )"
+	KEYWORDS="~amd64 ~x86"
 fi
 
 LICENSE="BSD ISC MIT"
@@ -28,24 +30,35 @@ DEPEND="
 	acct-user/gemini
 	dev-libs/imsg-compat
 	dev-libs/libevent:=
-	dev-libs/libretls
+	dev-libs/libretls:=
 	dev-libs/openssl:=
 "
+RDEPEND="${DEPEND}"
 BDEPEND="
 	virtual/pkgconfig
 	virtual/yacc
 "
-RDEPEND="${DEPEND}"
+if [[ ${PV} != 9999 ]]; then
+	BDEPEND+="verify-sig? ( sec-keys/signify-keys-gmid:$(ver_cut 1-2) )"
+fi
 
-DOCS=( README.md ChangeLog contrib/README )
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/signify-keys/${PN}-$(ver_cut 1-2).pub"
 
-src_prepare() {
-	default
+DOCS=( README.md ChangeLog contrib/README )
 
-	sed \
-		-e "s:/usr/local/bin/gmid:/usr/bin/gmid:" \
-		-e "s:/etc/gmid.conf:/etc/gmid/gmid.conf:" \
-		-i contrib/gmid.service || die
+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}.{sha.sig,tar.gz} "${WORKDIR}" || die
+			cd "${WORKDIR}" || die
+			verify-sig_verify_signed_checksums \
+				${P}.sha.sig sha256 ${P}.tar.gz
+		fi
+		default
+	fi
 }
 
 src_configure() {
@@ -66,13 +79,6 @@ src_configure() {
 	fi
 }
 
-src_compile() {
-	emake gmid
-	if use test ; then
-		emake -C regress gg data puny-test fcgi-test
-	fi
-}
-
 src_test() {
 	emake regress
 }
@@ -86,7 +92,7 @@ src_install() {
 	insinto /usr/share/vim/vimfiles
 	doins -r contrib/vim/*
 
-	systemd_dounit contrib/gmid.service
+	systemd_dounit "${FILESDIR}"/gmid.service
 	newinitd "${FILESDIR}"/gmid.initd gmid
 	newconfd "${FILESDIR}"/gmid.confd gmid
 

diff --git a/net-misc/gmid/gmid-1.7.4.ebuild b/net-misc/gmid/gmid-9999.ebuild
similarity index 66%
rename from net-misc/gmid/gmid-1.7.4.ebuild
rename to net-misc/gmid/gmid-9999.ebuild
index 10cb49b3a..7b929d7cc 100644
--- a/net-misc/gmid/gmid-1.7.4.ebuild
+++ b/net-misc/gmid/gmid-9999.ebuild
@@ -1,11 +1,12 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 SSL_DAYS=36500
 SSL_CERT_MANDATORY=1
-inherit ssl-cert systemd toolchain-funcs
+VERIFY_SIG_METHOD="signify"
+inherit ssl-cert systemd toolchain-funcs verify-sig
 
 DESCRIPTION="Simple and secure Gemini server"
 HOMEPAGE="https://gmid.omarpolo.com"
@@ -14,8 +15,9 @@ 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://git.omarpolo.com/${PN}/snapshot/${P}.tar.gz"
-	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+	SRC_URI="https://github.com/omar-polo/${PN}/releases/download/${PV}/${P}.tar.gz
+		verify-sig? ( https://github.com/omar-polo/${PN}/releases/download/${PV}/SHA256.sig -> ${P}.sha.sig )"
+	KEYWORDS="~amd64 ~x86"
 fi
 
 LICENSE="BSD ISC MIT"
@@ -28,24 +30,35 @@ DEPEND="
 	acct-user/gemini
 	dev-libs/imsg-compat
 	dev-libs/libevent:=
-	dev-libs/libretls
+	dev-libs/libretls:=
 	dev-libs/openssl:=
 "
+RDEPEND="${DEPEND}"
 BDEPEND="
 	virtual/pkgconfig
 	virtual/yacc
 "
-RDEPEND="${DEPEND}"
+if [[ ${PV} != 9999 ]]; then
+	BDEPEND+="verify-sig? ( sec-keys/signify-keys-gmid:$(ver_cut 1-2) )"
+fi
 
-DOCS=( README.md ChangeLog contrib/README )
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/signify-keys/${PN}-$(ver_cut 1-2).pub"
 
-src_prepare() {
-	default
+DOCS=( README.md ChangeLog contrib/README )
 
-	sed \
-		-e "s:/usr/local/bin/gmid:/usr/bin/gmid:" \
-		-e "s:/etc/gmid.conf:/etc/gmid/gmid.conf:" \
-		-i contrib/gmid.service || die
+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}.{sha.sig,tar.gz} "${WORKDIR}" || die
+			cd "${WORKDIR}" || die
+			verify-sig_verify_signed_checksums \
+				${P}.sha.sig sha256 ${P}.tar.gz
+		fi
+		default
+	fi
 }
 
 src_configure() {
@@ -66,13 +79,6 @@ src_configure() {
 	fi
 }
 
-src_compile() {
-	emake gmid
-	if use test ; then
-		emake -C regress gg data puny-test fcgi-test
-	fi
-}
-
 src_test() {
 	emake regress
 }
@@ -86,7 +92,7 @@ src_install() {
 	insinto /usr/share/vim/vimfiles
 	doins -r contrib/vim/*
 
-	systemd_dounit contrib/gmid.service
+	systemd_dounit "${FILESDIR}"/gmid.service
 	newinitd "${FILESDIR}"/gmid.initd gmid
 	newconfd "${FILESDIR}"/gmid.confd gmid
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: net-misc/gmid/, net-misc/gmid/files/
@ 2024-06-30  4:10 Anna Vyalkova
  0 siblings, 0 replies; 3+ messages in thread
From: Anna Vyalkova @ 2024-06-30  4:10 UTC (permalink / raw
  To: gentoo-commits

commit:     f628459808e45b38fd67c026ebbcffd09d545402
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sun Jun 30 03:08:48 2024 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun Jun 30 03:08:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f6284598

net-misc/gmid: add 2.0.5, drop 2.0.1

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-misc/gmid/Manifest                                |  4 ++--
 net-misc/gmid/files/gmid.service-r1                   | 19 +++++++++++++++++++
 .../gmid/{gmid-2.0.1-r1.ebuild => gmid-2.0.5.ebuild}  |  6 +++---
 net-misc/gmid/gmid-9999.ebuild                        |  2 +-
 4 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/net-misc/gmid/Manifest b/net-misc/gmid/Manifest
index 665681059..2aaab105f 100644
--- a/net-misc/gmid/Manifest
+++ b/net-misc/gmid/Manifest
@@ -1,4 +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
+DIST gmid-2.0.5.sha256.sig 239 BLAKE2B 0f2c2a59fe887dcb04c59e234850b3fd798b377e2e244382d54105af88a9cb08f694168fb227105b2f5e9ea187fb8b39b9d5a7d0dfc46c3343b8c7d5d6354722 SHA512 d18daaa6067b701dacf7c1ed0ebd9e0741b45834db4df2b50bf4d40b41f7c86f741dab0e6951231105f8f6930f6f31c6fd4be2f9ace3f5a08d4ee1f2a6a4f1e5
+DIST gmid-2.0.5.tar.gz 192727 BLAKE2B bfec3f7521fc305973b3ee4d5125ee70b537002236ffbb4e2f18a6aa1ab355d995df970f52108b1266a903aecfc6d97dc96a81872ae4b96851a518cda81f9b44 SHA512 011cdd3fc940b1fd5c88c7496a531e56aba5c4ebf9825b87c3daf7c64dd88e21a7d94556bf5c1a5a34e926e52f13e91e0c8cb60278dfac8ad71fe9197320c022

diff --git a/net-misc/gmid/files/gmid.service-r1 b/net-misc/gmid/files/gmid.service-r1
new file mode 100644
index 000000000..f406e9770
--- /dev/null
+++ b/net-misc/gmid/files/gmid.service-r1
@@ -0,0 +1,19 @@
+[Unit]
+Description=The gmid Gemini server
+Documentation=https://gmid.omarpolo.com/
+After=network-online.target syslog.target 
+Wants=network-online.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/gmid -f -c /etc/gmid.conf
+ExecStop=/bin/kill -TERM $MAINPID
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-failure
+RestartSec=30
+StandardOutput=journal
+StandardError=inherit
+SyslogIdentifier=gmid
+
+[Install]
+WantedBy=multi-user.target

diff --git a/net-misc/gmid/gmid-2.0.1-r1.ebuild b/net-misc/gmid/gmid-2.0.5.ebuild
similarity index 92%
rename from net-misc/gmid/gmid-2.0.1-r1.ebuild
rename to net-misc/gmid/gmid-2.0.5.ebuild
index 603af799a..dc33ba2c3 100644
--- a/net-misc/gmid/gmid-2.0.1-r1.ebuild
+++ b/net-misc/gmid/gmid-2.0.5.ebuild
@@ -15,8 +15,8 @@ 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://github.com/omar-polo/${PN}/releases/download/${PV}/${P}.tar.gz
-		verify-sig? ( https://github.com/omar-polo/${PN}/releases/download/${PV}/${P}.sha256.sig )"
+	SRC_URI="https://ftp.omarpolo.com/${P}.tar.gz
+		verify-sig? ( https://ftp.omarpolo.com/${P}.sha256.sig )"
 	KEYWORDS="~amd64 ~x86"
 fi
 
@@ -91,7 +91,7 @@ src_install() {
 	insinto /usr/share/vim/vimfiles
 	doins -r contrib/vim/*
 
-	systemd_dounit "${FILESDIR}"/gmid.service
+	systemd_newunit "${FILESDIR}"/gmid.service-r1 gmid.service
 	newinitd "${FILESDIR}"/gmid.initd gmid
 	newconfd "${FILESDIR}"/gmid.confd gmid
 

diff --git a/net-misc/gmid/gmid-9999.ebuild b/net-misc/gmid/gmid-9999.ebuild
index 603af799a..f1e9877d2 100644
--- a/net-misc/gmid/gmid-9999.ebuild
+++ b/net-misc/gmid/gmid-9999.ebuild
@@ -91,7 +91,7 @@ src_install() {
 	insinto /usr/share/vim/vimfiles
 	doins -r contrib/vim/*
 
-	systemd_dounit "${FILESDIR}"/gmid.service
+	systemd_newunit "${FILESDIR}"/gmid.service-r1 gmid.service
 	newinitd "${FILESDIR}"/gmid.initd gmid
 	newconfd "${FILESDIR}"/gmid.confd gmid
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-30  4:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03  8:36 [gentoo-commits] repo/proj/guru:dev commit in: net-misc/gmid/, net-misc/gmid/files/ Anna Vyalkova
  -- strict thread matches above, loose matches on Subject: below --
2024-06-30  4:10 Anna Vyalkova
2021-03-29 18:40 Anna Vyalkova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox