diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-25 06:31:02 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-25 06:31:02 +0000 |
commit | e80134587e8d959a88dba7dd3784895372e205c8 (patch) | |
tree | 912d9772fcc93ec668b363146cf81e45519253d6 /app-misc/beep | |
parent | 17e417b73cb3e25edbc6541bd107bc9c593d66bd (diff) |
gentoo auto-resync : 25:12:2024 - 06:31:02
Diffstat (limited to 'app-misc/beep')
-rw-r--r-- | app-misc/beep/Manifest | 1 | ||||
-rw-r--r-- | app-misc/beep/beep-1.4.12-r1.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/app-misc/beep/Manifest b/app-misc/beep/Manifest index 5babb239db57..265ba9fff179 100644 --- a/app-misc/beep/Manifest +++ b/app-misc/beep/Manifest @@ -1,5 +1,6 @@ DIST beep-1.4.12.tar.gz 89172 BLAKE2B 06f21cf3c40389acca50e6e420af4e738b7484e096bb689345fedb37684b15733dbb38e8a5d0d360f23e020cebe9ba321984ee43f41b0ad980648414ddbb9375 SHA512 18fed77bc4820ecc84ac12e903d516d5228fa2038df1788cc68db76e40b3c47a271911cc45bc48ce94e3f215803c5c05cb6c08ebb47ae6d7fcf1e0bc1ac169cd DIST beep-1.4.9.tar.gz 83154 BLAKE2B 073169ccb4919c17c0291951834fea682c87021f18562629013293432292750f6d6b3235e8882fa9cf26c9e055e1283cfa629c2e88e0f87a301b238c38380498 SHA512 46e6066cb4d9ad4a0c55a03bf5a2163426648ce3831fe1f7bafa2f02d0e407b50c52e58cc2b123c346df96e92b73d2458b473c3fb001d9a0d1470b7cf38cc35b +EBUILD beep-1.4.12-r1.ebuild 1438 BLAKE2B bd22ab0d4ea015493c6b9f2b4be91ecb2b20115c41d465f173bd467f70794f11633aea217e23393dfd8b95b934693c57a9f20c00d49347bf1829e86c041b3bd9 SHA512 4688cebed2c3bffde3c376790f364b9bca088ea464261451f24f6ad37163bc0a791f68daa878c3c840c679a5f6bd7386ad62dee73ed2a886f9d3bf5a442adc35 EBUILD beep-1.4.12.ebuild 836 BLAKE2B 44214aca0217749329485e25e6306c4d0929648e2f2ee8903439c311e4fcb0603a7e4dd4e9a403e98e41ce574d7b204a9ac06434d8ead1dfeb0d5894541fff2f SHA512 290aa51a23c5dc14ed263ecc576af5bfd529519daf5ad3b9e6a3bc294a721ebcbcfc97b437c80fb6c711cbf68562280c8594dd972a0d66eddb025fe38fa5d1e4 EBUILD beep-1.4.9-r1.ebuild 1036 BLAKE2B 8af1179f91ed10e068d03fe9d0e9eb7d8dc9529511522a28b62e54ec536d6da28d270df35e3ac6da5fc28afe3f4722663b64bd32e9cb4f3932dae3f69f48ef06 SHA512 cd8973c1d2a37052abb4990a8e194c5ea70dac5afd07814b7a54a689660c4d9510ea5ecaa2678d8a42ffface6823b1a9d6e6adc1800f1bb9576af65edebb872b MISC metadata.xml 345 BLAKE2B 3ce8134e5c5971fdeb01d04278c1d7382aa2fc372be720ea86fd13c42831c45cddc6ed59e316a79d43fb3c0175bf6b1eccaa561332ea97810ab59b4171b62cbd SHA512 f67241c51be678cf1f672eee63de0149325b3ec96c5f2c92e7fb9b10c3b187d76a7864cf64ed40ed80cd8331ccc4f55ec81904e16baaeac7edfb719b2c8d8d95 diff --git a/app-misc/beep/beep-1.4.12-r1.ebuild b/app-misc/beep/beep-1.4.12-r1.ebuild new file mode 100644 index 000000000000..6615cc9f090a --- /dev/null +++ b/app-misc/beep/beep-1.4.12-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps toolchain-funcs + +DESCRIPTION="Advanced PC speaker beeper" +HOMEPAGE="https://github.com/spkr-beep/beep" +SRC_URI="https://github.com/spkr-beep/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" + +# Tests require a speaker +RESTRICT="test" + +src_prepare() { + default + + cat <<-EOF > local.mk || die + CC=$(tc-getCC) + CFLAGS=${CFLAGS} + CPPFLAGS=${CPPFLAGS} + LDFLAGS=${LDFLAGS} + EOF + + sed -i \ + -e "s#-D_FORTIFY_SOURCE=2##g;" \ + -e '/\-Werror)/d' \ + GNUmakefile || die +} + +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 +} + +pkg_postinst() { + FILECAPS=( + -m0711 cap_dac_override,cap_sys_tty_config "${EROOT}/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" + elog "permissions for the PC speaker device to allow non-root users to" + elog "use 'beep' by either:" + elog " setfacl -m u:<youruser>:rw /dev/input/by-path/platform-pcspkr-event-spkr" + elog "or add yourself to the 'input' group:" + elog " usermod -aG input <youruser>" + elog "It's preferred to use setfacl with least privilege." +} |