diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-16 01:44:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-16 01:44:25 +0100 |
commit | d8616435f08981d5bc3df9f348190309a7bdbbc0 (patch) | |
tree | 6c51fc295fb9c2f5511a7ebb14fab377a5f8e171 /www-servers/caddy/caddy-2.5.2.ebuild | |
parent | fa1962ff69701bd9c0f15fb225cdbfb487125e0e (diff) |
gentoo auto-resync : 16:07:2022 - 01:44:25
Diffstat (limited to 'www-servers/caddy/caddy-2.5.2.ebuild')
-rw-r--r-- | www-servers/caddy/caddy-2.5.2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/www-servers/caddy/caddy-2.5.2.ebuild b/www-servers/caddy/caddy-2.5.2.ebuild new file mode 100644 index 000000000000..e614f052fbc5 --- /dev/null +++ b/www-servers/caddy/caddy-2.5.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit fcaps go-module systemd + +DESCRIPTION="Fast, cross-platform HTTP/2 web server with automatic HTTPS" +HOMEPAGE="https://caddyserver.com" +SRC_URI="https://github.com/caddyserver/caddy/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD ECL-2.0 MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +RDEPEND=" + acct-user/http + acct-group/http" +DEPEND="${RDEPEND}" + +RESTRICT+=" test" + +FILECAPS=( + -m 755 'cap_net_bind_service=+ep' usr/bin/${PN} +) + +src_compile() { + ego build ./cmd/caddy +} + +src_install() { + dobin caddy + dodoc README.md + keepdir /etc/caddy + insinto /etc/caddy + newins "${FILESDIR}"/caddy_config.json caddy_config.json.example + systemd_dounit "${FILESDIR}/${PN}.service" + newinitd "${FILESDIR}/initd" "${PN}" + newconfd "${FILESDIR}/confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotated" "${PN}" +} + +pkg_postinst() { + fcaps_pkg_postinst +} |