From a567064eb42784daf85090b2afef53a71c0c099e Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 12 May 2020 10:31:49 +0200 Subject: [PATCH] www-apps/gitea: Add file capability to bind port 22 Closes: https://bugs.gentoo.org/721956 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Pierre-Olivier Mercier Signed-off-by: Joonas Niilola --- www-apps/gitea/gitea-9999.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www-apps/gitea/gitea-9999.ebuild b/www-apps/gitea/gitea-9999.ebuild index ce44b1f5ef76..0d1559ca4a39 100644 --- a/www-apps/gitea/gitea-9999.ebuild +++ b/www-apps/gitea/gitea-9999.ebuild @@ -9,7 +9,7 @@ else SCM="git-r3" fi -inherit golang-base tmpfiles systemd ${SCM} +inherit fcaps golang-base tmpfiles systemd ${SCM} unset SCM EGO_PN="code.gitea.io/gitea" @@ -41,6 +41,7 @@ RDEPEND="${DEPEND} dev-vcs/git" DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md ) +FILECAPS=( cap_net_bind_service+ep usr/bin/gitea ) S="${WORKDIR}/${P}/src/${EGO_PN}" PATCHES=( "${FILESDIR}/gitea-logflags.patch" ) -- 2.26.2