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 9D6F61396DA for ; Mon, 6 Nov 2017 15:10:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C61D4E0C7C; Mon, 6 Nov 2017 15:10:17 +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-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9379BE0D35 for ; Mon, 6 Nov 2017 15:10:17 +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 ACBD53416E5 for ; Mon, 6 Nov 2017 15:10:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 207419701 for ; Mon, 6 Nov 2017 15:10:14 +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: <1509981007.b04e689fc7c67dbb1ba1f189ad63779c1abf3f87.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/systemrescuecd-x86/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/systemrescuecd-x86/Manifest app-admin/systemrescuecd-x86/systemrescuecd-x86-5.1.2.ebuild X-VCS-Directories: app-admin/systemrescuecd-x86/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b04e689fc7c67dbb1ba1f189ad63779c1abf3f87 X-VCS-Branch: master Date: Mon, 6 Nov 2017 15:10:14 +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: 6cc8c653-6476-4ac7-856e-07f764d81f99 X-Archives-Hash: 31255f12f08290c29affe2edb09f4f66 commit: b04e689fc7c67dbb1ba1f189ad63779c1abf3f87 Author: Michał Górny gentoo org> AuthorDate: Mon Nov 6 14:19:27 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Nov 6 15:10:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b04e689f app-admin/systemrescuecd-x86: Bump to 5.1.2 app-admin/systemrescuecd-x86/Manifest | 1 + .../systemrescuecd-x86-5.1.2.ebuild | 61 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/app-admin/systemrescuecd-x86/Manifest b/app-admin/systemrescuecd-x86/Manifest index 365a340dee5..92123ffc4f7 100644 --- a/app-admin/systemrescuecd-x86/Manifest +++ b/app-admin/systemrescuecd-x86/Manifest @@ -28,3 +28,4 @@ DIST systemrescuecd-x86-5.0.3.iso 501446656 SHA256 e892d3e0aeabec2c435484f0a6913 DIST systemrescuecd-x86-5.0.4.iso 501141504 SHA256 3b38c15ec8e2f60348181423b0f445856c8b290aac96e92210f316652d621507 SHA512 26b624c75f75e181051b164b0a1f24b612d9ac11c2ed8df3e40fd13e48bfa58022be814e4ac608f3fde892eaa99954f10c0e1fb1ef4831a501dc4e1c0c87b764 WHIRLPOOL 8a372a13edf76d31d44dfe1167216d2b89b3b75ac7437397341bb7e721b31336cbcedda05f087a0d061ca25b5cb95acd252fa042ce6639852c8795568a4ca128 DIST systemrescuecd-x86-5.1.0.iso 505047040 SHA256 49466daab472d29fbbd38ac7d4d36363ecd73e27f7872dde1d67e62e190920d0 SHA512 15d019bbb91019f1b6d1847fc786e6c02f3f768826241e0823842bca9745ff1fa48fe7d32828f899b90845b2f4ce948a1f98e093edf8ca4c0c39cc0da72b4aa8 WHIRLPOOL 5bc909b4c2eea8ffb58f574b120ba07f53361cb4ff2782f214947f5dbccb0f33bc4168ea8a832ba65ebb56a6ea9fb08437af060ec793c6f07c33236bef0f825f DIST systemrescuecd-x86-5.1.1.iso 517359616 SHA256 5ab22119f2ca2e53d28880367e53b887df5cd82599b38d3175870d023455117a SHA512 a4063305da50ea8b73fb7157f46bf386b80d3ef777adabdcdd944814c801d078fe63778f166b80788b0851549b35bf6ada5940ca5a40a6c1a3e0f4c66efbea91 WHIRLPOOL e49d64915f487c31efc3ecd590965b4fe94b1a65b7c0261f1ccb4d2b0dc4336885398f2d021a670ec0041a3e3ba1d6c1cc524b1db95d1d7e3c6371f3806ca78d +DIST systemrescuecd-x86-5.1.2.iso 523479040 SHA256 a67d4ac20c1e02e53f51f97fe337dcd28f0d08ac16c64a65ae9b6664f19b699f SHA512 516e60632459dd5408f83035aa265ed4169b13f978a23960a85837c9c8b5bbab70776e22a6e6727184bd9df81cbbeff4a5819d5927ff0ff3a79036bc4c54cfdc WHIRLPOOL 5180ea7a00028f724bc4e628152c600e284d9852cbb096d99e116028118e7945aaf082d7b33d8cd12c9b9a56f1e3e8230382cb17151816b668536b2ab7ea2108 diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.1.2.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.1.2.ebuild new file mode 100644 index 00000000000..a15aecbe41c --- /dev/null +++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.1.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" +HOMEPAGE="http://www.sysresccd.org/" +# Large ISO mirroring explicitly approved by infra in bug #588766 +SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" + +LICENSE="GPL-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+isohybrid" + +DEPEND="isohybrid? ( >=sys-boot/syslinux-4 )" + +S=${WORKDIR} + +src_install() { + insinto "/usr/share/${PN%-*}" + doins "${DISTDIR}/${P}.iso" + + if use isohybrid; then + set -- isohybrid -u "${ED}usr/share/${PN%-*}/${P}.iso" + echo "${@}" + "${@}" || die "${*} failed" + fi +} + +pkg_postinst() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # no version newer than ours? we're the newest! + if ! has_version ">${CATEGORY}/${PF}"; then + ln -f -s -v "${P}.iso" "${f}" || die + fi +} + +pkg_postrm() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # if there is no version newer than ours installed + if ! has_version ">${CATEGORY}/${PF}"; then + # and we are truly and completely uninstalled... + if [[ ! ${REPLACED_BY_VERSION} ]]; then + # then find an older version to set the symlink to + local newest_version=$(best_version "<${CATEGORY}/${PF}") + + if [[ ${newest_version} ]]; then + # update the symlink + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die + else + # last version removed? clean up the symlink + rm -v "${f}" || die + # and the parent directory + rmdir "${f%/*}" || die + fi + fi + fi +}