app-backup/backrest - 1.13.0 (inode64-overlay)

Search

Install

Install this version:

emerge -a =app-backup/backrest-1.13.0

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

autounmask =app-backup/backrest-1.13.0

Or alternatively:

emerge --autounmask-write -a =app-backup/backrest-1.13.0

Package Information

Description:
A web UI and orchestrator for restic backup
Homepage:
https://github.com/garethgeorge/backrest
License:
GPL-3

Ebuild Details

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

EAPI=8

NODEJS_MOD_PREFIX="webui"
inherit go-module nodejs nodejs-mod systemd tmpfiles

DESCRIPTION="A web UI and orchestrator for restic backup"
HOMEPAGE="https://github.com/garethgeorge/backrest"

SRC_URI="https://github.com/garethgeorge/backrest/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://www.inode64.com/dist/${P}-vendor.tar.xz
	https://www.inode64.com/dist/${P}-node_modules.tar.xz
"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="
	!test? ( test )
"
BDEPEND="test? ( app-backup/restic )"
RDEPEND="app-backup/restic"
DEPEND=">=dev-lang/go-1.24"

# TODO: Remove this!!
RESTRICT="network-sandbox"

src_compile() {
	# no compile support because lmdb require -fPIC
	#nodejs-mod_src_compile
	pushd webui >/dev/null || die
	enpm run build || die "build failed"
	# Fix go test
	gzip -k dist/index.html || die
	popd >/dev/null || die
	ego build -trimpath -ldflags="-s -w" -ldflags "-X 'main.version=${PV}' -X 'main.commit=${PR}'" -o backrest ./cmd/backrest || die
}

src_test() {
	BACKREST_RESTIC_COMMAND=/usr/bin/restic ego test ./... || die "test failed"
}

src_install() {
	dobin backrest
	dodoc *.md

	dotmpfiles "${FILESDIR}/${PN}.tmpfiles.conf"
	newinitd "${FILESDIR}/${PN}.initd" ${PN}
	systemd_dounit "${FILESDIR}/${PN}.service"
}

pkg_postinst() {
	tmpfiles_process backrest.tmpfiles.conf
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-backup/backrest | euse -E <flag> -p app-backup/backrest | euse -D <flag> -p app-backup/backrest

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

>=dev-lang/go-1.24

RDEPEND

app-backup/restic

BDEPEND

test? ( app-backup/restic )

Manifest for 1.13.0

Type File Size Source URLs
DIST backrest-1.13.0-node_modules.tar.xz 46394328 bytes https://www.inode64.com/dist/backrest-1.13.0-node_modules.tar.xz
DIST backrest-1.13.0-vendor.tar.xz 4118748 bytes https://www.inode64.com/dist/backrest-1.13.0-vendor.tar.xz
DIST backrest-1.13.0.tar.gz 935172 bytes https://github.com/garethgeorge/backrest/archive/v1.13.0.tar.gz