blob: 567d3f0083400e89dd661929ac87632e2a956f50 (
plain) (
tree)
|
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit fcaps
DESCRIPTION="Fast, cross-platform HTTP/2 web server with automatic HTTPS"
HOMEPAGE="https://github.com/mholt/caddy"
SRC_URI="https://github.com/caddyserver/caddy/releases/download/v${PV}/caddy_v${PV}_linux_amd64.tar.gz"
KEYWORDS="amd64"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
DEPEND="
acct-user/caddy
acct-group/http"
RDEPEND="!www-servers/caddy"
FILECAPS=( cap_net_bind_service+ep /usr/bin/caddy )
RESTRICT="test mirror"
S="${WORKDIR}"
src_install() {
dobin caddy
newinitd "${FILESDIR}"/caddy.initd caddy
newconfd "${FILESDIR}"/caddy.confd caddy
}
|