mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-misc/beep: fix fcaps usage & adjust further
This does not run fcaps_pkg_postinst, so the array is never used. Also: 1. little reason to use arrays if going to immediately run fcaps_pkg_postinst on the next line (same for einstalldocs) 2. switch to 755 rather than 711, fcaps.eclass switched to allow world read in commitf8642f4a3eand I see no no reason to override that default here 3. drop fperms line, the Makefile does not set a suid-bit and defaults to 0755, so it's now redundant 4. use relative path for fcaps call, let eclass handle EROOT 5. fwiw drop INSTALL.md+PACKAGING.md, packager-intended docs are not interesting for users... also makes the line break at <80 chars :) Fixes:01e8782196Closes: https://bugs.gentoo.org/947505 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -34,20 +34,12 @@ src_prepare() {
|
||||
|
||||
src_install() {
|
||||
dobin beep
|
||||
doman "${PN}.1"
|
||||
|
||||
fperms 0711 /usr/bin/beep
|
||||
|
||||
local DOCS=(
|
||||
CREDITS.md DEVELOPMENT.md INSTALL.md NEWS.md PACKAGING.md PERMISSIONS.md README.md
|
||||
)
|
||||
einstalldocs
|
||||
doman ${PN}.1
|
||||
dodoc CREDITS.md DEVELOPMENT.md NEWS.md PERMISSIONS.md README.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
FILECAPS=(
|
||||
-m0711 cap_dac_override,cap_sys_tty_config "${EROOT}/usr/bin/beep"
|
||||
)
|
||||
fcaps -m 0755 cap_dac_override,cap_sys_tty_config usr/bin/beep
|
||||
|
||||
elog "Please note that for security reasons, beep will no longer allow"
|
||||
elog "to running w/ SUID or as root under sudo. You will need to give"
|
||||
Reference in New Issue
Block a user