From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 66AA7158012 for ; Thu, 23 Sep 2021 08:20:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92ABFE097E; Thu, 23 Sep 2021 08:20:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7937EE097E for ; Thu, 23 Sep 2021 08:20:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 359C1342E64 for ; Thu, 23 Sep 2021 08:20:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AACCFCF for ; Thu, 23 Sep 2021 08:20:26 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1632385023.51db2842c8c2c925a6c0d7c7875949e94afa9d6f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/beep/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/beep/beep-1.4.9-r1.ebuild X-VCS-Directories: app-misc/beep/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 51db2842c8c2c925a6c0d7c7875949e94afa9d6f X-VCS-Branch: master Date: Thu, 23 Sep 2021 08:20:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7d859542-0da9-451a-a816-4777a62f9fe5 X-Archives-Hash: 2103c490e3e72949cda989b2adf4a015 commit: 51db2842c8c2c925a6c0d7c7875949e94afa9d6f Author: Alessandro Barbieri gmail com> AuthorDate: Mon Feb 22 01:02:52 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Sep 23 08:17:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51db2842 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 gmail.com> Closes: https://github.com/gentoo/gentoo/pull/19588 Signed-off-by: Michał Górny gentoo.org> app-misc/beep/beep-1.4.9-r1.ebuild | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) 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 00000000000..7d53cca7a69 --- /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" +}