aboutsummaryrefslogblamecommitdiffstats
path: root/www-servers/caddy/caddy-2.7.3.ebuild
blob: 772fb21380c28d52a43d88569b35015ce4ab295d (plain) (tree)







































                                                                                   
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit fcaps go-module

DESCRIPTION="Fast, cross-platform HTTP/2 web server with automatic HTTPS"
HOMEPAGE="https://caddyserver.com"

DEPEND="
	acct-user/caddy
	acct-group/http"

FILECAPS=(
	cap_net_bind_service /usr/bin/caddy
)

SRC_URI="https://github.com/caddyserver/caddy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://nest.oriole.systems/gentoo/go-mod/${P}-deps.tar.xz"

LICENSE="Apache-2.0 BSD ECL-2.0 MIT"
SLOT="0"
KEYWORDS="amd64"

RESTRICT+=" mirror test"

src_compile() {
	go build ./cmd/caddy || die
}

src_install() {
	dobin caddy
	dodoc README.md

	newinitd "${FILESDIR}"/caddy.initd caddy
}

pkg_postinst() {
	fcaps_pkg_postinst
}