summaryrefslogtreecommitdiff
path: root/app-benchmarks/bootchart2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-benchmarks/bootchart2
reinit the tree, so we can have metadata
Diffstat (limited to 'app-benchmarks/bootchart2')
-rw-r--r--app-benchmarks/bootchart2/Manifest7
-rw-r--r--app-benchmarks/bootchart2/bootchart2-0.14.7-r1.ebuild78
-rw-r--r--app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch29
-rw-r--r--app-benchmarks/bootchart2/files/bootchart2.init26
-rw-r--r--app-benchmarks/bootchart2/metadata.xml10
5 files changed, 150 insertions, 0 deletions
diff --git a/app-benchmarks/bootchart2/Manifest b/app-benchmarks/bootchart2/Manifest
new file mode 100644
index 000000000000..17647a2b68ce
--- /dev/null
+++ b/app-benchmarks/bootchart2/Manifest
@@ -0,0 +1,7 @@
+AUX bootchart2-0.14.7-sysmacros.patch 816 SHA256 3d2d42b67477b78c7ef6ac2e81264fd1fc31178e9d34219e63f9a8c4889d7892 SHA512 f10323b69ae1fac964f46c92931464d6398baad30cc41d4aec8315a3c13eae4a8423b7830868eb8a772ee8f93d6da3251d55236bd359205925100ec092aee099 WHIRLPOOL 4513270b6480e1c925665805b8b80daa8bdb89ddcce4b0a9e4a7cb11cb0439ec2514db197828355d173354915621d2451c6db98821d00042c26449cb667c88e7
+AUX bootchart2.init 693 SHA256 4a4be28f096b8389ee34ce2ee2f15528ec78633fd922f8590746523b8b082a22 SHA512 181ecf9b64c8303ade8544530698a6a217c367927673feaca4d837bb72d13922d47eff9374a482cd225c3189ea80d36ba72ff658aba596f96639f0d1be7a432b WHIRLPOOL 8974905cd28a95403f89ecdbef3296091f62315bb18e882d77cb83a909e1cb71af1670d0ecbc0361b899708feaaa3009c00b05b2cc3e9560dcbd799d4f94839f
+DIST bootchart2-0.14.7.tar.gz 1175145 SHA256 abce617f0392b05619ee18f6a118f3445892bcedba6b762cdf467bafab2276a9 SHA512 82074a6ca6725a1b9ffe2a5d7f7bc6fd7918ab837573c23f75e7ebf209f30284ac7e59d2e84768ed313e4cee80da8e67dde167881d907fe71eff376ae9d16541 WHIRLPOOL 32b6cff0db49ccb3db0bf21b6b9fc05301a7fa0cd741149a118a41e2c12e82f5345f1a9e4c83aed53d48cf9809193554a583b3ccf37862b8af9277a458f42d58
+EBUILD bootchart2-0.14.7-r1.ebuild 1906 SHA256 8421c605e0d510e691fe6314687fc3fe3c1db0f81f6625521cb8b57a3c0f7bf2 SHA512 66071bc7926f4be1a14fd6ace9e4690ecc4928b66d949f7bace426b8e3d5caad5b82aaaa1dc1755fca53411fc757e296177b42a5e4d921e4afd5336d0aefa642 WHIRLPOOL 6dcd145e158784b2d84722744b7a795734490e6626e61c4f076d83265a1c18dd08a80ae05dc6992f5b5201be2b5c0ce05fce3af31055e318f5c84cf394de77e2
+MISC ChangeLog 2779 SHA256 31c56b615dbfb6efcc38e12bdbbcb04e69868f6910613b7476ca278a97561758 SHA512 213188fe394377e0e563c501380453165cc373fbe941d026159285b765d13848732a9d1038933ea754b45bef6fbab9ac6d4889a0fbaa8ce274d2f5e116f0b462 WHIRLPOOL 0c6a3c5ca30f626291cf0abe506111170ff32f7a79f4d49cdea986f0a1f17fb6696f5691e7e48db5b0842ae118c2b46c0ef683cb65c023830cbfc5f849be4764
+MISC ChangeLog-2015 3926 SHA256 7724fea9e4b0be5932da81347d58df2d7bc64db76edf890f5c1651ae02ec3202 SHA512 9b02a7af23c9517e116f603dcd645ac46caba3fd6af705c13c20953f5cd7d616351b1ee5f6544251fcf50290a4e1cbce6e2cce41e47ed02669ff4204d13e0369 WHIRLPOOL 6b40ab7712bcb67d0c38d29769f0bf21cd67b34e79c7b19545ddaac84eef1bb0477fa1d848c58e13dae5aeda3091c27ecdc8534b7dfdee1741748e62e9dd534e
+MISC metadata.xml 304 SHA256 bd19240541e0e09337c5dad236a7d2cd2c9188cab7cce52d416d93e1ed5fb47c SHA512 a32bf175ccbaf61207413ae249aa66e72c7704abc0e1c41e9a6eb5fbbc21ea143f45588490ef53bbc8a5ffa0145880de87308ed33df9354a1433016f6540f46e WHIRLPOOL 561f0c6cacf17dc412b66202f7f95559722a873e87d77da7310b789fd6d7ed1fd26ac4af31ebc698746bd7e0317446355346cb6ef0d57a52e5372913e8161cdb
diff --git a/app-benchmarks/bootchart2/bootchart2-0.14.7-r1.ebuild b/app-benchmarks/bootchart2/bootchart2-0.14.7-r1.ebuild
new file mode 100644
index 000000000000..08018cc91c6b
--- /dev/null
+++ b/app-benchmarks/bootchart2/bootchart2-0.14.7-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit linux-info python-r1 systemd toolchain-funcs
+
+DESCRIPTION="Performance analysis and visualization of the system boot process"
+HOMEPAGE="https://github.com/mmeeks/bootchart/"
+SRC_URI="https://github.com/mmeeks/bootchart/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="svg test X"
+
+REQUIRED_USE="
+ X? ( ${PYTHON_REQUIRED_USE} )
+ test? ( X )"
+
+RDEPEND="
+ !app-benchmarks/bootchart
+ X? (
+ dev-python/pycairo[svg(+)?,${PYTHON_USEDEP}]
+ dev-python/pygtk[$(python_gen_usedep 'python2*')]
+ ${PYTHON_DEPS}
+ )
+ sys-apps/lsb-release"
+DEPEND="${PYTHON_DEPS}"
+
+S="${WORKDIR}"/${PN%2}-${PV}
+
+CONFIG_CHECK="~PROC_EVENTS ~TASKSTATS ~TASK_DELAY_ACCT ~TMPFS"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sysmacros.patch #579922
+ tc-export CC
+ sed \
+ -e "/^install/s:py-install-compile::g" \
+ -e "/^SYSTEMD_UNIT_DIR/s:=.*:= $(systemd_get_unitdir):g" \
+ -i Makefile || die
+ sed \
+ -e '/^EXIT_PROC/s:^.*$:EXIT_PROC="agetty mgetty mingetty:g' \
+ -i bootchartd.conf bootchartd.in || die
+}
+
+src_test() {
+ python_foreach_impl emake test
+}
+
+src_install() {
+ export DOCDIR=/usr/share/doc/${PF}
+ default
+
+ # Note: LIBDIR is hardcoded as /lib in collector/common.h, so we shouldn't
+ # just change it. Since no libraries are installed, /lib is fine.
+ keepdir /lib/bootchart/tmpfs
+
+ installation() {
+ python_domodule pybootchartgui
+
+ python_newscript pybootchartgui.py pybootchartgui
+ }
+ use X && python_foreach_impl installation
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+
+}
+
+pkg_postinst() {
+ elog "If you are using an initrd during boot"
+ echo
+ elog "please add the init script to your default runlevel"
+ elog "rc-update add bootchart2 default"
+ echo
+}
diff --git a/app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch b/app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch
new file mode 100644
index 000000000000..de6e4112b685
--- /dev/null
+++ b/app-benchmarks/bootchart2/files/bootchart2-0.14.7-sysmacros.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/579922
+
+From add58c3b57064afd6f7d2fd5f09006d28a3e770e Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Thu, 21 Apr 2016 00:19:32 -0400
+Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev
+
+These funcs are defined in the sys/sysmacros.h header, not sys/types.h.
+Linux C libraries are updating to drop the implicit include, so we need
+to include it explicitly.
+---
+ collector/collector.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/collector/collector.c b/collector/collector.c
+index cfdcb26..2f3ce6b 100644
+--- a/collector/collector.c
++++ b/collector/collector.c
+@@ -33,6 +33,7 @@
+ #include "common.h"
+
+ #include <sys/mount.h>
++#include <sys/sysmacros.h>
+ #include <linux/fs.h>
+ #include <linux/genetlink.h>
+ #include <linux/taskstats.h>
+--
+2.7.4
+
diff --git a/app-benchmarks/bootchart2/files/bootchart2.init b/app-benchmarks/bootchart2/files/bootchart2.init
new file mode 100644
index 000000000000..3e5d968c0376
--- /dev/null
+++ b/app-benchmarks/bootchart2/files/bootchart2.init
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use localmount
+}
+
+start() {
+ if /bin/grep -q "rdinitrd=/sbin/bootchartd" /proc/cmdline; then
+ if /bin/pidof bootchart-collector> /dev/null 2>&1; then
+ ebegin "Scheduling termination of Bootchart"
+ /sbin/bootchartd start
+ /sbin/bootchartd wait &
+ eend $?
+ fi
+ else
+ einfo "No bootchart process found!"
+ eindent
+ einfo "This script does not start bootchart, but only schedules its termination."
+ einfo "Bootchart should be started from the kernel command line."
+ einfo "Please check the README on how to do that."
+ eoutdent
+ eend 0
+ fi
+}
diff --git a/app-benchmarks/bootchart2/metadata.xml b/app-benchmarks/bootchart2/metadata.xml
new file mode 100644
index 000000000000..59b22aee67c9
--- /dev/null
+++ b/app-benchmarks/bootchart2/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jlec@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mmeeks/bootchart</remote-id>
+ </upstream>
+</pkgmetadata>