summaryrefslogtreecommitdiff
path: root/app-misc/linux-logo
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc/linux-logo
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc/linux-logo')
-rw-r--r--app-misc/linux-logo/Manifest1
-rw-r--r--app-misc/linux-logo/files/gentoo-alt.logo39
-rw-r--r--app-misc/linux-logo/files/gentoo-linux.logo82
-rw-r--r--app-misc/linux-logo/files/linux-logo-5.11.conf28
-rw-r--r--app-misc/linux-logo/files/linux-logo.init.d36
-rw-r--r--app-misc/linux-logo/files/linux-logo.service9
-rw-r--r--app-misc/linux-logo/files/linux_logo_creator12
-rw-r--r--app-misc/linux-logo/files/logo-config7
-rw-r--r--app-misc/linux-logo/linux-logo-5.11-r3.ebuild77
-rw-r--r--app-misc/linux-logo/metadata.xml17
10 files changed, 308 insertions, 0 deletions
diff --git a/app-misc/linux-logo/Manifest b/app-misc/linux-logo/Manifest
new file mode 100644
index 00000000000..82104ca8369
--- /dev/null
+++ b/app-misc/linux-logo/Manifest
@@ -0,0 +1 @@
+DIST linux_logo-5.11.tar.gz 103623 SHA256 f56634d7b6bebd6598705d973997435fdc9cb9115dea3cc1d63398c92ebe72d9 SHA512 3c11d59eeb1ea613eb66d3ea5ef2d7c9ef906cb12430b9350570a6a1937ec174bdd974e6227358339c3fd2e0647a5066a0bea22289c4aa9bc8b03afb0033f114 WHIRLPOOL d2f83045df8c2f23f74a527af1aa36ea952fb3595ebed39d216b6ccdf12609051598024e703c8af6d496cf1c7e66de27104dfdb885fe8bbab60e1607fd0ed1a5
diff --git a/app-misc/linux-logo/files/gentoo-alt.logo b/app-misc/linux-logo/files/gentoo-alt.logo
new file mode 100644
index 00000000000..f60430dade9
--- /dev/null
+++ b/app-misc/linux-logo/files/gentoo-alt.logo
@@ -0,0 +1,39 @@
+# Gentoo Logo
+# Added by James Rowe <Jay@jnrowe.uklinux.net>
+# Assigned to Gentoo Foundation under GPL2
+
+SYSINFO_POSITION bottom
+
+NAME gentoo-alt
+
+DESCRIPTION_STRING Gentoo Linux Logo
+
+BEGIN_LOGO
+
+
+ .
+ .vir. d$b
+ .d$$$$$$b. .cd$$b. .d$$b. d$$$$$$$$$$$b .d$$b. .d$$b.
+ $$$$( )$$$b d$$$()$$$. d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b. .$$$$$$$b.
+ Q$$$$$$$$$$B$$$$$$$$P" d$$$PQ$$$$b. $$$$. .$$$P' `$$$ .$$$P' `$$$
+ "$$$$$$$P Q$$$$$$$b d$$$P Q$$$$b $$$$b $$$$b..d$$$ $$$$b..d$$$
+ d$$$$$$P" "$$$$$$$$ Q$$$ Q$$$$ $$$$$ `Q$$$$$$$P `Q$$$$$$$P
+| $$$$$$$P `""""" "" "" Q$$$P "Q$$$P" "Q$$$P"
+| `Q$$P" """
++--------------------------------------------------------- l i n u x
+END_LOGO
+
+BEGIN_ASCII_LOGO
+
+
+ .
+ .vir. d$b
+ .d$$$$$$b. .cd$$b. .d$$b. d$$$$$$$$$$$b .d$$b. .d$$b.
+ $$$$( )$$$b d$$$()$$$. d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b. .$$$$$$$b.
+ Q$$$$$$$$$$B$$$$$$$$P" d$$$PQ$$$$b. $$$$. .$$$P' `$$$ .$$$P' `$$$
+ "$$$$$$$P Q$$$$$$$b d$$$P Q$$$$b $$$$b $$$$b..d$$$ $$$$b..d$$$
+ d$$$$$$P" "$$$$$$$$ Q$$$ Q$$$$ $$$$$ `Q$$$$$$$P `Q$$$$$$$P
+| $$$$$$$P `""""" "" "" Q$$$P "Q$$$P" "Q$$$P"
+| `Q$$P" """
++--------------------------------------------------------- l i n u x
+END_ASCII_LOGO
diff --git a/app-misc/linux-logo/files/gentoo-linux.logo b/app-misc/linux-logo/files/gentoo-linux.logo
new file mode 100644
index 00000000000..73581f001eb
--- /dev/null
+++ b/app-misc/linux-logo/files/gentoo-linux.logo
@@ -0,0 +1,82 @@
+# Gentoo Linux logo
+# Drawn by Harri Hautakangas
+# Assigned to Gentoo Foundation under GPL2
+
+SYSINFO_POSITION bottom
+
+NAME gentoo
+
+DESCRIPTION_STRING Gentoo Logo
+
+BEGIN_LOGO
+.....####......................................##
+#.............................
+....#######....................... ###
+.........###.............................
+...##########.....................
+####....#############...................
+.....
+...####..#######....#####
+........######...#############...
+#####.......#####....
+...#############...######
+#......########...
+############..#######
+.....#######...
+....###########.. ##
+#.####..... ###
+#.####......###
+#.... #########...#########
+..
+......########...########
+......#####..###
+#.....####....###########
+.###########.
+.......######....######........
+####....####....
+####....########
+###.###########.
+......######.....######.......
+#####.....####..
+.####....#####.
+.####.#####..####
+.
+.....######......##########...
+####.......####.
+.####....##########
+..##########..
+.....#####.......########
+###.#####........#
+###.####.....#
+#######....########...
+.....####.........#
+#########.#####
+........####.###
+#......######......#
+#####....
+......##...........######## 
+. ####.........##...
+###.......####........
+####.....
+................................................................
+... ...........
+
+END_LOGO
+
+BEGIN_ASCII_LOGO
+.....####......................................###.............................
+....#######....................... ###.........###.............................
+...##########.....................####....#############........................
+...####..#######....#####........######...#############...#####.......#####....
+...#############...#######......########...############..#######.....#######...
+....###########.. ###.####..... ####.####......####.... #########...#########..
+......########...########......#####..####.....####....###########.###########.
+.......######....######........####....####....####....###########.###########.
+......######.....######.......#####.....####...####....#####..####.#####..####.
+.....######......##########...####.......####..####....##########..##########..
+.....#####.......###########.#####........####.####.....########....########...
+.....####.........##########.#####........####.####......######......######....
+......##...........######## . ####.........##...###.......####........####.....
+................................................................... ...........
+
+END_ASCII_LOGO
diff --git a/app-misc/linux-logo/files/linux-logo-5.11.conf b/app-misc/linux-logo/files/linux-logo-5.11.conf
new file mode 100644
index 00000000000..355ebc5cc08
--- /dev/null
+++ b/app-misc/linux-logo/files/linux-logo-5.11.conf
@@ -0,0 +1,28 @@
+# Seq Description Output
+# ----------------------------------------------------------------
+# ## #
+# #B Bogomips 374.37
+# #C Compiled Date #47 Fri Jan 8 10:37:09 EST 1999
+# #E User Text My Favorite Linux Distribution
+# Displayed with -t
+# #H Hostname deranged
+# #L Load average Load average 0.04, 0.01, 0.01
+# #M Megahertz 188Mhz
+# where supported
+# #N Number of CPU's Two
+# #O OS Name Linux
+# #P Processor or Processors Processor
+# #R Ram 64M
+# in Megabytes
+# #S Plural s
+# #T Type of CPU K6
+# #U Uptime Uptime 10 hours 59 minutes
+# #V Version of OS 2.2.0-pre5
+# #X CPU Vendor AMD
+# \\n carriage return
+
+LOGO="-L gentoo"
+FORMAT="Gentoo #O `cat /etc/gentoo-release | awk '{ print $5,$6 }'`\n#O #V, Compiled #C\n#N #X #T #M CPU#S, #R RAM, #B Bogomips\n#U\n#H / \l \n"
+FORMATNET="Gentoo #O `cat /etc/gentoo-release | awk '{ print $5,$6 }'`\n#O #V, Compiled #C\n#N #X #T #M CPU#S, #R RAM, #B Bogomips\n#U\n#H\n"
+OPTIONS="-f -u"
+
diff --git a/app-misc/linux-logo/files/linux-logo.init.d b/app-misc/linux-logo/files/linux-logo.init.d
new file mode 100644
index 00000000000..50ca96b04eb
--- /dev/null
+++ b/app-misc/linux-logo/files/linux-logo.init.d
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+
+ISSUE_BACKUP_FILE="/etc/issue.linux-logo.backup"
+ISSUE_NET_BACKUP_FILE="/etc/issue.net.linux-logo.backup"
+
+start() {
+ ebegin "Starting linux_logo"
+
+ if [ ! -x /usr/bin/linux_logo ]
+ then
+ eerror "ERROR: linux_logo not found !"
+ return 1
+ fi
+
+ ebegin " Creating /etc/issue"
+ cp /etc/issue ${ISSUE_BACKUP_FILE} 2> /dev/null
+ /usr/bin/linux_logo ${LOGO} ${OPTIONS} -F "${FORMAT}" > /etc/issue
+ eend $? " Failed to create /etc/issue"
+
+ if [ -f /etc/issue.net ]
+ then
+ ebegin " Creating /etc/issue.net"
+ cp /etc/issue.net ${ISSUE_NET_BACKUP_FILE} 2> /dev/null
+ /usr/bin/linux_logo ${LOGO} ${OPTIONS} -F "${FORMATNET}" > \
+ /etc/issue.net
+ eend $? " Failed to create /etc/issue.net"
+ fi
+}
+
+stop() {
+ ebegin "Stopping linux_logo"
+ [ -f ${ISSUE_NET_BACKUP_FILE} ] && \
+ mv ${ISSUE_NET_BACKUP_FILE} /etc/issue.net 2> /dev/null
+ [ -f ${ISSUE_BACKUP_FILE} ] && \
+ mv ${ISSUE_BACKUP_FILE} /etc/issue 2> /dev/null
+}
diff --git a/app-misc/linux-logo/files/linux-logo.service b/app-misc/linux-logo/files/linux-logo.service
new file mode 100644
index 00000000000..658d7103c5e
--- /dev/null
+++ b/app-misc/linux-logo/files/linux-logo.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=linux-logo-creator
+After=systemd-user-sessions.service
+
+[Service]
+ExecStart=/usr/bin/linux_logo_creator
+
+[Install]
+WantedBy=logo.target
diff --git a/app-misc/linux-logo/files/linux_logo_creator b/app-misc/linux-logo/files/linux_logo_creator
new file mode 100644
index 00000000000..5acc2fd5b85
--- /dev/null
+++ b/app-misc/linux-logo/files/linux_logo_creator
@@ -0,0 +1,12 @@
+#!/bin/bash
+FORMAT="Gentoo #O `cat /etc/gentoo-release | awk '{ print $5,$6 }'`\n#O #V, Compiled #C\n#N #X #T #M CPU#S, #R RAM, #B Bogomips\n#U\n#H / \l \n"
+FORMATNET="Gentoo #O `cat /etc/gentoo-release | awk '{ print $5,$6 }'`\n#O #V, Compiled #C\n#N #X #T #M CPU#S, #R RAM, #B Bogomips\n#U\n#H\n"
+OPTIONS="-L 2 -f -u"
+OPTIONSNET="-L 2 -f -u -a "
+
+# FORMAT="Gentoo Linux `cat /etc/gentoo-release | awk '{ print $5,$6 }'`"
+# /usr/bin/linux_logo -L 2 -f -u
+
+/usr/bin/linux_logo ${LOGO} ${OPTIONS} -F "${FORMAT}" > /etc/issue
+/usr/bin/linux_logo ${LOGO} ${OPTIONSNET} -F "${FORMATNET}" > /etc/issue.net
+
diff --git a/app-misc/linux-logo/files/logo-config b/app-misc/linux-logo/files/logo-config
new file mode 100644
index 00000000000..68ce395cf5e
--- /dev/null
+++ b/app-misc/linux-logo/files/logo-config
@@ -0,0 +1,7 @@
+./logos/gentoo-linux.logo
+./logos/gentoo-alt.logo
+./logos/banner-simplified.logo
+./logos/banner.logo
+./logos/classic-no_periods.logo
+./logos/classic-no_periods_or_chars.logo
+./logos/classic.logo
diff --git a/app-misc/linux-logo/linux-logo-5.11-r3.ebuild b/app-misc/linux-logo/linux-logo-5.11-r3.ebuild
new file mode 100644
index 00000000000..99586b380b4
--- /dev/null
+++ b/app-misc/linux-logo/linux-logo-5.11-r3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs systemd
+
+MY_P=${PN/-/_}-${PV}
+S=${WORKDIR}/${MY_P}
+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 hppa ~ia64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux"
+IUSE="nls"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+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
+
+ # Remove warn_unused_result warning
+ sed -i -e 's/FILE \*fff;/FILE \*fff;\n char *stemp;/' \
+ -e 's/fgets/stemp=fgets/' "${S}"/load_logo.c || die
+}
+
+src_configure() {
+ ARCH="" ./configure --prefix="${ED}"/usr || die
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake install
+
+ dodoc BUGS README README.CUSTOM_LOGOS TODO USAGE LINUX_LOGO.FAQ
+
+ dobin "${FILESDIR}"/linux_logo_creator
+ newinitd "${FILESDIR}"/${PN}.init.d ${PN}
+ newconfd "${FILESDIR}"/${P}.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
+}
diff --git a/app-misc/linux-logo/metadata.xml b/app-misc/linux-logo/metadata.xml
new file mode 100644
index 00000000000..ccd2d6efab7
--- /dev/null
+++ b/app-misc/linux-logo/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>nimiux@gentoo.org</email>
+ <name>Chema Alonso</name>
+</maintainer>
+<longdescription lang="en">
+ A utility that displays an ANSI/ASCII logo and some system information
+</longdescription>
+<longdescription lang="es">
+ Una utlidad que muestra un logotipo ANSI/ASCII e información del sistema
+</longdescription>
+<use>
+ <flag name="nls">Add Native Language Support (using gettext - GNU locale utilities)</flag>
+</use>
+</pkgmetadata>