summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-benchmarks/bootchart/ChangeLog10
-rw-r--r--app-benchmarks/bootchart/Manifest29
-rw-r--r--app-benchmarks/bootchart/bootchart-0.9-r2.ebuild123
-rw-r--r--app-benchmarks/bootchart/files/bootchart-0.9-sh.patch12
-rw-r--r--app-benchmarks/bootchart/files/digest-bootchart-0.9-r23
5 files changed, 162 insertions, 15 deletions
diff --git a/app-benchmarks/bootchart/ChangeLog b/app-benchmarks/bootchart/ChangeLog
index 8630487e7805..9dc7d1223a94 100644
--- a/app-benchmarks/bootchart/ChangeLog
+++ b/app-benchmarks/bootchart/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-benchmarks/bootchart
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart/ChangeLog,v 1.4 2007/03/28 06:10:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart/ChangeLog,v 1.5 2007/08/10 11:13:32 uberlord Exp $
+
+*bootchart-0.9-r2 (10 Aug 2007)
+
+ 10 Aug 2007; Roy Marples <uberlord@gentoo.org>
+ +files/bootchart-0.9-sh.patch, +bootchart-0.9-r2.ebuild:
+ Remove a bashism from bootchartd as it uses /bin/sh.
+ Don't install baselayout-1 hooks if we have baselayout-2 installed
+ and give different installation instructions #188278.
28 Mar 2007; Mike Frysinger <vapier@gentoo.org> bootchart-0.9-r1.ebuild:
Fix install path for rcscript addon #172391 by Georgi Georgiev.
diff --git a/app-benchmarks/bootchart/Manifest b/app-benchmarks/bootchart/Manifest
index 37f4c5423389..eb9b34e35bfa 100644
--- a/app-benchmarks/bootchart/Manifest
+++ b/app-benchmarks/bootchart/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX bootchart 158 RMD160 5729364e885d6f77ef67071edf24d23fc00ac9c0 SHA1 00c2bce14f62613e94ada34fc6df673a6457c748 SHA256 1e6dacfd95dc35808bce726a2a8517650095b4a6e7026d75de9a9eb3a2d7f898
MD5 b42fd51c5154f39ba1bce1d374ca0746 files/bootchart 158
RMD160 5729364e885d6f77ef67071edf24d23fc00ac9c0 files/bootchart 158
@@ -9,6 +6,10 @@ AUX bootchart-0.9-gentoo.patch 1409 RMD160 521904d9bdc04be31236bc27496d1ca55420f
MD5 7496720d35965dcd5e5652be438549db files/bootchart-0.9-gentoo.patch 1409
RMD160 521904d9bdc04be31236bc27496d1ca55420f576 files/bootchart-0.9-gentoo.patch 1409
SHA256 f629a2607763dc9a0b0c9238814d58c9f4359bde6477dedb198652bbd814cd71 files/bootchart-0.9-gentoo.patch 1409
+AUX bootchart-0.9-sh.patch 388 RMD160 dc99dca5e64adb27cbc1b1eb871a7393ac5708d9 SHA1 e80c6073d4e33e43a702500831c56f22ed174ef8 SHA256 a1b0b6154760c0cce10fde3a13e5a089bab0526a7aac3ed52ccbb09c4ad66dbf
+MD5 d2870f54a8c8f341ee585aa5befbaf27 files/bootchart-0.9-sh.patch 388
+RMD160 dc99dca5e64adb27cbc1b1eb871a7393ac5708d9 files/bootchart-0.9-sh.patch 388
+SHA256 a1b0b6154760c0cce10fde3a13e5a089bab0526a7aac3ed52ccbb09c4ad66dbf files/bootchart-0.9-sh.patch 388
AUX profiling-functions.sh 1834 RMD160 d1b0b3c695b0f0aa8882af834d7703eb54cdfc15 SHA1 d81a72e9979a232a8d3bae81072575804f4ca39e SHA256 399f831b6fb0421c8e9f3f8fcbf2e240281145e6c061a84031a6f073a06dd7e8
MD5 96fc74d7aba9aaa13f90092d129d219c files/profiling-functions.sh 1834
RMD160 d1b0b3c695b0f0aa8882af834d7703eb54cdfc15 files/profiling-functions.sh 1834
@@ -18,10 +19,14 @@ EBUILD bootchart-0.9-r1.ebuild 3008 RMD160 4833330d41f6308ea01693b67a6969eb76003
MD5 f992da4f9419ebba2fbb5d978ea835dd bootchart-0.9-r1.ebuild 3008
RMD160 4833330d41f6308ea01693b67a6969eb76003c2c bootchart-0.9-r1.ebuild 3008
SHA256 f3b98836845aa4fa513d9ed1ef44c67dd73511324da6cbad11d6f9b5dd296e59 bootchart-0.9-r1.ebuild 3008
-MISC ChangeLog 995 RMD160 6371e0c3f906accd0e044adb1229849a623c3adb SHA1 b9d70c11a82693196df1994b4228840e39a6e212 SHA256 6f3088fba150817a904a54e10133af5fd6f76a71642b60126958963977e3d121
-MD5 591b4e9d21d0a050a41edefc13ed2472 ChangeLog 995
-RMD160 6371e0c3f906accd0e044adb1229849a623c3adb ChangeLog 995
-SHA256 6f3088fba150817a904a54e10133af5fd6f76a71642b60126958963977e3d121 ChangeLog 995
+EBUILD bootchart-0.9-r2.ebuild 3316 RMD160 86d47c7faf05ad17e49a1d974744849fe3aa3194 SHA1 1f83cd46e2fb95ccf6fadaa022e8d42b511b6a8a SHA256 20f9db8265722280ff86bcc9bf4af862faa8e3ad23519838c6440a201707745c
+MD5 94471ec442f3edfdfbf0ac9f7951212a bootchart-0.9-r2.ebuild 3316
+RMD160 86d47c7faf05ad17e49a1d974744849fe3aa3194 bootchart-0.9-r2.ebuild 3316
+SHA256 20f9db8265722280ff86bcc9bf4af862faa8e3ad23519838c6440a201707745c bootchart-0.9-r2.ebuild 3316
+MISC ChangeLog 1319 RMD160 26a06a3b5e1d0bd51fd7508291bcc6049155f056 SHA1 06f38d76d4f4e18418be2da1ca91e602e9b62b90 SHA256 50200429837b489b92da0da514e4ead9806f9c0249699793a889f89aba7071fc
+MD5 972b5a111a3fc2ab02a0a128b24ccb65 ChangeLog 1319
+RMD160 26a06a3b5e1d0bd51fd7508291bcc6049155f056 ChangeLog 1319
+SHA256 50200429837b489b92da0da514e4ead9806f9c0249699793a889f89aba7071fc ChangeLog 1319
MISC metadata.xml 349 RMD160 0d950d5b29ef9abbf0f45ed68d12459d24c30372 SHA1 9e49cb5250089f78a43c8c9b90d828e18521cfbb SHA256 47052292e47427a5893395553b32d83d15fb3bcbfec21a6ce41afca90cfd8a72
MD5 953f902a416d38ae82fb0eda444e6517 metadata.xml 349
RMD160 0d950d5b29ef9abbf0f45ed68d12459d24c30372 metadata.xml 349
@@ -29,10 +34,6 @@ SHA256 47052292e47427a5893395553b32d83d15fb3bcbfec21a6ce41afca90cfd8a72 metadata
MD5 a8ebf0349681c519872e0a4a791aeace files/digest-bootchart-0.9-r1 244
RMD160 a0069073b8af5d6bf6fbe2872c6bfc6a15acfe48 files/digest-bootchart-0.9-r1 244
SHA256 f985390d16d75832f275f3b9a6a1ac7633589bad459e9ead7d056a3dbc965336 files/digest-bootchart-0.9-r1 244
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.3 (GNU/Linux)
-
-iD8DBQFGCgbw8bi6rjpTunYRAleuAJ9vSEW98vJgQkjOjNS3umR8buGfiwCgrAP/
-X+4tImLhHbJeiD0+M3As4IM=
-=ZCCk
------END PGP SIGNATURE-----
+MD5 a8ebf0349681c519872e0a4a791aeace files/digest-bootchart-0.9-r2 244
+RMD160 a0069073b8af5d6bf6fbe2872c6bfc6a15acfe48 files/digest-bootchart-0.9-r2 244
+SHA256 f985390d16d75832f275f3b9a6a1ac7633589bad459e9ead7d056a3dbc965336 files/digest-bootchart-0.9-r2 244
diff --git a/app-benchmarks/bootchart/bootchart-0.9-r2.ebuild b/app-benchmarks/bootchart/bootchart-0.9-r2.ebuild
new file mode 100644
index 000000000000..519ca9297685
--- /dev/null
+++ b/app-benchmarks/bootchart/bootchart-0.9-r2.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/bootchart/bootchart-0.9-r2.ebuild,v 1.1 2007/08/10 11:13:32 uberlord Exp $
+
+inherit multilib eutils java-pkg-opt-2 java-ant-2
+
+DESCRIPTION="Performance analysis and visualization of the system boot process"
+HOMEPAGE="http://www.bootchart.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="acct debug doc java source"
+
+DEPEND="
+ java? (
+ >=virtual/jdk-1.4
+ >=dev-java/ant-core-1.4
+ dev-java/commons-cli
+ source? ( app-arch/zip )
+ )
+"
+RDEPEND="
+ java? (
+ >=virtual/jdk-1.4
+ dev-java/commons-cli
+ )
+ acct? ( sys-process/acct )
+"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ epatch "${FILESDIR}/${P}"-sh.patch
+
+ # delete the included commons-cli and use gentoo's instead
+ # The rest of lib is also bundled but a bit problematic to
+ # package https://bugs.gentoo.org/show_bug.cgi?id=162788
+ rm -rf lib/org/apache/commons/cli lib/org/apache/commons/lang
+
+ if use java ; then
+ java-ant_rewrite-classpath
+ sed -i -e 's,AUTO_RENDER="no",AUTO_RENDER="yes",g' \
+ script/bootchartd.conf
+ fi
+
+ if use acct ; then
+ sed -i -e 's,PROCESS_ACCOUNTING="no",PROCESS_ACCOUNTING="yes",g' \
+ script/bootchartd.conf
+ fi
+}
+
+src_compile() {
+ if use java ; then
+ local antflags="jar -Dcompiler.nowarn=true $(use_doc)"
+ use debug || antflags="${antflags} -Dbuild.debug=false"
+ eant ${antflags} \
+ -Dgentoo.classpath="$(java-pkg_getjars commons-cli-1):./build"
+ fi
+}
+
+src_install() {
+ dodoc README README.logger ChangeLog COPYING TODO
+
+ # No need for this with baselayout-2
+ if has_version "<sys-apps/baselayout-2"; then
+ insinto /$(get_libdir)/rcscripts/addons
+ doins "${FILESDIR}"/profiling-functions.sh
+ fi
+
+ into /
+ newsbin script/bootchartd bootchartd
+ into /usr
+
+ # This dir is normally empty, but is used to bind to the
+ # temporary dir bootchart normally makes. We do this so
+ # that our profiling script can write to a fixed location.
+ keepdir /lib/bootchart
+
+ insinto /etc
+ doins script/bootchartd.conf
+
+ if use java ; then
+ java-pkg_dojar "${PN}.jar"
+ use doc && java-pkg_dojavadoc javadoc/api
+ use source && java-pkg_dosrc src/org
+ java-pkg_dolauncher ${PN} \
+ --main org.bootchart.Main \
+ --java_args "-Djava.awt.headless=true"
+ fi
+}
+
+pkg_postinst() {
+ if has_version "<sys-apps/baselayout-2"; then
+ elog "To generate the chart, set RC_USE_BOOTCHART=\"yes\""
+ elog "in /etc/conf.d/rc and reboot"
+ else
+ elog "To generate the chart, append this to your kernel commandline"
+ elog " init=/sbin/bootchartd"
+ elog "and reboot"
+ fi
+ elog
+
+ if use java; then
+ elog "The chart will be saved as /var/log/bootchart.png"
+ else
+ elog "Post the file /var/log/bootchart.tgz here:"
+ elog " http://www.bootchart.org/download.html"
+ elog "to render the chart"
+ fi
+
+ elog
+ elog "For best results: "
+ elog " Enable BSD process accounting v3 in the kernel"
+ elog " This will produce more accurate process trees"
+ elog " Set AUTO_RENDER_FORMAT to svg in /etc/bootchartd.conf"
+ elog " and view /var/log/bootchart.svgz with batik or"
+ elog " Adobe SVG viewer. This will give you additional"
+ elog " information about the processes in tooltips"
+}
diff --git a/app-benchmarks/bootchart/files/bootchart-0.9-sh.patch b/app-benchmarks/bootchart/files/bootchart-0.9-sh.patch
new file mode 100644
index 000000000000..a923f5d52128
--- /dev/null
+++ b/app-benchmarks/bootchart/files/bootchart-0.9-sh.patch
@@ -0,0 +1,12 @@
+diff -ur a/script/bootchartd b/script/bootchartd
+--- a/script/bootchartd 2005-11-13 17:40:01.000000000 +0000
++++ b/script/bootchartd 2007-08-10 11:40:47.000000000 +0100
+@@ -101,7 +101,7 @@
+ # Write the time (in jiffies).
+ read uptime < /proc/uptime
+ uptime=${uptime%% [0-9]*}
+- uptime=${uptime/./}
++ uptime=${uptime%%.*}${uptime##*.}
+ echo $uptime
+
+ # Log the command output
diff --git a/app-benchmarks/bootchart/files/digest-bootchart-0.9-r2 b/app-benchmarks/bootchart/files/digest-bootchart-0.9-r2
new file mode 100644
index 000000000000..8488ebb31c32
--- /dev/null
+++ b/app-benchmarks/bootchart/files/digest-bootchart-0.9-r2
@@ -0,0 +1,3 @@
+MD5 4be91177d19069e21beeb106f2f77dff bootchart-0.9.tar.bz2 222558
+RMD160 c271bf634117c9bcd530055927abffead134b73a bootchart-0.9.tar.bz2 222558
+SHA256 7738399ecfcfb2242e9f99a316b13a5f59e89052de05074dbf705ccf4edc327d bootchart-0.9.tar.bz2 222558