www-apps/gitea: Add file capability to bind port 22
authorPierre-Olivier Mercier <nemunaire@nemunai.re>
Tue, 12 May 2020 08:31:49 +0000 (10:31 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Wed, 13 May 2020 07:59:43 +0000 (10:59 +0300)
Closes: https://bugs.gentoo.org/721956
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Pierre-Olivier Mercier <nemunaire@nemunai.re>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
www-apps/gitea/gitea-9999.ebuild

index ce44b1f5ef76237f44a2ed3bf0052de65d4832bd..0d1559ca4a391c15b27efd1990e4095932154e64 100644 (file)
@@ -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" )