Diff beep-1.4.12-r2 with a beep-1.4.12-r3

/usr/portage/app-misc/beep/beep-1.4.12-r3.ebuild 2026-09-28 20:03:05.317111951 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit fcaps toolchain-funcs
6
inherit toolchain-funcs udev
7 7

  
8 8
DESCRIPTION="Advanced PC speaker beeper"
9 9
HOMEPAGE="https://github.com/spkr-beep/beep"
......
16 16
# Tests require a speaker
17 17
RESTRICT="test"
18 18

  
19
RDEPEND="
20
	acct-group/beep
21
"
22

  
19 23
PATCHES=( "${FILESDIR}"/${P}-avoid-cref-linker-option.patch )
20 24

  
21 25
src_prepare() {
......
38 42
	dobin beep
39 43
	doman ${PN}.1
40 44
	dodoc CREDITS.md DEVELOPMENT.md NEWS.md PERMISSIONS.md README.md
45
	udev_dorules "${FILESDIR}"/{70,90}-pcspkr-beep.rules
41 46
}
42 47

  
43 48
pkg_postinst() {
44
	fcaps -m 0755 cap_dac_override,cap_sys_tty_config usr/bin/beep
49
	udev_reload
50
	elog "Access to the PC speaker is now controlled by the 'beep' group."
51
	elog "Local logins are also granted access via logind."
52
}
45 53

  
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."
54
pkg_postrm() {
55
	udev_reload
54 56
}
Thank you!