Diff beep-1.4.12 with a beep-1.4.12-r2
/usr/portage/app-misc/beep/beep-1.4.12-r2.ebuild 2025-07-29 16:22:12.576448072 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
1 |
# Copyright 1999-2025 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
... | ... | |
16 | 16 |
# Tests require a speaker |
17 | 17 |
RESTRICT="test" |
18 | 18 | |
19 |
PATCHES=( "${FILESDIR}"/${P}-avoid-cref-linker-option.patch ) |
|
20 | ||
19 | 21 |
src_prepare() { |
20 | 22 |
default |
21 | 23 | |
... | ... | |
34 | 36 | |
35 | 37 |
src_install() { |
36 | 38 |
dobin beep |
37 |
doman "${PN}.1" |
|
38 | ||
39 |
fperms 0711 /usr/bin/beep |
|
40 | ||
41 |
einstalldocs |
|
39 |
doman ${PN}.1 |
|
40 |
dodoc CREDITS.md DEVELOPMENT.md NEWS.md PERMISSIONS.md README.md |
|
42 | 41 |
} |
43 | 42 | |
44 | 43 |
pkg_postinst() { |
45 |
fcaps cap_dac_override,cap_sys_tty_config "${EROOT}/usr/bin/beep" |
|
44 |
fcaps -m 0755 cap_dac_override,cap_sys_tty_config usr/bin/beep |
|
45 | ||
46 |
elog "Please note that for security reasons, beep will no longer allow" |
|
47 |
elog "to running w/ SUID or as root under sudo. You will need to give" |
|
48 |
elog "permissions for the PC speaker device to allow non-root users to" |
|
49 |
elog "use 'beep' by either:" |
|
50 |
elog " setfacl -m u:<youruser>:rw /dev/input/by-path/platform-pcspkr-event-spkr" |
|
51 |
elog "or add yourself to the 'input' group:" |
|
52 |
elog " usermod -aG input <youruser>" |
|
53 |
elog "It's preferred to use setfacl with least privilege." |
|
46 | 54 |
} |