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 CCC01138206 for ; Mon, 1 Jan 2018 19:07:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EAF8BE080E; Mon, 1 Jan 2018 19:07:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CD922E080E for ; Mon, 1 Jan 2018 19:07:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0A10335C07 for ; Mon, 1 Jan 2018 19:07:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 87ACA190 for ; Mon, 1 Jan 2018 19:07:51 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1514833656.1d20ff6ca2a746f96b668c1b1d5c22ee5b742965.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/microcode-ctl/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/microcode-ctl/microcode-ctl-1.28-r2.ebuild X-VCS-Directories: sys-apps/microcode-ctl/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 1d20ff6ca2a746f96b668c1b1d5c22ee5b742965 X-VCS-Branch: master Date: Mon, 1 Jan 2018 19:07:51 +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-Archives-Salt: 8ca5c648-0f1c-4e68-9aa9-0f4cf4b29561 X-Archives-Hash: a937622f31253b256cb069cab19b7cbf commit: 1d20ff6ca2a746f96b668c1b1d5c22ee5b742965 Author: Thomas Deutschmann gentoo org> AuthorDate: Mon Jan 1 19:00:01 2018 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon Jan 1 19:07:36 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d20ff6c sys-apps/microcode-ctl: Rev bump for EAPI bump HOMEPAGE and SRC_URI changed from Fedorahosted pagure.io. [Bug 618058] Closes: https://bugs.gentoo.org/618058 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../microcode-ctl/microcode-ctl-1.28-r2.ebuild | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/sys-apps/microcode-ctl/microcode-ctl-1.28-r2.ebuild b/sys-apps/microcode-ctl/microcode-ctl-1.28-r2.ebuild new file mode 100644 index 00000000000..4ca58a10661 --- /dev/null +++ b/sys-apps/microcode-ctl/microcode-ctl-1.28-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs versionator + +MY_P=${PN/-/_}-${PV} +DESCRIPTION="Intel processor microcode update utility" +HOMEPAGE="https://pagure.io/microcode_ctl" +SRC_URI="https://releases.pagure.org/${PN/-/_}/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="selinux" + +DEPEND="" +RDEPEND=">=sys-firmware/intel-microcode-20090330[monolithic(+)] + selinux? ( sec-policy/selinux-cpucontrol )" + +S=${WORKDIR}/${MY_P} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" +} + +src_install() { + dosbin microcode_ctl + doman microcode_ctl.8 + dodoc Changelog README +} + +pkg_preinst() { + local _v + for _v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 1.28-r1 ${_v}; then + # This is an upgrade + elog "The init scripts have been removed as they are unsafe. If you want to update" + elog "the microcode in your system, please use an initramfs. See bug #528712#41 for" + elog "details (and bug #557278 for genkernel users)." + fi + + # Show this elog only once + break + done +}