net-im/zendrite - 3.4.0 (guru)

Search

Install

Install this version:

emerge -a =net-im/zendrite-3.4.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-im/zendrite-3.4.0

Or alternatively:

emerge --autounmask-write -a =net-im/zendrite-3.4.0

Package Information

Description:
Zendrite is a second-generation Matrix homeserver written in Go
Homepage:
https://zendrite.pat-s.me/ https://codefloe.com/pat-s/zendrite
License:
AGPL-3+ Apache-2.0 BSD MIT MPL-2.0 ZLIB

Ebuild Details

Version EAPI Keywords Slot
3.4.0 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Zendrite is a second-generation Matrix homeserver written in Go"
HOMEPAGE="
	https://zendrite.pat-s.me/
	https://codefloe.com/pat-s/zendrite
"

# See https://bugs.gentoo.org/981253
SRC_URI="
	https://codefloe.com/pat-s/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://vimja.cloud/public.php/dav/files/z59eKDyLFokW2KK/${CATEGORY}/${PN}/${P}-vendor.tar.xz
"

S="${WORKDIR}/${PN}"

# https://wiki.gentoo.org/wiki/Writing_go_Ebuilds#Licenses
LICENSE="AGPL-3+ Apache-2.0 BSD MIT MPL-2.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

IUSE="test"
RESTRICT="!test? ( test )"

BDEPEND="
	>=dev-lang/go-1.27.0
	test? ( dev-libs/olm )
"
RDEPEND="
	acct-user/zendrite
	acct-group/zendrite
"

src_compile() {
	ego build ./...
	GOBIN="${S}/bin" ego install ./...
}

src_test() {
	# Do not run tests that require access to a working PostgreSQL installation...
	tests_requiring_a_postgres_installation=(
		TestAdvanceOwnershipBootstrapsFirstGeneration
		TestAdvanceOwnershipRejectsForeignScope
		TestAdvanceOwnershipRejectsRetiredGeneration
		TestAdvanceOwnershipSerializesConcurrentPromoters
		TestApplicationNameSurvivesPostgresTruncation
		TestBackendsAfterTheHorizonAreNotFencingEvidence
		TestConfirmedOwnershipIsNotAbandoned
		TestConnectionManagerAppliesTheGuard
		TestContractSurface
		TestDispatchedTransactionsAreNotRecalled
		TestFenceBackendsTerminatesRetiredActivations
		TestGuardConnectionRefusesRetiredActivation
		TestGuardedConnectionsCarryTheActivationMarker
		TestGuardedOpenRefusesRetiredOwnership
		TestGuardedPoolDiscardsRecentlyTerminatedBackend
		TestGuardedPoolDiscardsRecentlyTerminatedBackend
		TestGuardedReconnectRefusesRetiredOwnership
		TestHeartbeatKeepsOwnershipFresh
		TestHeartbeatRetiresTheOwnerAfterTakeover
		TestOwnerPartitionedFromKubernetesCannotOverlap
		TestOwnershipGoesStaleWithoutAHeartbeat
		TestOwnershipHistoryFailsClosedWhenTampered
		TestPausedOwnerIsRefusedAtEveryBoundary
		TestPrepareStorageConnectionIsFenceable
		TestPrepareStorageReportsWhyItWasRefused
		TestRecordWithoutContractIsRefused
		TestRefusedConnectionsDoNotLeakBackends
		TestResumedOwnerCannotCommitAfterTakeover
		TestStorageCompatibilityAndMigrationSerialization
		TestSweepNeverFencesANewerGeneration
		TestUncertainFencingBlocksTakeover
		TestUnguardedConnectionsKeepStandaloneBehaviour
		TestUpDropEventReferenceSHAPrevEvents
		TestUpgradeContractRecord
		TestPostgres*
		TestOutputEventTimestampUpgrade/.*
		.*/postgres
		.*/.*/postgres
	)

	skip_postgres_tests=$(
		echo ${tests_requiring_a_postgres_installation[@]} | sed --expression='s/ /|/g'
	)
	ego test ./... -skip "${skip_postgres_tests}"
}

src_install() {

	dobin "${S}"/bin/*

	insinto /etc/zendrite
	doins "${S}"/zendrite-sample.yaml

	newinitd "${FILESDIR}"/init-r2 zendrite
	newconfd "${FILESDIR}"/conf-r2 zendrite
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-im/zendrite | euse -E <flag> -p net-im/zendrite | euse -D <flag> -p net-im/zendrite

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

	acct-user/zendrite
	acct-group/zendrite

BDEPEND

	>=dev-lang/go-1.27.0
	test? ( dev-libs/olm )

Manifest for 3.4.0

Type File Size Source URLs
DIST zendrite-3.4.0-vendor.tar.xz 17337076 bytes https://vimja.cloud/public.php/dav/files/z59eKDyLFokW2KK//zendrite/zendrite-3.4.0-vendor.tar.xz
DIST zendrite-3.4.0.tar.gz 1908260 bytes https://codefloe.com/pat-s/zendrite/archive/v3.4.0.tar.gz