From 3f5580ac9e0b5bd2344918170d6cbda02e670255 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Fri, 15 Feb 2013 16:32:03 -0800 Subject: [PATCH] chore(sys-power/powertop): import from portage Change-Id: I52edb67e18da90ae2b6fd62ef4360c1f1b7a16d1 --- .../sys-power/powertop/ChangeLog | 309 ++++++++++++++++++ .../sys-power/powertop/Manifest | 14 +- .../powertop-2.2-use-package_version.patch | 26 ++ .../sys-power/powertop/metadata.xml | 8 + .../sys-power/powertop/powertop-1.13.ebuild | 43 +++ .../sys-power/powertop/powertop-2.2-r1.ebuild | 107 ++++++ .../sys-power/powertop/powertop-9999.ebuild | 99 ++++++ 7 files changed, 605 insertions(+), 1 deletion(-) create mode 100644 sdk_container/src/third_party/portage-stable/sys-power/powertop/ChangeLog create mode 100644 sdk_container/src/third_party/portage-stable/sys-power/powertop/files/powertop-2.2-use-package_version.patch create mode 100644 sdk_container/src/third_party/portage-stable/sys-power/powertop/metadata.xml create mode 100644 sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-1.13.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-2.2-r1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-9999.ebuild diff --git a/sdk_container/src/third_party/portage-stable/sys-power/powertop/ChangeLog b/sdk_container/src/third_party/portage-stable/sys-power/powertop/ChangeLog new file mode 100644 index 0000000000..3edfdedf44 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-power/powertop/ChangeLog @@ -0,0 +1,309 @@ +# ChangeLog for sys-power/powertop +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/ChangeLog,v 1.74 2012/12/09 20:48:24 zerochaos Exp $ + + 09 Dec 2012; Rick Farina -powertop-1.11.ebuild, + -powertop-2.0.ebuild, -powertop-2.1-r1.ebuild, -powertop-2.1.ebuild, + powertop-2.2-r1.ebuild: + fix gettext deps per bug #398977 and clean out old ebuilds + +*powertop-2.2-r1 (23 Nov 2012) + + 23 Nov 2012; Rick Farina + +files/powertop-2.2-use-package_version.patch, +powertop-2.2-r1.ebuild, + -powertop-2.2.ebuild: + fix powertop 2.2 to report proper version tag wrt bug #444466 + + 22 Nov 2012; Rick Farina powertop-2.2.ebuild: + fix bug #444370 by switching to EAPI5, there goes my cherry + +*powertop-2.2 (22 Nov 2012) + + 22 Nov 2012; Rick Farina +powertop-2.2.ebuild: + bump to 2.2 + + 22 Nov 2012; Rick Farina powertop-2.1-r1.ebuild, + powertop-9999.ebuild: + SND_HDA_POWER_SAVE deprecated in kernel 3.7.0 so we conditionalize the check + + 18 Nov 2012; Pacho Ramos metadata.xml: + Drop mobile herd as talked in gentoo-dev ML + + 20 Sep 2012; Rick Farina powertop-2.1-r1.ebuild, + powertop-9999.ebuild: + match linux_config_exists format from other ebuilds to quiet reported warnings + + 18 Sep 2012; Rick Farina powertop-2.1-r1.ebuild, + powertop-9999.ebuild: + quiet a few useless warnings and fix live ebuild + + 17 Sep 2012; Rick Farina powertop-2.1-r1.ebuild: + reorder a few things, hopefully this is safer and avoids env pollution + + 14 Sep 2012; Rick Farina powertop-2.1-r1.ebuild: + my attempt to clarify kconfig requirements, and adjust SND_HDA stuff based on + complain in bug 434824 + + 14 Sep 2012; Rick Farina powertop-2.1-r1.ebuild: + make kconfig checks non-fatal to accomodate builders who don't use powertop + + 14 Sep 2012; Rick Farina metadata.xml: + tired of seaching for powertop bugs so now I'm the maintainer + + 14 Sep 2012; Rick Farina powertop-2.1-r1.ebuild: + bug #417485 requested xset become optional for users without X + + 11 Sep 2012; Rick Farina powertop-2.1-r1.ebuild: + addressing some concerns from bug# 414803 + +*powertop-2.1-r1 (10 Sep 2012) + + 10 Sep 2012; Rick Farina +powertop-2.1-r1.ebuild: + properly check required kernel options, based on bug #414803 + + 07 Sep 2012; Sergey Popov powertop-2.1.ebuild: + Revert back src_configure logic and ncurses dependency, make it correct. + Thanks to leio for pointing on this issue + + 07 Sep 2012; Sergey Popov powertop-2.1.ebuild: + Add proper unicode flag handling. Fixes bug #415535 + + 06 Sep 2012; Rick Farina powertop-2.1.ebuild: + refactor deps a big based on feedback from hasufell. likely more things can be + moved out of depend as well + + 06 Sep 2012; Rick Farina powertop-2.1.ebuild: + address dep issues, missing pkgconfig and libnl:3 requires slot + +*powertop-2.1 (05 Sep 2012) + + 05 Sep 2012; Rick Farina +powertop-2.1.ebuild: + version bump to 2.1 + + 01 Jun 2012; Mike Frysinger powertop-2.0.ebuild: + Drop hardcoded CXXFLAGS that break things. + + 01 Jun 2012; Mike Frysinger +files/csstoh, + powertop-2.0.ebuild: + Fix cross-compiling; already sent upstream. + + 01 Jun 2012; Mike Frysinger powertop-2.0.ebuild, + powertop-9999.ebuild: + Sync keywords with newer versions. + +*powertop-2.0 (10 May 2012) + + 10 May 2012; Mike Frysinger +powertop-2.0.ebuild, + -powertop-1.97-r1.ebuild, -powertop-1.98.ebuild, powertop-9999.ebuild: + Version bump. + + 20 Apr 2012; Mike Frysinger powertop-1.98.ebuild, + powertop-9999.ebuild: + Update git URL to new home. + + 19 Apr 2012; Mike Frysinger powertop-1.98.ebuild, + +files/powertop-1.98-gcc-4.7.patch, powertop-9999.ebuild: + Fix building with gcc-4.7. + + 19 Apr 2012; Mike Frysinger powertop-1.98.ebuild, + files/powertop-1.98-build.patch, +files/powertop-1.98-build-libnl-3.patch, + powertop-9999.ebuild: + Revert incorrect libnl change (powertop works with libnl ver 1, 2, or 3), and + further clean up the build. + + 27 Oct 2011; Jeroen Roovers powertop-1.97-r1.ebuild, + powertop-1.98.ebuild: + Fix libnl dependency (bug #382471). + +*powertop-1.98 (23 Aug 2011) + + 23 Aug 2011; Mike Frysinger +powertop-1.98.ebuild, + +files/powertop-1.98-build.patch, +files/powertop-1.98-build-cc.patch, + powertop-9999.ebuild: + Version bump and merging of live/release ebuilds. + + 03 May 2011; Tomáš Chvátal powertop-9999.ebuild: + Move to git-2 and use eapi4 features more nicely. + + 15 Mar 2011; Tomáš Chvátal powertop-1.97-r1.ebuild, + powertop-9999.ebuild: + Sync live ebuild again. There is no manpage now so drop needless gunzip. + + 14 Mar 2011; Jeroen Roovers powertop-1.97-r1.ebuild: + Add more build time and run time dependencies (bug #358869). + +*powertop-1.97-r1 (14 Mar 2011) + + 14 Mar 2011; Jeroen Roovers -powertop-1.97.ebuild, + +powertop-1.97-r1.ebuild: + Respect CC, CXX, CFLAGS, add cache dir. + +*powertop-1.97 (14 Mar 2011) + + 14 Mar 2011; Tomáš Chvátal +powertop-1.97.ebuild, + powertop-9999.ebuild: + Update live ebuild to reflect reality. Add latest version with only amd64 and + x86 because it is completely different stuff. Non-maintainer commit. + + 26 Jan 2011; Thilo Bangert powertop-9999.ebuild: + fix git url (#350783) + + 13 Jan 2011; Brent Baude powertop-1.13.ebuild: + stable ppc, bug 342047 + + 23 Oct 2010; Raúl Porcel powertop-1.13.ebuild: + arm/sparc stable wrt #342047 + + 21 Oct 2010; Markos Chandras powertop-1.13.ebuild: + Stable on amd64 wrt bug #342047 + + 21 Oct 2010; Thomas Kahle powertop-1.13.ebuild: + x86 stable per bug 342047 + + 12 Sep 2010; Thilo Bangert powertop-1.13.ebuild: + add dep on pciutils (#336858) + +*powertop-1.13 (09 Aug 2010) + + 09 Aug 2010; Thilo Bangert +powertop-1.13.ebuild: + version bump (#330925) + +*powertop-9999 (28 May 2010) + + 28 May 2010; Sebastian Pipping +powertop-9999.ebuild: + Add live ebuild, permission by bangert, fixes bug #319011 + + 05 Apr 2010; Raúl Porcel powertop-1.11.ebuild: + sparc stable wrt #302349 + + 31 Mar 2010; Jonathan Callen powertop-1.11.ebuild: + Bump to EAPI=3, add prefix keywords + + 08 Mar 2010; Markus Meier powertop-1.11.ebuild: + arm stable, bug #302349 + + 10 Feb 2010; Joseph Jezak powertop-1.11.ebuild: + Marked ppc stable for bug #302349. + + 03 Feb 2010; Markos Chandras powertop-1.11.ebuild: + Stable on amd64 wrt bug #302349 + + 01 Feb 2010; Christian Faulhammer powertop-1.11.ebuild: + stable x86, bug 302349 + + 16 Oct 2009; Thilo Bangert powertop-1.9.ebuild, + powertop-1.11.ebuild: + add missing dep on gettext + + 04 Apr 2009; Gordon Malm powertop-1.7.ebuild, + powertop-1.8.ebuild, powertop-1.9.ebuild, -powertop-1.10.ebuild, + powertop-1.11.ebuild: + Remove problematic version and make repoman happy, bug #236372. + +*powertop-1.11 (01 Mar 2009) + + 01 Mar 2009; Olivier Crête +powertop-1.11.ebuild: + Version bump, bug #254678 + +*powertop-1.10 (31 Aug 2008) + + 31 Aug 2008; Peter Alfredsen +powertop-1.10.ebuild: + Bump wrt bug 226373 + + 16 Jan 2008; Ferris McCormick powertop-1.9.ebuild: + Sparc stable, Bug #202082 (although I am not sure it is meaningful on sparc, + given the description). + + 16 Dec 2007; Samuli Suominen powertop-1.9.ebuild: + amd64 stable wrt #202082 + + 14 Dec 2007; nixnut powertop-1.9.ebuild: + Stable on ppc wrt bug 202082 + + 13 Dec 2007; Christian Faulhammer powertop-1.9.ebuild: + stable x86, bug 202082 + +*powertop-1.9 (06 Nov 2007) + + 06 Nov 2007; Stefan Schweizer +powertop-1.9.ebuild: + version bump + +*powertop-1.8 (30 Aug 2007) + + 30 Aug 2007; Stefan Schweizer +powertop-1.8.ebuild: + version bump + + 16 Aug 2007; Christoph Mende powertop-1.7.ebuild: + Stable on amd64 wrt bug #188590 + + 13 Aug 2007; Gustavo Zacarias powertop-1.7.ebuild: + Stable on sparc wrt #188590 + + 12 Aug 2007; Andrej Kacian powertop-1.7.ebuild: + Stable on x86, bug #188590. + + 04 Jul 2007; Gustavo Zacarias powertop-1.7.ebuild: + Keyworded ~sparc wrt #183769 + +*powertop-1.7 (19 Jun 2007) + + 19 Jun 2007; Timothy Redaelli -powertop-1.6.ebuild, + +powertop-1.7.ebuild: + New version. + Authorized by genstef. + + 10 Jun 2007; Timothy Redaelli powertop-1.6.ebuild: + Add ~ppc keyword. + +*powertop-1.6 (09 Jun 2007) + + 09 Jun 2007; Stefan Schweizer -powertop-1.5.ebuild, + +powertop-1.6.ebuild: + version bump + + 31 May 2007; Mike Frysinger powertop-1.5.ebuild: + Remove stupid USE=unicode requirement and make sure LDFLAGS are respected. + + 29 May 2007; Stefan Schweizer powertop-1.5.ebuild: + work around portage trying to compress twice thanks Andre + in bug 180222 + +*powertop-1.5 (28 May 2007) + + 28 May 2007; Stefan Schweizer -powertop-1.4.ebuild, + +powertop-1.5.ebuild: + Version bump thanks to Kelly Price in bug 180014 + +*powertop-1.4 (28 May 2007) + + 28 May 2007; Stefan Schweizer -powertop-1.3.ebuild, + +powertop-1.4.ebuild: + version bump thanks Hijacker in irc + +*powertop-1.3 (23 May 2007) + + 23 May 2007; Stefan Schweizer -powertop-1.1.ebuild, + -powertop-1.2.ebuild, +powertop-1.3.ebuild: + version bump thanks to Lars Langhans in bug 179524 + + 15 May 2007; Saleem Abdulrasool powertop-1.2.ebuild: + Keyword ~amd64 + +*powertop-1.2 (15 May 2007) + + 15 May 2007; Mike Frysinger +powertop-1.2.ebuild: + Version bump and cleanup. + +*powertop-1.1 (13 May 2007) + + 13 May 2007; Stefan Schweizer -powertop-1.0.ebuild, + +powertop-1.1.ebuild: + Version bump thanks to Christian Merkle in bug + 178130 + +*powertop-1.0 (13 May 2007) + + 13 May 2007; Stefan Schweizer +metadata.xml, + +powertop-1.0.ebuild: + New ebuild thanks to Christian Merkle in bug + 178130 diff --git a/sdk_container/src/third_party/portage-stable/sys-power/powertop/Manifest b/sdk_container/src/third_party/portage-stable/sys-power/powertop/Manifest index 39d9cd869b..a7d8c5d4ca 100644 --- a/sdk_container/src/third_party/portage-stable/sys-power/powertop/Manifest +++ b/sdk_container/src/third_party/portage-stable/sys-power/powertop/Manifest @@ -1 +1,13 @@ -DIST powertop-2.0.tar.bz2 456654 RMD160 d2c657fac6b1c0b430099d60fe8ee80e3d379e57 SHA1 ec64a472a4e1539d6dfc9725f6d934e908d5930c SHA256 7af51d320856b3446bcc314c9414385f3b05b9360f650883b0210cd3b12c5c1c +AUX csstoh 198 SHA256 03e4300bd73e0b8da29546e79f2c94be90626c545d88c84c2c95dd04b2d94035 SHA512 321087047f82cc2001e8f85495cefd7bdc19a6ede32ac9065f72e7e7970b979bdb5e1a534f0e6070502adc18a2c3c5f509aa21c39590e10c15b293b6f231d08d WHIRLPOOL 221f3cfdc896812e86a6241999e8c9acf453f37c47fa34dd8f49b60c1191849e33b641dcaef41bb5e1f9ecf270b681dfe093d45c122c5fe1c5572245c73d0f3c +AUX powertop-1.98-build-cc.patch 704 SHA256 36ccfeec0c64f0131415238316e14fee2239d4af0a52b48c0162181f49ad9457 SHA512 90c8fa25b59ebc726faee96a7a01fe992a271f6cd0c259d59eaf9276b557d84847e1e1588f0db43098cb9b10d04766f727271df99e51cb31592c0e98b76b2793 WHIRLPOOL 0e259abbcded879ecf8f6bb951bd84190a74fe186dd34fba31e24cadf2cc5c93c558f3c506e684d95638a05cd130b8db5c344d97a24ab96e6934bedeed7c29ad +AUX powertop-1.98-build-libnl-3.patch 611 SHA256 0799362cdf6923a1a8a0c9ac61097dbaa6ffa21d5b0dd038bae44f58102e4328 SHA512 c81b029c18d192792b6ffa89e7f56e12d3c74a37338fa56ea1f7401bd7bf83353b54cbe6b53e85285a2e1627b8b92c8ea84d2bcd59f24035d4e34fef4f6ac256 WHIRLPOOL 7771eb8c61b17c730d338bee42a604e52acb6a4d7ce0b68e419a73b5acd5620cf0771d3885c877bb76de20a4388b83b96afe2517e24e689c7143044eebcd1925 +AUX powertop-1.98-build.patch 2266 SHA256 8b76948494deb0bece80e7300ec8f84c2fab7bf1d79838faa3e52478142ebfeb SHA512 3f356e8526c337756bb803c7a3c695bda0f6eb0da686d53c0d627341bf443be1f925b96a56a9b066512e7f48f1fccb1c9c4db9033100bc9794626744fe74f696 WHIRLPOOL 555abbc36d90c26b46fbb9236895946e61752350ffcf3b2ec8bc53db6babcdcfe2ef8a2841212e7286e23395a63c9c540b723c3a57663c533692494bdafd302b +AUX powertop-1.98-gcc-4.7.patch 3720 SHA256 44335480e32fbd591e5fe45cc8f47c45ad45fcf656f371b05e6d2751dd248549 SHA512 98b3f0155d517cadc27bd32e87777ef74278c38d019ffdfff00eb68174ba846ea1899b1bfbf4841a843114d0978dde8a880528c7ce8486cb1132d1d0b0f3ab6b WHIRLPOOL 4c45cdaf5098c2093df41eec6f4e719ffea490ca870e049c7715a78c37fe932250cb8ce73e0d1c98e3194f1e786174596c98a6b21dcf648de1ba4798686f224d +AUX powertop-2.2-use-package_version.patch 740 SHA256 40258728ae75fb0ba425bd1295ce88784ca03bde59ef52aa114a2269020f1cd8 SHA512 196a866d13999103a6c0d7b5e1b03ce0a11ce1c3a7550346b45bcbb5597b1080b0b9fbd7b18b5d66e2b9d140d5e7ec460cd8be4749bc52c7b904287a0e621999 WHIRLPOOL 715823eb0e936764ebfc5ad6c4bbc7b818f54c310081dd3112da2640923046582b4eaec8b8c0f85891adcf147b04fb25150d1322099664b75a091f39b3c729b5 +DIST powertop-1.13.tar.gz 104675 SHA256 2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98 SHA512 0c22a903da64798d987492336d57260372e03eab067ad94cf30b7640e9ee05e759a2fe9fa48fbdc35404cd2782b6b29d705e11e68452653b08f7f9df1a52be44 WHIRLPOOL 5ba44b84f49609f67c32563f75e20f6576c21a93fcb1ca99ebfe064475397602aa0f0fb9575e05b5a0290983791e7cf6ebae0139b39158b962e4b51027a6f5aa +DIST powertop-2.2.tar.gz 617805 SHA256 1339e1bc3b9675c71dd70fed1132abf215d01469b348d23be7344bc65557b028 SHA512 f57586e100ca36a6787cd9a3794a8f057fffe7bd9decaa8cf04b9d81300bb1da7c2d1f7eab91e3c0faa9616b7d47007b6b796dcd777bde5aec53dbe3a7ed4bec WHIRLPOOL 62aae460529032d30174f51e1cd22d3986a197f6b03460184a4bd9b199c2f08a031e5f7c8732d552f479548c90cba567d93b95629d8ca1e668a5dd8aaa5c8d98 +EBUILD powertop-1.13.ebuild 1121 SHA256 ad10c47049432ef0f9047eee7c5c6db033843f699cd2003c5b087169a296a030 SHA512 d87e4874baf0163ddef11ab5c2984ca276e98d551caaf2760e1054cde03e60248ee17ed143a0dcbca23f4a591b883c3b2e46fd1c7f773ab78e1fcb117340232e WHIRLPOOL a372742bb77b08e8b208342ca14e33f1a2d2d6287610613aebb7ec73ae76714448fd4baa39ec84f1f75658fcbd34ec42e058a1dc181e04c68c1d901ef0a78a2f +EBUILD powertop-2.2-r1.ebuild 3611 SHA256 6fe87328a9cdd1a36aa96a5670ffc09a17c0e885f54bbc09ef36613a17e06490 SHA512 ac7c40d0f6297df5c5f3b2142fdddf97264112769a55a08359663dffb87b99112a8c4177cade94a50792c5e74205501ddb9677bf853b8c65ad6db7b6c7b94375 WHIRLPOOL b92664bdc3d9458548762192c6e87ce28c18a81bc887a2661fdeefdd65fd6cd735c38a29a384d092a7de0b7c045bfffe796d4322ce6c5c11dc06abf298b1647d +EBUILD powertop-9999.ebuild 3423 SHA256 daa3420ab6ef011b084486dd9e1ec6aea837b8ef9c5cd6c331d881ad4a30d1fc SHA512 e2075b5c8f8465c59fbeacf7517991c8ece4325ae7afbce9c612b992084d70a81d33d865e3145f5407239b4fbfbd8d583a94d5c21ba10d743cb0a6d4b6fc9df4 WHIRLPOOL d000d6c661171660a4bc9683b3a8db493d918bf500ffc0b39e914c6fceb6eef880fa4e4c76ca3a3902abf5b1e193020ad95c1ea766e4b1606b5499b20741ccbe +MISC ChangeLog 11050 SHA256 2b88d8cd8d4584a96dc03ed82b66969fc1e4234214051bc93622e7e24456514a SHA512 52bb36f90b683c7d96f4ff40d0a54544be42b70b9d2ed7c2d22a278290517b93ac87f4d4d19304f5f87d6da35e39dcc31a742a366a4d6da4175790951a266ee7 WHIRLPOOL 3bb02d74acd888c4b083478c9d6fd0488ee167b0d60c9928851cc9c871461dfc329c862a5a034ed460c6b8c30b66fc2bd03ec9527a6e5cfc89dff75d2d3c4036 +MISC metadata.xml 239 SHA256 24d3268dbe675a5446456b139438c1bd59bd6190077399a4a715805ef28da3cc SHA512 2fa025f3394a125b4a92ee5fdb579bcfe74755f4e4306d90979bbb04c5239adfd2fdf9242ee7623642909597100ca88a6f6b7578a24512d976930fad186e10f9 WHIRLPOOL ab1b126e1a8170eba68412f8704d38ac7a479cb80a461cb2466ad87966ab8f78ddc04ce66341e5056df8c3aa21e3cf2c530a1f3236461bb502b91842089b49bb diff --git a/sdk_container/src/third_party/portage-stable/sys-power/powertop/files/powertop-2.2-use-package_version.patch b/sdk_container/src/third_party/portage-stable/sys-power/powertop/files/powertop-2.2-use-package_version.patch new file mode 100644 index 0000000000..f4ec6c3ed0 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-power/powertop/files/powertop-2.2-use-package_version.patch @@ -0,0 +1,26 @@ +It was missed to update POWERTOP_VERSION macro so that the +new v2.2 release still shows v2.1 string on the header of +ncurses window. Convert to use PACKAGE_VERSION macro which +set by autotools to the AC_INIT version so that it cannot +be missed anymore. + +Signed-off-by: Namhyung Kim +--- + src/lib.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/lib.h b/src/lib.h +index 8cf4632..209421a 100644 +--- a/src/lib.h ++++ b/src/lib.h +@@ -35,8 +35,8 @@ + + #define _(STRING) gettext(STRING) + +-#define POWERTOP_VERSION "v2.1" +-#define POWERTOP_SHORT_VERSION "2.1" ++#define POWERTOP_VERSION "v"PACKAGE_VERSION ++#define POWERTOP_SHORT_VERSION PACKAGE_VERSION + + + extern int get_max_cpu(void); diff --git a/sdk_container/src/third_party/portage-stable/sys-power/powertop/metadata.xml b/sdk_container/src/third_party/portage-stable/sys-power/powertop/metadata.xml new file mode 100644 index 0000000000..9cca7a80e6 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-power/powertop/metadata.xml @@ -0,0 +1,8 @@ + + + + + zerochaos@gentoo.org + Rick Farina + + diff --git a/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-1.13.ebuild b/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-1.13.ebuild new file mode 100644 index 0000000000..28bd9d4707 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-1.13.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-1.13.ebuild,v 1.6 2011/01/13 22:36:51 ranger Exp $ + +EAPI=3 + +inherit toolchain-funcs eutils + +DESCRIPTION="tool that helps you find what software is using the most power" +HOMEPAGE="http://www.lesswatts.org/projects/powertop/" +SRC_URI="http://www.lesswatts.org/projects/powertop/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc sparc x86 ~amd64-linux ~x86-linux" +IUSE="unicode" + +DEPEND="sys-libs/ncurses[unicode?] + sys-devel/gettext" +RDEPEND="${DEPEND} + sys-apps/pciutils" + +src_prepare() { + sed -i '/${CFLAGS}/s:$: ${LDFLAGS}:' Makefile + use unicode || sed -i 's:-lncursesw:-lncurses:' Makefile +} + +src_configure() { + tc-export CC +} + +src_install() { + emake install DESTDIR="${ED}" || die + dodoc Changelog README + gunzip "${ED}"/usr/share/man/man1/powertop.1.gz +} + +pkg_postinst() { + echo + einfo "For PowerTOP to work best, use a Linux kernel with the" + einfo "tickless idle (NO_HZ) feature enabled (version 2.6.21 or later)" + echo +} diff --git a/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-2.2-r1.ebuild b/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-2.2-r1.ebuild new file mode 100644 index 0000000000..9443d3c3fc --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-2.2-r1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-2.2-r1.ebuild,v 1.2 2012/12/09 20:48:24 zerochaos Exp $ + +EAPI="5" + +inherit eutils linux-info +if [ ${PV} == "9999" ] ; then + EGIT_REPO_URI="git://github.com/fenrus75/powertop.git" + inherit git-2 autotools + SRC_URI="" +else + SRC_URI="https://01.org/powertop/sites/default/files/downloads/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="tool that helps you find what software is using the most power" +HOMEPAGE="https://01.org/powertop/ http://www.lesswatts.org/projects/powertop/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="unicode X" + +COMMON_DEPEND=" + dev-libs/libnl:3 + sys-apps/pciutils + sys-libs/ncurses[unicode?] +" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + sys-devel/gettext +" +RDEPEND=" + ${COMMON_DEPEND} + X? ( x11-apps/xset ) + virtual/libintl +" + +DOCS=( TODO README ) + +pkg_setup() { + if linux_config_exists; then + CONFIG_CHECK=" + ~X86_MSR + ~DEBUG_FS + ~PERF_EVENTS + ~TRACEPOINTS + ~NO_HZ + ~HIGH_RES_TIMERS + ~HPET_TIMER + ~CPU_FREQ_STAT + ~CPU_FREQ_GOV_ONDEMAND + ~USB_SUSPEND + ~FTRACE + ~BLK_DEV_IO_TRACE + ~TIMER_STATS + ~EVENT_POWER_TRACING_DEPRECATED + ~TRACING + " + if kernel_is -lt 3 7 0; then + linux_chkconfig_present SND_HDA_INTEL && CONFIG_CHECK+="~SND_HDA_POWER_SAVE" + linux_chkconfig_present SND_HDA_INTEL && ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" + fi + ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" + ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" + ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function" + ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" + ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" + ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" + ERROR_KERNEL_USB_SUSPEND="USB_SUSPEND should be enabled in the kernel for full powertop function" + ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" + ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on to enable TIMER_STATS, TRACING and EVENT_POWER_TRACING_DEPRECATED" + ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" + ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" + linux-info_pkg_setup + else + ewarn "unable to find kernel config, all checks disabled" + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-use-package_version.patch + if [ ${PV} == "9999" ] ; then + eautoreconf + fi +} + +src_configure() { + export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) + default +} + +src_compile() { + #the clean is needed because the 2.1 tarball had object files in src/tuning/ + emake clean + emake +} + +src_install() { + default + keepdir /var/cache/powertop +} diff --git a/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-9999.ebuild b/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-9999.ebuild new file mode 100644 index 0000000000..ba7570238b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-power/powertop/powertop-9999.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/powertop/powertop-9999.ebuild,v 1.16 2012/11/22 15:00:37 zerochaos Exp $ + +EAPI="4" + +inherit eutils linux-info +if [ ${PV} == "9999" ] ; then + EGIT_REPO_URI="git://github.com/fenrus75/powertop.git" + inherit git-2 autotools + SRC_URI="" +else + SRC_URI="https://01.org/powertop/sites/default/files/downloads/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="tool that helps you find what software is using the most power" +HOMEPAGE="https://01.org/powertop/ http://www.lesswatts.org/projects/powertop/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="unicode X" + +COMMON_DEPEND=" + dev-libs/libnl:3 + sys-apps/pciutils + sys-devel/gettext + sys-libs/ncurses[unicode?] +" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig +" +RDEPEND=" + ${COMMON_DEPEND} + X? ( x11-apps/xset ) +" + +DOCS=( TODO README ) + +pkg_setup() { + if linux_config_exists; then + CONFIG_CHECK=" + ~X86_MSR + ~DEBUG_FS + ~PERF_EVENTS + ~TRACEPOINTS + ~NO_HZ + ~HIGH_RES_TIMERS + ~HPET_TIMER + ~CPU_FREQ_STAT + ~CPU_FREQ_GOV_ONDEMAND + ~USB_SUSPEND + ~FTRACE + ~BLK_DEV_IO_TRACE + ~TIMER_STATS + ~EVENT_POWER_TRACING_DEPRECATED + ~TRACING + " + if kernel_is -lt 3 7 0; then + linux_chkconfig_present SND_HDA_INTEL && CONFIG_CHECK+="~SND_HDA_POWER_SAVE" + linux_chkconfig_present SND_HDA_INTEL && ERROR_KERNEL_SND_HDA_POWER_SAVE="SND_HDA_POWER_SAVE should be enabled in the kernel for full powertop function" + fi + ERROR_KERNEL_X86_MSR="X86_MSR is not enabled in the kernel, you almost certainly need it" + ERROR_KERNEL_DEBUG_FS="DEBUG_FS is not enabled in the kernel, you almost certainly need it" + ERROR_KERNEL_PERF_EVENTS="PERF_EVENTS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_TRACEPOINTS="TRACEPOINTS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_NO_HZ="NO_HZ should be enabled in the kernel for full powertop function" + ERROR_KERNEL_HIGH_RES_TIMERS="HIGH_RES_TIMERS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_HPET_TIMER="HPET_TIMER should be enabled in the kernel for full powertop function" + ERROR_KERNEL_CPU_FREQ_STAT="CPU_FREQ_STAT should be enabled in the kernel for full powertop function" + ERROR_KERNEL_CPU_FREQ_GOV_ONDEMAND="CPU_FREQ_GOV_ONDEMAND should be enabled in the kernel for full powertop function" + ERROR_KERNEL_USB_SUSPEND="USB_SUSPEND should be enabled in the kernel for full powertop function" + ERROR_KERNEL_FTRACE="FTRACE needs to be turned on to enable BLK_DEV_IO_TRACE" + ERROR_KERNEL_BLK_DEV_IO_TRACE="BLK_DEV_IO_TRACE needs to be turned on to enable TIMER_STATS, TRACING and EVENT_POWER_TRACING_DEPRECATED" + ERROR_KERNEL_TIMER_STATS="TIMER_STATS should be enabled in the kernel for full powertop function" + ERROR_KERNEL_EVENT_POWER_TRACING_DEPRECATED="EVENT_POWER_TRACING_DEPRECATED should be enabled in the kernel for full powertop function" + ERROR_KERNEL_TRACING="TRACING should be enabled in the kernel for full powertop function" + linux-info_pkg_setup + else + ewarn "unable to find kernel config, all checks disabled" + fi +} + +src_prepare() { + if [ ${PV} == "9999" ] ; then + eautoreconf + fi +} + +src_configure() { + export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses) + default +} + +src_install() { + default + keepdir /var/cache/powertop +}