app-backup/rest-server - 0.14.0 (inode64-overlay)

Search

Package Information

Description:
High-performance HTTP server that implements restic's REST backend API
Homepage:
https://github.com/restic/rest-server
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
0.14.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

inherit go-module systemd tmpfiles

DESCRIPTION="High-performance HTTP server that implements restic's REST backend API"
HOMEPAGE="https://github.com/restic/rest-server"

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

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="app-admin/apache-tools"

src_prepare() {
	default

	sed -i -e 's|/usr/local/bin/rest-server|/usr/bin/rest-server|g' examples/systemd/rest-server.service || die
	sed -i -e 's|/path/to/backups|/srv/backups|g' examples/systemd/rest-server.service || die
}

src_compile() {
	ego build -trimpath -ldflags "-s -w" -o rest-server ./cmd/rest-server || die
}

src_test() {
	ego test || die "test failed"
}

src_install() {
	dobin rest-server

	dodoc *.md
	dotmpfiles "${FILESDIR}"/${PN}.conf
	newinitd "${FILESDIR}/${PN}.initd" ${PN}

	systemd_dounit examples/systemd/rest-server.{service,socket}
}

pkg_postinst() {
	tmpfiles_process rest-server.conf
}

Dependencies

RDEPEND

app-admin/apache-tools

Manifest for 0.14.0

Type File Size Source URLs
DIST rest-server-0.14.0-vendor.tar.xz 961684 bytes https://www.inode64.com/dist/rest-server-0.14.0-vendor.tar.xz
DIST rest-server-0.14.0.tar.gz 271893 bytes https://github.com/restic/rest-server/archive/v0.14.0.tar.gz