diff options
author | Mike Auty <ikelos@gentoo.org> | 2009-09-06 22:41:52 +0000 |
---|---|---|
committer | Mike Auty <ikelos@gentoo.org> | 2009-09-06 22:41:52 +0000 |
commit | ff7c37e8d0ba6b7d69210d4817d6f41eb2670abd (patch) | |
tree | 6724c2eec6eac19dd4a8a26f38605de45fc8f64e /app-admin/longrun | |
parent | Remove unused patch. Fix repoman complains. (diff) | |
download | historical-ff7c37e8d0ba6b7d69210d4817d6f41eb2670abd.tar.gz historical-ff7c37e8d0ba6b7d69210d4817d6f41eb2670abd.tar.bz2 historical-ff7c37e8d0ba6b7d69210d4817d6f41eb2670abd.zip |
Add in kernel config existence checks (bug 283320).
Package-Manager: portage-2.2_rc40/cvs/Linux i686
Diffstat (limited to 'app-admin/longrun')
-rw-r--r-- | app-admin/longrun/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/longrun/Manifest | 13 | ||||
-rw-r--r-- | app-admin/longrun/longrun-0.9-r4.ebuild | 74 |
3 files changed, 92 insertions, 2 deletions
diff --git a/app-admin/longrun/ChangeLog b/app-admin/longrun/ChangeLog index b6bc2947a6c9..fbd415ed72f1 100644 --- a/app-admin/longrun/ChangeLog +++ b/app-admin/longrun/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/longrun # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/longrun/ChangeLog,v 1.19 2009/09/06 21:33:44 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/longrun/ChangeLog,v 1.20 2009/09/06 22:41:52 ikelos Exp $ + +*longrun-0.9-r4 (06 Sep 2009) + + 06 Sep 2009; Mike Auty <ikelos@gentoo.org> +longrun-0.9-r4.ebuild: + Add in kernel config existence checks (bug 283320). 06 Sep 2009; Robin H. Johnson <robbat2@gentoo.org> longrun-0.9-r3.ebuild: Linux-info cleanup (bug #283320): make more CONFIG_CHECK non-fatal. diff --git a/app-admin/longrun/Manifest b/app-admin/longrun/Manifest index 8e3a85a09628..87f53e40e92d 100644 --- a/app-admin/longrun/Manifest +++ b/app-admin/longrun/Manifest @@ -1,6 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX 0.9-makefile_cflags.patch 577 RMD160 a1dc5c57be75f5323524e620ecdc9fdf51c3e6ef SHA1 9b12e9577cd3de82688f7f3229b0f542d65b45b8 SHA256 b6a6a4aa96047c8f4fd398270784e1ea881f5e2a56f212af79b0008d4cd3f823 DIST longrun-0.9.tar.bz2 11539 RMD160 340fde69f8a719cea1ace07b6051f8f45ee13729 SHA1 bfb0ed919834dd0563f9b3fdc45804f05c1a0d61 SHA256 85d2bb0694ded7d727c3f819b12432a78b7c3d9723580d17d7a9e3a21d969f7b DIST longrun_0.9-19.diff.gz 14697 RMD160 9c3e19de444c814af4fa90d1cd760abc36b0b91a SHA1 d1380ee0c92d9d1f49cf7be7dc1043fc24eda977 SHA256 4f9d133c8739ac2bbf0ec53d1356a42064b9b06b3559a93af538c809f851fc14 EBUILD longrun-0.9-r3.ebuild 1748 RMD160 9851ba54f0df2ff54729fa70d637d40bc7ba9dcc SHA1 abfd50396e7716d30a884c2ca54133368f715aa6 SHA256 220a038dc2bbaf197bc19d6c24a135b90222cf310706fa88566bb69d7fa34c1d -MISC ChangeLog 2823 RMD160 90f5d55e7fd226ca7c47613b8090d6b8307efee0 SHA1 2c63eab047c7f6ca28ff5fa54c7921bb537a47c6 SHA256 04fa8b73ff824730e831eb652306e5924fc9bf49e920a3f0978a62a4deef33a8 +EBUILD longrun-0.9-r4.ebuild 1958 RMD160 e7682db800c4d0b2dec614f7cc341b09437297f8 SHA1 968bcd18778f54fa73b03a1adde582286bae3ea4 SHA256 11ae81ac4581d82f563335d33659f1c025c06108544fe263563aacab12be0d39 +MISC ChangeLog 2977 RMD160 1eb7ed12a8ca267b499117da28d8f9f5fc400754 SHA1 e9ea7d5ff21176cf16f9b1eb90e9a0c6f0345a9b SHA256 d7b084d094dde636d0f487082fa09f06a4195e15d61f2fe5505af3bfbe2d7c63 MISC metadata.xml 440 RMD160 be628ce1b6bc9fd4bda1a0db50af110097282f48 SHA1 b33e1d9e9f48e531c26ef589f3908f195f7325e5 SHA256 e42b2101471c5ee54a1ba72d4fe8a7daf6ad50d19b8890710c0560f7fcca59f0 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkqkOrsACgkQu7rWomwgFXp6yACeJVysDS5J6cPxmP95GLi7VjHc +k4QAnjhDzIWzAgGB3epEMnOg36hxzg/e +=XNxv +-----END PGP SIGNATURE----- diff --git a/app-admin/longrun/longrun-0.9-r4.ebuild b/app-admin/longrun/longrun-0.9-r4.ebuild new file mode 100644 index 000000000000..a0fd44d1c4aa --- /dev/null +++ b/app-admin/longrun/longrun-0.9-r4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/longrun/longrun-0.9-r4.ebuild,v 1.1 2009/09/06 22:41:52 ikelos Exp $ + +inherit eutils linux-info toolchain-funcs + +DESCRIPTION="A utility to control Transmeta's Crusoe and Efficeon processors" +HOMEPAGE="http://freshmeat.net/projects/longrun/" + +DEBIAN_PATCH_VERSION="19" +DEBIAN_PATCH="${PN}_${PV}-${DEBIAN_PATCH_VERSION}.diff.gz" +SRC_URI=" + mirror://kernel/linux/utils/cpu/crusoe/${P}.tar.bz2 + mirror://debian/pool/main/l/${PN}/${DEBIAN_PATCH}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-ppc ~x86" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/${PN} + +CONFIG_CHECK="~X86_MSR ~X86_CPUID" + +ERROR_X86_MSR=" +Longrun needs a MSR device to function. Please select +MSR under Processor type and features. It can be build +directly into the kernel or as a module. +" + +ERROR_X86_CPUID=" +Longrun needs a CPUID device to function. Please select +CPUID under Processor type and features. It can be +build directly into the kernel or as a module. +" + +src_unpack() { + unpack ${P}.tar.bz2 + cd "${S}" + epatch "${DISTDIR}/${DEBIAN_PATCH}" + epatch "${FILESDIR}/${PV}-makefile_cflags.patch" +} + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc MAKEDEV-cpuid-msr +} + +pkg_postinst() { + if linux_config_exists; then + if linux_chkconfig_module X86_MSR; then + elog "You have compiled MSR as a module." + elog "You need to load it before using Longrun." + elog "The module is called msr." + elog + fi + + if linux_chkconfig_module X86_CPUID; then + elog "You have compiled CPUID as a module." + elog "You need to load it before using Longrun." + elog "The module is called cpuid." + fi + else + elog "You have no kernel configuration available." + elog "Longrun needs both CPUID and MSR capabilites," + elog "in the kernel you intend to run it under." + fi +} |