diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2018-04-04 22:34:21 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-04-04 22:35:17 +0200 |
commit | 5945809cd0c40e44313891742b0b61f90eecbfb8 (patch) | |
tree | 3a1444b88ac4442d7111f3f64848bb880a24baf5 /app-misc/beep/beep-1.3-r3.ebuild | |
parent | media-gfx/darktable: version bump, bug #652398 (diff) | |
download | gentoo-5945809cd0c40e44313891742b0b61f90eecbfb8.tar.gz gentoo-5945809cd0c40e44313891742b0b61f90eecbfb8.tar.bz2 gentoo-5945809cd0c40e44313891742b0b61f90eecbfb8.zip |
app-misc/beep: patch against CVE-2018-0292.
Bug: https://bugs.gentoo.org/652330
See-Also: https://github.com/johnath/beep/issues/11
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-misc/beep/beep-1.3-r3.ebuild')
-rw-r--r-- | app-misc/beep/beep-1.3-r3.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app-misc/beep/beep-1.3-r3.ebuild b/app-misc/beep/beep-1.3-r3.ebuild new file mode 100644 index 000000000000..1b0a27d17f45 --- /dev/null +++ b/app-misc/beep/beep-1.3-r3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="The advanced PC speaker beeper" +HOMEPAGE="http://www.johnath.com/beep" +SRC_URI="http://www.johnath.com/beep/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" +IUSE="suid" + +PATCHES=( + "${FILESDIR}/${P}-Makefile.patch" + "${FILESDIR}/${P}-CVE-2018-0492.patch" +) + +pkg_setup() { + tc-export CC +} + +src_install() { + dobin beep + if use suid; then + fowners :audio /usr/bin/beep + fperms 4710 /usr/bin/beep + else + fperms 0711 /usr/bin/beep + fi + unpack "./${PN}.1.gz" + doman "${PN}.1" + einstalldocs +} |