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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 73B71158020 for ; Sun, 13 Nov 2022 17:12:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BECB5E0955; Sun, 13 Nov 2022 17:12:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A49A4E0955 for ; Sun, 13 Nov 2022 17:12:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 85080340FBF for ; Sun, 13 Nov 2022 17:12:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03A6B5D6 for ; Sun, 13 Nov 2022 17:12:18 +0000 (UTC) From: "Bernard Cafarelli" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Bernard Cafarelli" Message-ID: <1668359535.e30064cc3d8dcda83eec12470dc27a1e9b4099ca.voyageur@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/linux-logo/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/linux-logo/Manifest app-misc/linux-logo/linux-logo-6.01.ebuild X-VCS-Directories: app-misc/linux-logo/ X-VCS-Committer: voyageur X-VCS-Committer-Name: Bernard Cafarelli X-VCS-Revision: e30064cc3d8dcda83eec12470dc27a1e9b4099ca X-VCS-Branch: master Date: Sun, 13 Nov 2022 17:12:18 +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: 96d67b97-b2a2-4d47-a3eb-3b5f26beb7d0 X-Archives-Hash: e4abc9aafa138921b79ee75ac1ceb932 commit: e30064cc3d8dcda83eec12470dc27a1e9b4099ca Author: Bernard Cafarelli gentoo org> AuthorDate: Sun Nov 13 17:12:03 2022 +0000 Commit: Bernard Cafarelli gentoo org> CommitDate: Sun Nov 13 17:12:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e30064cc app-misc/linux-logo: add 6.01 Signed-off-by: Bernard Cafarelli gentoo.org> app-misc/linux-logo/Manifest | 1 + app-misc/linux-logo/linux-logo-6.01.ebuild | 80 ++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/app-misc/linux-logo/Manifest b/app-misc/linux-logo/Manifest index ac5e5f3c7706..e5c12291a4b1 100644 --- a/app-misc/linux-logo/Manifest +++ b/app-misc/linux-logo/Manifest @@ -1 +1,2 @@ DIST linux_logo-6.0.tar.gz 117486 BLAKE2B 3340b893574f0c18561b208824cd80cff19c387d981af6ca63f56e691cebd2030e058ef367d91a999fd662592582da38b21a5a31f3f8364dbd87a43bd2c2b608 SHA512 ebd7513f90e79bb21acd984c671a1d1ce8421411d2b2948b01e6e08f7c9826184f9b9d528e0cfc814df8d8015d444a09c45025c344115ac9a6c2cff5743f03ad +DIST linux_logo-6.01.tar.gz 119482 BLAKE2B 369e99ab4fbc77fc41d3598c11a4a5c8c1b7bdd246408b0fab5f623fb6a701edf6e2e5f2ce494e9c8aaac3d00cc47525a0daf6525cf9bbbf068d5eeba93a9f6e SHA512 1949758289b79baa9219665f59f92edab20dfa4c3e33fa32ff99ea1da36eccaf65a5ac1135b70cb8309c13d722a651c639c210383510347789f949e9f5148809 diff --git a/app-misc/linux-logo/linux-logo-6.01.ebuild b/app-misc/linux-logo/linux-logo-6.01.ebuild new file mode 100644 index 000000000000..73344efa46bc --- /dev/null +++ b/app-misc/linux-logo/linux-logo-6.01.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit toolchain-funcs systemd + +MY_P=${PN/-/_}-${PV} +DESCRIPTION="A utility that displays an ANSI/ASCII logo and some system information" +HOMEPAGE="http://www.deater.net/weave/vmwprod/linux_logo/" +SRC_URI="http://www.deater.net/weave/vmwprod/linux_logo/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="nls" + +RDEPEND="nls? ( virtual/libintl )" +DEPEND="${RDEPEND}" +BDEPEND="nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/"${PN}"-6.0-configure.patch +) + +DOCS=( BUGS README README.CUSTOM_LOGOS TODO USAGE LINUX_LOGO.FAQ ) + +S=${WORKDIR}/${MY_P} + +src_prepare() { + cp "${FILESDIR}"/logo-config "${S}/logo_config" || die + cp "${FILESDIR}"/linux_logo_creator "${S}/" || die + cp "${FILESDIR}"/linux-logo.service "${S}/" || die + cp "${FILESDIR}"/gentoo-*.logo "${S}"/logos/ || die + + sed -e 's#=$(PREFIX)#=$(DESTDIR)$(PREFIX)#' -i po/Makefile || die + + # Manpage is already gzipped in tarball + gunzip linux_logo.1.gz || die + sed -e "s/.1.gz/.1/g" -i Makefile || die + + default +} + +src_configure() { + ARCH="" CC="$(tc-getCC)" AR="$(tc-getAR)" econf +} + +src_install() { + default + + dobin "${FILESDIR}"/linux_logo_creator + newinitd "${FILESDIR}"/${PN}.init.d ${PN} + newconfd "${FILESDIR}"/${PN}-5.11.conf ${PN} + + # systemd support + systemd_newunit "${FILESDIR}/linux-logo.service" "linux-logo.service" +} + +pkg_postinst() { + echo + elog "Linux_logo ebuild for Gentoo comes with two Gentoo logos." + elog "" + elog "To display the first Gentoo logo type: linux_logo -L gentoo" + elog "To display the second Gentoo logo type: linux_logo -L gentoo-alt" + elog "To display all the logos available type: linux_logo -L list." + elog "" + elog "To start linux_logo on boot, please type:" + elog " rc-update add linux-logo default" + elog "or for systemd" + elog " systemctl enable linux-logo.service" + elog "which uses the settings found in" + elog " /etc/conf.d/linux-logo" + echo +} + +pkg_prerm() { + # Restore issue files + mv /etc/issue.linux-logo.backup /etc/issue 2> /dev/null + mv /etc/issue.net.linux-logo.backup /etc/issue.net 2> /dev/null +}