From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 18EF515ACFC for ; Wed, 26 Apr 2023 04:03:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04107E0875; Wed, 26 Apr 2023 04:03:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7744DE0872 for ; Wed, 26 Apr 2023 04:03:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 62C9B33BDCC for ; Wed, 26 Apr 2023 04:03:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CDADAA53 for ; Wed, 26 Apr 2023 04:03:34 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1682481766.18560e34f64657ce43582592ad68c00d18dab16a.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/soju/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-irc/soju/metadata.xml net-irc/soju/soju-0.6.0-r1.ebuild X-VCS-Directories: net-irc/soju/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 18560e34f64657ce43582592ad68c00d18dab16a X-VCS-Branch: master Date: Wed, 26 Apr 2023 04:03:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f029d189-aa94-4a85-9655-898bb63c23c0 X-Archives-Hash: fcce2db6f040a4371f2f9eda816b27e2 commit: 18560e34f64657ce43582592ad68c00d18dab16a Author: Alfred Persson Forsberg catcream org> AuthorDate: Mon Apr 10 14:45:11 2023 +0000 Commit: Sam James gentoo 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 catcream.org> Signed-off-by: Sam James 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 @@ ~emersion/soju + + Use moderncsqlite, a cgo-free port of + SQLite + 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 || 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 [-admin]" +}