From 941687623283212199cbe6e36f7d61b89d6222b2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 7 Jun 2024 00:08:01 +0100 Subject: gentoo auto-resync : 07:06:2024 - 00:08:01 --- net-irc/soju/Manifest | 4 +-- net-irc/soju/metadata.xml | 1 + net-irc/soju/soju-0.7.0-r1.ebuild | 74 +++++++++++++++++++++++++++++++++++++++ net-irc/soju/soju-0.7.0.ebuild | 72 ------------------------------------- 4 files changed, 77 insertions(+), 74 deletions(-) create mode 100644 net-irc/soju/soju-0.7.0-r1.ebuild delete mode 100644 net-irc/soju/soju-0.7.0.ebuild (limited to 'net-irc/soju') diff --git a/net-irc/soju/Manifest b/net-irc/soju/Manifest index 42c1b66a1808..d372a1f97c20 100644 --- a/net-irc/soju/Manifest +++ b/net-irc/soju/Manifest @@ -4,5 +4,5 @@ DIST soju-0.6.2.tar.gz 161636 BLAKE2B c4d05d924b921b5d7ba9a61f0d3f269d6ed1a6ba99 DIST soju-0.7.0-deps.tar.xz 89862684 BLAKE2B d56302c5b330c581365da56f1718571144ac0475fa5879a839e723d2d13aa6cb9793a8f64418098aa0035421192eb2ae955603330ea3be6116db057d5fef3b1a SHA512 08fb5f2e75508840b76fb5f3479023eb735abc128cef0a621a3bafbc8d1dde504cf78812cb4e7921d7aaaafc40595ca592ce0b8aaf21c388fd781b52b5d266d2 DIST soju-0.7.0.tar.gz 149198 BLAKE2B 2047b61792454f20a7cc4c24466047ffa43f5d56a1726b32f5120686d5fecd1f81d057adafc8696e2d85e922e37ae6f158808c0b35529ca2cb7018ecbec0d381 SHA512 9b199c5e3270e325cb6e101b0e7b5c70af75c831442a135fa0484bd2aef3ada98ab48261cd91342d278bfbbbbb626c2c83eeec8029388a8fe9663515e676ba43 EBUILD soju-0.6.2.ebuild 1873 BLAKE2B 3c8eee716412f8566449a9d865b8bbb4b64af0a01dbcf484021d45deac56556f7b0ece0639d3fa665f47c299f214f0ad9554287c9af35090a7d70d0d01fcb104 SHA512 cf22df562ef458c9264cbb49e9b88d715ac8e695d4eca9e483da11378652b94d3d02656827754b46857528121575e0249a70c4c09bd4cb8aeff3aa739db479e4 -EBUILD soju-0.7.0.ebuild 1873 BLAKE2B 3c8eee716412f8566449a9d865b8bbb4b64af0a01dbcf484021d45deac56556f7b0ece0639d3fa665f47c299f214f0ad9554287c9af35090a7d70d0d01fcb104 SHA512 cf22df562ef458c9264cbb49e9b88d715ac8e695d4eca9e483da11378652b94d3d02656827754b46857528121575e0249a70c4c09bd4cb8aeff3aa739db479e4 -MISC metadata.xml 626 BLAKE2B 74d9ed6f3cd4b712587aa8824b562b4e26da2403a5f27e338296e514721187143790b027cb229dd8712c999bbb0fc9130207b0a419bd3bdd3062e2f4594767af SHA512 37c75e5842ce0582407266c5778dd8cc30bc6f028802a0d70cf793a7ca0d4a32d6a0c734fa89643b1c582162e0691ac20c231d636b8e7cca0911e9bc1b27eaab +EBUILD soju-0.7.0-r1.ebuild 1942 BLAKE2B 264abd792d19c3d7993dcaa72c8759715cdf0cab41c9679bbecd21fb0df5a1c65d25c5e7c13d9d21c25bd9e538fd51ee26b73ba5a1df294b0b270939cd48d9ec SHA512 56a55d281b45aac6cb53cbfa021437a7093680f745b2c5241dab9e15319809656f054df938d033badb9510f0feb31344cb3c683fcda19751a6ccf2712be1be0b +MISC metadata.xml 688 BLAKE2B 1543e2b0035fc2b07e94b10178ca6a7e31d47b302d8b9aa2eb63a77605c395c754ede320566f038620dc892ef500ca3928942ccd714d6242eda75c7523998075 SHA512 a23f2bdc7d9eb129f237120a417bd218005781f59d8a1e6704798a126e17daef18b0664a457717136857bd4011e4b0b407e67970cc7119f021f50486da1f7457 diff --git a/net-irc/soju/metadata.xml b/net-irc/soju/metadata.xml index 7f2f852dba69..e5c26b9d7f79 100644 --- a/net-irc/soju/metadata.xml +++ b/net-irc/soju/metadata.xml @@ -11,6 +11,7 @@ ~emersion/soju + alfredfo/soju-deps Use moderncsqlite, a cgo-free port of diff --git a/net-irc/soju/soju-0.7.0-r1.ebuild b/net-irc/soju/soju-0.7.0-r1.ebuild new file mode 100644 index 000000000000..43d0b770ae70 --- /dev/null +++ b/net-irc/soju/soju-0.7.0-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 2022-2024 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 Apache-2.0 MIT BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~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}" + +src_compile() { + # musl removed legacy LFS64 interfaces in version 1.2.4 temporarily + # reenabled using _LARGEFILE64_SOURCE until this is resolved + # upstream https://github.com/mattn/go-sqlite3/issues/1164 + CGO_CFLAGS="${CGO_CFLAGS}" + if use sqlite; then + GOFLAGS+=" -tags=libsqlite3" + CGO_CFLAGS="-D_LARGEFILE64_SOURCE" + elif use moderncsqlite; then + GOFLAGS+=" -tags=moderncsqlite" + CGO_CFLAGS="-D_LARGEFILE64_SOURCE" + else + GOFLAGS+=" -tags=nosqlite" + fi + # Only way to pass CFLAGS to CGO at the + # moment. https://github.com/gentoo/gentoo/pull/33539/ + export CGO_CFLAGS + 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 + scdoc doc/sojuctl.1 || die +} + +src_install() { + dobin soju + dobin sojudb + dobin sojuctl + + doman doc/soju.1 + doman doc/sojuctl.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]" +} diff --git a/net-irc/soju/soju-0.7.0.ebuild b/net-irc/soju/soju-0.7.0.ebuild deleted file mode 100644 index 266c4335c650..000000000000 --- a/net-irc/soju/soju-0.7.0.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# 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 Apache-2.0 MIT BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~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}" - -src_compile() { - # musl removed legacy LFS64 interfaces in version 1.2.4 temporarily - # reenabled using _LARGEFILE64_SOURCE until this is resolved - # upstream https://github.com/mattn/go-sqlite3/issues/1164 - CGO_CFLAGS="${CGO_CFLAGS}" - if use sqlite; then - GOFLAGS+=" -tags=libsqlite3" - CGO_CFLAGS="-D_LARGEFILE64_SOURCE" - elif use moderncsqlite; then - GOFLAGS+=" -tags=moderncsqlite" - CGO_CFLAGS="-D_LARGEFILE64_SOURCE" - else - GOFLAGS+=" -tags=nosqlite" - fi - # Only way to pass CFLAGS to CGO at the - # moment. https://github.com/gentoo/gentoo/pull/33539/ - export CGO_CFLAGS - 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]" -} -- cgit v1.2.3