public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/soju/
Date: Wed, 26 Apr 2023 04:03:34 +0000 (UTC)	[thread overview]
Message-ID: <1682481766.18560e34f64657ce43582592ad68c00d18dab16a.sam@gentoo> (raw)

commit:     18560e34f64657ce43582592ad68c00d18dab16a
Author:     Alfred Persson Forsberg <cat <AT> catcream <DOT> org>
AuthorDate: Mon Apr 10 14:45:11 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 26 04:02:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18560e34

net-irc/soju: add sqlite and moderncsqlite USE flags

Signed-off-by: Alfred Persson Forsberg <cat <AT> catcream.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-irc/soju/metadata.xml         |  4 +++
 net-irc/soju/soju-0.6.0-r1.ebuild | 68 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/net-irc/soju/metadata.xml b/net-irc/soju/metadata.xml
index df600cfb1ced..7f2f852dba69 100644
--- a/net-irc/soju/metadata.xml
+++ b/net-irc/soju/metadata.xml
@@ -12,4 +12,8 @@
     <upstream>
       <remote-id type="sourcehut">~emersion/soju</remote-id>
     </upstream>
+    <use>
+      <flag name="moderncsqlite">Use moderncsqlite, a cgo-free port of
+      SQLite</flag>
+    </use>
 </pkgmetadata>

diff --git a/net-irc/soju/soju-0.6.0-r1.ebuild b/net-irc/soju/soju-0.6.0-r1.ebuild
new file mode 100644
index 000000000000..f95f3178e06c
--- /dev/null
+++ b/net-irc/soju/soju-0.6.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="soju is a user-friendly IRC bouncer"
+HOMEPAGE="https://soju.im/"
+SRC_URI="https://git.sr.ht/~emersion/${PN}/refs/download/v${PV}/${P}.tar.gz"
+SRC_URI+=" https://github.com/alfredfo/${PN}-deps/raw/master/${P}-deps.tar.xz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv"
+IUSE="moderncsqlite +sqlite pam"
+REQUIRED_USE="?? ( moderncsqlite sqlite )"
+
+BDEPEND="
+	app-text/scdoc
+"
+RDEPEND="
+	acct-user/soju
+	acct-group/soju
+	sqlite? ( dev-db/sqlite:3 )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.6.0-fix-dup-upstream-connections.patch
+)
+
+src_compile() {
+	if use sqlite; then
+		GOFLAGS+=" -tags=libsqlite3"
+	elif use moderncsqlite; then
+		GOFLAGS+=" -tags=moderncsqlite"
+	else
+		GOFLAGS+=" -tags=nosqlite"
+	fi
+	use pam && GOFLAGS+=" -tags=pam"
+
+	ego build ${GOFLAGS} ./cmd/soju
+	ego build ${GOFLAGS} ./cmd/sojudb
+	ego build ${GOFLAGS} ./cmd/sojuctl
+
+	scdoc <doc/soju.1.scd >doc/soju.1 || die
+}
+
+src_install() {
+	dobin soju
+	dobin sojudb
+	dobin sojuctl
+
+	doman doc/soju.1
+	systemd_dounit contrib/soju.service
+	keepdir /etc/soju
+	insinto /etc/soju
+	newins config.in config
+	newinitd "${FILESDIR}"/soju.initd soju
+	einstalldocs
+}
+
+pkg_postinst() {
+	elog "${PN} requires a user database for authenticating clients."
+	elog "As the soju user, create a database using:"
+	elog "$ sojudb -config ${EROOT}/etc/soju/config create-user <username> [-admin]"
+}


             reply	other threads:[~2023-04-26  4:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-26  4:03 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-30 15:11 [gentoo-commits] repo/gentoo:master commit in: net-irc/soju/ Sam James
2024-09-05 19:22 Sam James
2024-09-05 19:22 Sam James
2024-07-05 10:49 Arthur Zamarin
2024-07-05 10:49 Arthur Zamarin
2024-06-06  8:42 Viorel Munteanu
2024-06-06  8:42 Viorel Munteanu
2023-12-08 11:36 Sam James
2023-12-08 11:36 Sam James
2023-12-08 11:36 Sam James
2023-12-08 11:36 Sam James
2023-11-17 12:07 Sam James
2023-08-18  4:22 Sam James
2023-06-23  2:14 Sam James
2023-06-11  8:44 Joonas Niilola
2023-04-26  4:03 Sam James
2023-04-26  4:03 Sam James
2023-04-10  2:54 Sam James
2023-04-10  2:54 Sam James
2023-04-10  2:54 Sam James
2023-04-10  2:54 Sam James
2023-04-10  2:54 Sam James
2023-04-10  2:54 Sam James
2022-12-16  7:24 Sam James
2022-12-15  4:44 Sam James

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=1682481766.18560e34f64657ce43582592ad68c00d18dab16a.sam@gentoo \
    --to=sam@gentoo.org \
    --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