diff options
author | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2021-02-22 02:02:52 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-09-23 10:17:03 +0200 |
commit | 51db2842c8c2c925a6c0d7c7875949e94afa9d6f (patch) | |
tree | 1d17d97e6e5680f9626ebd6b44c9798e9aa1d219 /app-misc | |
parent | dev-python/sentry-sdk: Bump to 1.4.1 (diff) | |
download | gentoo-51db2842c8c2c925a6c0d7c7875949e94afa9d6f.tar.gz gentoo-51db2842c8c2c925a6c0d7c7875949e94afa9d6f.tar.bz2 gentoo-51db2842c8c2c925a6c0d7c7875949e94afa9d6f.zip |
app-misc/beep: capabilities added, suid removed
Closes: https://bugs.gentoo.org/716734
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/19588
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/beep/beep-1.4.9-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-misc/beep/beep-1.4.9-r1.ebuild b/app-misc/beep/beep-1.4.9-r1.ebuild new file mode 100644 index 000000000000..7d53cca7a698 --- /dev/null +++ b/app-misc/beep/beep-1.4.9-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fcaps toolchain-funcs + +DESCRIPTION="Advanced PC speaker beeper" +HOMEPAGE="https://github.com/spkr-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 + + sed -i -e "s#-D_FORTIFY_SOURCE=2##g;" GNUmakefile || die +} + +src_compile() { + emake \ + COMPILERS=gcc \ + COMPILER_gcc="$(tc-getCC)" \ + LINKER_gcc="$(tc-getCC)" \ + CFLAGS_gcc="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CPPFLAGS_gcc="" \ + all +} + +src_test() { + emake \ + COMPILERS=gcc \ + COMPILER_gcc="$(tc-getCC)" \ + LINKER_gcc="$(tc-getCC)" \ + CFLAGS_gcc="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + check +} + +src_install() { + dobin beep + doman "${PN}.1" + + fperms 0711 /usr/bin/beep + + einstalldocs +} + +pkg_postinst() { + fcaps cap_dac_override,cap_sys_tty_config "${EROOT}/usr/bin/beep" +} |