net-misc/ubridge: suidctl compat

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert 2025-11-30 21:11:44 -05:00
parent 63a8409cc2
commit 6b57b43f6d
No known key found for this signature in database
GPG Key ID: 7E58A298F42F9CCD

View File

@ -13,12 +13,16 @@ LICENSE="GPL-3+"
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
RDEPEND=" BDEPEND="
acct-group/ubridge acct-group/ubridge
"
DEPEND="
>=dev-libs/iniparser-4.1-r2:= >=dev-libs/iniparser-4.1-r2:=
net-libs/libpcap" net-libs/libpcap
"
DEPEND="${RDEPEND}" RDEPEND="${DEPEND}
acct-group/ubridge
"
src_compile() { src_compile() {
# iniparser.pc only exists in >=4.2 and it changes headers location # iniparser.pc only exists in >=4.2 and it changes headers location
@ -31,15 +35,14 @@ src_compile() {
} }
src_install() { src_install() {
exeinto /usr/bin dobin ubridge
exeopts -m 710 -g ubridge fowners :ubridge /usr/bin/ubridge
doexe ubridge fperms 4754 /usr/bin/ubridge
dodoc README.md dodoc README.md
} }
pkg_postinst() { pkg_postinst() {
fcaps -g ubridge -m 4710 -M 0710 cap_net_raw,cap_net_admin \ fcaps -g ubridge -M 0754 cap_net_raw,cap_net_admin \
"${EROOT}"/usr/bin/ubridge "${EROOT}"/usr/bin/ubridge
einfo "\nNOTE: To read packets from the network interfaces with ubridge as" einfo "\nNOTE: To read packets from the network interfaces with ubridge as"