diff options
author | Michael Januszewski <spock@gentoo.org> | 2004-04-24 19:29:58 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2004-04-24 19:29:58 +0000 |
commit | a24bc541363c1f7bba377b2de7e74b9563395a2b (patch) | |
tree | 34b742d22dc24bdab562c003262b455222537450 /app-misc/linux-logo | |
parent | marked ppc64 stable (Manifest recommit) (diff) | |
download | gentoo-2-a24bc541363c1f7bba377b2de7e74b9563395a2b.tar.gz gentoo-2-a24bc541363c1f7bba377b2de7e74b9563395a2b.tar.bz2 gentoo-2-a24bc541363c1f7bba377b2de7e74b9563395a2b.zip |
Version bump, added initscript and metadata.
Diffstat (limited to 'app-misc/linux-logo')
-rw-r--r-- | app-misc/linux-logo/ChangeLog | 11 | ||||
-rw-r--r-- | app-misc/linux-logo/files/digest-linux-logo-4.09 | 1 | ||||
-rw-r--r-- | app-misc/linux-logo/files/linux-logo.conf | 27 | ||||
-rw-r--r-- | app-misc/linux-logo/files/linux-logo.initscript | 19 | ||||
-rw-r--r-- | app-misc/linux-logo/linux-logo-4.09.ebuild | 73 | ||||
-rw-r--r-- | app-misc/linux-logo/metadata.xml | 8 |
6 files changed, 137 insertions, 2 deletions
diff --git a/app-misc/linux-logo/ChangeLog b/app-misc/linux-logo/ChangeLog index fc1086aa409e..76c0cbcec2a2 100644 --- a/app-misc/linux-logo/ChangeLog +++ b/app-misc/linux-logo/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-misc/linux-logo -# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/linux-logo/ChangeLog,v 1.4 2003/10/31 19:12:34 gmsoft Exp $ +# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/linux-logo/ChangeLog,v 1.5 2004/04/24 19:29:58 spock Exp $ + +*linux-logo-4.09 (24 Apr 2004) + + 24 Apr 2004; Michal Januszewski <spock@gentoo.org> +files/linux-logo.conf, + +files/linux-logo.initscript, +linux-logo-4.09.ebuild: + Added an ebuild for the newest version. Added initscript to make setting + /etc/issue easier. Closes bug #47221. 23 Sep 2003; Todd Sunderlin <todd@gentoo.org> linux-logo-4.07.ebuild: added ~sparc keyword diff --git a/app-misc/linux-logo/files/digest-linux-logo-4.09 b/app-misc/linux-logo/files/digest-linux-logo-4.09 new file mode 100644 index 000000000000..913c38d10da7 --- /dev/null +++ b/app-misc/linux-logo/files/digest-linux-logo-4.09 @@ -0,0 +1 @@ +MD5 ba970437da602e1dbb4c244303793cd6 linux_logo-4.09.tar.gz 89161 diff --git a/app-misc/linux-logo/files/linux-logo.conf b/app-misc/linux-logo/files/linux-logo.conf new file mode 100644 index 000000000000..fc7006b60a3c --- /dev/null +++ b/app-misc/linux-logo/files/linux-logo.conf @@ -0,0 +1,27 @@ +# 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 + +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 4 -f -u" + diff --git a/app-misc/linux-logo/files/linux-logo.initscript b/app-misc/linux-logo/files/linux-logo.initscript new file mode 100644 index 000000000000..cbdba089f166 --- /dev/null +++ b/app-misc/linux-logo/files/linux-logo.initscript @@ -0,0 +1,19 @@ +#!/sbin/runscript + +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" + /usr/bin/linux_logo $LOGO $OPTIONS -F "${FORMAT}" > /etc/issue + eend $? " Failed to create /etc/issue" + + ebegin " Creating /etc/issue.net" + /usr/bin/linux_logo $LOGO $OPTIONS -F "${FORMATNET}" > /etc/issue.net + eend $? " Failed to create /etc/issue.net" +} diff --git a/app-misc/linux-logo/linux-logo-4.09.ebuild b/app-misc/linux-logo/linux-logo-4.09.ebuild new file mode 100644 index 000000000000..4e35699ccd46 --- /dev/null +++ b/app-misc/linux-logo/linux-logo-4.09.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/linux-logo/linux-logo-4.09.ebuild,v 1.1 2004/04/24 19:29:58 spock Exp $ + +inherit eutils + +MY_P=${PN/-/_}-${PV} +S=${WORKDIR}/${MY_P} +DESCRIPTION="Displays an ansi or an 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="~x86" +IUSE="nls" + +DEPEND="virtual/glibc + >=sys-apps/sed-4" +RDEPEND="nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd ${S} + echo "./logos/gentoo.logo" >> logo_config + cp ${FILESDIR}/gentoo.logo ${S}/logos/. + + epatch ${FILESDIR}/${PN}-4.07-gentoo-logo.patch + + if [ -z "`use nls`" ] + then + sed -i 's:cd po && $(MAKE)::' Makefile + fi +} + +src_compile() { + make || die +} + +src_install() { + dobin linux_logo + doman linux_logo.1.gz + + dodoc BUGS CHANGES COPYING README README.CUSTOM_LOGOS TODO USAGE + dodoc LINUX_LOGO.FAQ + + if use nls + then + dodir /usr/share/locale + make INSTALLDIR=${D}/usr/share/locale -C po install || die + fi + + exeinto /etc/init.d + newexe ${FILESDIR}/${PN}.initscript ${PN} + + insinto /etc/conf.d + newins ${FILESDIR}/${PN}.conf ${PN} +} + +pkg_postinst() { + echo + einfo "Linux_logo ebuild for Gentoo comes with two Gentoo logos." + einfo "" + einfo "To display the first Gentoo logo type: linux_logo -L 3" + einfo "To display the second Gentoo logo type: linux_logo -L 4" + einfo "To display all the logos available type: linux_logo -L list." + einfo "" + einfo "To start linux_logo on boot, please type:" + einfo " rc-update add linux-logo default" + einfo "which uses the settings found in" + einfo " /etc/conf.d/linux-logo" + echo +} diff --git a/app-misc/linux-logo/metadata.xml b/app-misc/linux-logo/metadata.xml new file mode 100644 index 000000000000..28b373129e37 --- /dev/null +++ b/app-misc/linux-logo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>spock@gentoo.org</email> +</maintainer> +</pkgmetadata> |