From c527fd1f14c27855a37f2e8ac5346ce8d940ced2 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 03:05:19 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- .../ubootchart/files/sysvinit.patch | 14 ++++++++ .../ubootchart/files/ubootchart-stop | 3 ++ .../ubootchart/files/ubootchart.desktop | 6 ++++ meta/recipes-devtools/ubootchart/ubootchart_svn.bb | 39 ++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 meta/recipes-devtools/ubootchart/files/sysvinit.patch create mode 100644 meta/recipes-devtools/ubootchart/files/ubootchart-stop create mode 100644 meta/recipes-devtools/ubootchart/files/ubootchart.desktop create mode 100644 meta/recipes-devtools/ubootchart/ubootchart_svn.bb (limited to 'meta/recipes-devtools/ubootchart') diff --git a/meta/recipes-devtools/ubootchart/files/sysvinit.patch b/meta/recipes-devtools/ubootchart/files/sysvinit.patch new file mode 100644 index 0000000000..fc82ed8e78 --- /dev/null +++ b/meta/recipes-devtools/ubootchart/files/sysvinit.patch @@ -0,0 +1,14 @@ +Upstream-Status: Inappropriate [distribution] + +Index: ubootchart.conf +=================================================================== +--- ubootchart.conf (revision 9) ++++ ubootchart.conf (working copy) +@@ -1,6 +1,6 @@ + + # If you want to chain on and run somthing other than /sbin/init... +-export init_prog=/sbin/init ++export init_prog=/sbin/init.sysvinit + + # On startup ubootchart will mount a tmpfs filesystem at this + # location and chdir here. This is only used for the logging of diff --git a/meta/recipes-devtools/ubootchart/files/ubootchart-stop b/meta/recipes-devtools/ubootchart/files/ubootchart-stop new file mode 100644 index 0000000000..3444069c9a --- /dev/null +++ b/meta/recipes-devtools/ubootchart/files/ubootchart-stop @@ -0,0 +1,3 @@ +#! /bin/sh + +kill -USR1 $(pidof ubootchartd_bin) diff --git a/meta/recipes-devtools/ubootchart/files/ubootchart.desktop b/meta/recipes-devtools/ubootchart/files/ubootchart.desktop new file mode 100644 index 0000000000..5552b3bc6f --- /dev/null +++ b/meta/recipes-devtools/ubootchart/files/ubootchart.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Encoding=UTF-8 +Exec=/sbin/ubootchart-stop +Name=Stop Bootchart +Type=Application +Categories=Programming; diff --git a/meta/recipes-devtools/ubootchart/ubootchart_svn.bb b/meta/recipes-devtools/ubootchart/ubootchart_svn.bb new file mode 100644 index 0000000000..b13755e855 --- /dev/null +++ b/meta/recipes-devtools/ubootchart/ubootchart_svn.bb @@ -0,0 +1,39 @@ +SUMMARY = "A boot profiling tool" +HOMEPAGE = "http://code.google.com/p/ubootchart/" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=8f0e2cd40e05189ec81232da84bd6e1a" +SRCREV = "12" +PV = "0.0+r${SRCPV}" +PR = "r6" + +#RRECOMMENDS_${PN} = "acct" + +SRC_URI = "svn://ubootchart.googlecode.com/svn/;protocol=http;module=trunk \ + file://sysvinit.patch;striplevel=0 \ + file://ubootchart-stop \ + file://ubootchart.desktop" + +S = "${WORKDIR}/trunk" + +inherit update-alternatives + +ALTERNATIVE_${PN} = "init" +ALTERNATIVE_TARGET[init] = "${base_sbindir}/ubootchartd" +ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init" +ALTERNATIVE_PRIORITY = "70" + +do_compile() { + ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} ${INCLUDES} ${S}/ubootchartd_bin.c -o ubootchartd_bin +} + +do_install() { + install -m 0755 -d ${D}${base_sbindir} ${D}${sysconfdir}/ubootchart ${D}${datadir}/applications + install -m 0755 ${S}/ubootchartd_bin ${D}${base_sbindir} + install -m 0755 ${S}/ubootchartd ${D}${base_sbindir} + install -m 0644 ${S}/ubootchart.conf ${D}${sysconfdir}/ubootchart + install -m 0755 ${S}/start.sh ${D}${sysconfdir}/ubootchart + install -m 0755 ${S}/finish.sh ${D}${sysconfdir}/ubootchart + + install -m 0755 ${WORKDIR}/ubootchart-stop ${D}${base_sbindir} + install -m 0644 ${WORKDIR}/ubootchart.desktop ${D}${datadir}/applications +} -- cgit v1.2.3-54-g00ecf