| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.0.8 | 8 | ~amd64 ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
COMMIT="6ea13b9"
DESCRIPTION="Archival restoration tool for databases"
HOMEPAGE="https://github.com/wal-g/wal-g"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://www.inode64.com/dist/${P}-vendor.tar.xz
"
LICENSE="Apache-2.0 GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="brotli etcd fdb gp lzo mongo mysql +postgres redis sqlserver sodium"
REQUIRED_USE="|| ( etcd fdb mongo mysql postgres redis )"
RESTRICT="test" # fails
RDEPEND="brotli? ( app-arch/brotli:= )
lzo? ( dev-libs/lzo:2 )
sodium? ( dev-libs/libsodium:= )"
src_configure() {
export GOEXPERIMENT=jsonv2
default
}
src_compile() {
DATE="$(date -u '+%Y-%m-%d-%H%M UTC')"
TAGS="$(usex brotli brotli '' '' '') $(usex lzo lzo '' '' '') $(usex sodium libsodium '' '' '')"
for db in etcd fdb gp mongo mysql postgres redis sqlserver ; do
if use "$db" ; then
if [ "$db" == "postgres" ] ; then db="pg" ; fi
ego build -trimpath -o wal-g-"$db" -tags "${TAGS}" \
-ldflags "-X github.com/wal-g/wal-g/cmd/$db.walgVersion=${PV}
-X \"github.com/wal-g/wal-g/cmd/$db.buildDate=${DATE}\"
-X github.com/wal-g/wal-g/cmd/$db.gitRevision=${COMMIT}" \
./main/"$db"/...
fi
done
}
src_test() {
ego test -work ./...
}
src_install() {
einstalldocs
use etcd && dobin wal-g-etcd
use fdb && dobin wal-g-fdb
use gp && dobin wal-g-gp
use mongo && dobin wal-g-mongo
use mysql && dobin wal-g-mysql
use postgres && dobin wal-g-pg
use redis && dobin wal-g-redis
use sqlserver && dobin wal-g-sqlserver
}
brotli? ( app-arch/brotli:= ) lzo? ( dev-libs/lzo:2 ) sodium? ( dev-libs/libsodium:= )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | wal-g-3.0.8-vendor.tar.xz | 7787472 bytes | https://www.inode64.com/dist/wal-g-3.0.8-vendor.tar.xz |
| DIST | wal-g-3.0.8.tar.gz | 9047850 bytes | https://github.com/wal-g/wal-g/archive/v3.0.8.tar.gz |