summaryrefslogtreecommitdiff
path: root/sys-process/latencytop
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 /sys-process/latencytop
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-process/latencytop')
-rw-r--r--sys-process/latencytop/Manifest9
-rw-r--r--sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch22
-rw-r--r--sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch75
-rw-r--r--sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch28
-rw-r--r--sys-process/latencytop/latencytop-0.5-r1.ebuild52
-rw-r--r--sys-process/latencytop/latencytop-0.5.ebuild37
-rw-r--r--sys-process/latencytop/metadata.xml8
7 files changed, 231 insertions, 0 deletions
diff --git a/sys-process/latencytop/Manifest b/sys-process/latencytop/Manifest
new file mode 100644
index 000000000000..08ab0755aa6d
--- /dev/null
+++ b/sys-process/latencytop/Manifest
@@ -0,0 +1,9 @@
+AUX latencytop-0.5-01-mkdir-usr-sbin-as-well.patch 626 SHA256 8da1389fec99231d22b13dd79a41e3070babd4a330242ec610b1a6874d9ff794 SHA512 feb80688c39b611d9bbb37c58f7d0c84b9d8c43534c2475f1f6e118406ab05a2ae98090c472085eb6ff08b4610486ede091d4c357979a5ec693deba30afd2a91 WHIRLPOOL a675831857f38897ac53ff36f09b45111c870d768443e5c0b311cf33c8ea1ff414ebe02ce632a1389d8f13f5adde231616ef3898fc19ee1e984f8a530b6aa928
+AUX latencytop-0.5-03-clean-up-build-system.patch 2395 SHA256 6dad63d99b0815699d6448a463fe3b5ce6a7fcbc0f4d1ce10a4a715b7c1be015 SHA512 6d3657580440bc95e2cef123133ac7c87167a3fcfaf6f7c781570838b5815902571fceddd847c6e7549b273ba9948fdd1eeaf5bb5cd864dcd9f0541d9feb9a32 WHIRLPOOL 9c70ace1d0b34645833156fc98857f4ed725866fe121ec9bdc28549ece66b679ae77150270bce2f512b88ee6d195f41d177fc854caa9128a3dc62283ce6829c3
+AUX latencytop-0.5-fsync-fix-implicit-decl.patch 684 SHA256 69b148f165fe5859cf18666b96d7888ab4911c8d85d7594df40fccb0b925e372 SHA512 01aa09725f7786f157452c994927c985b2cc4748101ed5db73c3e6db3754bf234a45fb8937185ad61e18d5f5ab650844bbdbf0134a7d28a707843db31d1efa63 WHIRLPOOL 39de833739d9298710ab24ece0836021c34204ab46300ae148e1d60f52818133adac88826de44e54711278f5b60b6270dd91c6fce88ef38e3217578612152c16
+DIST latencytop-0.5.tar.gz 25374 SHA256 9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef SHA512 81db52b29a5fd2a5e14863f1cbf948b15ea68ff41a826cdf323215c2c8b0334144aaccf00cb49a9f7c195efcb5ff49fbf2b687a8bd4b604d338af6628d319b2c WHIRLPOOL 4b189706105fafcaad8b0583516b1ffdb69d490f39e9ff272c2871aad4306a7e1d6dcd071bd020469679f4676035e736f7c8e41c808dceeaf260e3d0fa3bc088
+EBUILD latencytop-0.5-r1.ebuild 1195 SHA256 45db4f04c439e22ccd075e60132df97ea3da3329f14d93c4720a9268f9fe7519 SHA512 f3c5440505eb3701f8f3c451527b4c53721c0aa04b31d7f103473f9ba58538806ce93356d6960c0d865f57e2a7bdd0b8da5d99cf64939ae24e7b0941d635cb0e WHIRLPOOL 4f53c1164ae0a40ffc56e9c0b3a4b6b6ca8a8bf01862ff1b623e66b944845a7e58e7978650a9e92dc3d9682ff27dd44b84770f57dea48b05da0c49c38d954d0e
+EBUILD latencytop-0.5.ebuild 762 SHA256 07613c2c688d925b76b7ad4d4360bbe714b464cb4ad384845390dacf84d1baf4 SHA512 aa228c5507777a8de60832abe7f26689140ac1a82f023713eab01506d3ff69ac3fb847d4e65e05e99cd3e3432f3911f58acc343f72c81e7d8cf550fb48eef760 WHIRLPOOL 41c1d4261cde2183ad679f575c5b857c2ffcec176bd9c8629738481935e042e8a8873acc9a2c3a1c6a7823e528a3bcea0bc8b2f6303759360c5c4c0d91260a65
+MISC ChangeLog 3809 SHA256 c10115a1f9ae5b4811683fd3fbd65f7d10391f6fef037c84c78359c9d263b184 SHA512 6f866943d0493e96fef34d1bc6959c8df301256ba7f8356f69b639f389cbec483db743d20fed1997116d35cb9cd96e3016043b534eabcbfb44804c169612f17a WHIRLPOOL 700106d79e474f8942a51ca763fd1a49775bab8becbda02dfb77b7303514a5568f9d7dd5951a731139cf70c06efa643b3a3bbcda358fb17fc15449bb2d58fab6
+MISC ChangeLog-2015 1866 SHA256 dd7fdab6207e8c9db1ed140380b6ce7a063f6da4b8a7406bf83e9affc1dab2f0 SHA512 0da6a9aad891a17003900f6183c1c1fa46c5587a92c19882184284302824895cd77612155a3c90209de8df75abcfd914e8aed889a4f0ecde2dbdf96da367e341 WHIRLPOOL 426f1a33cbb0705f3278e8b2a208567c972eed3964f795b94d6e2433e14adc16a688d3b9c5c073961b5f4de99db7598ca71ef2e537f479c22267bacc0f1cd22f
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch
new file mode 100644
index 000000000000..d5a60c938754
--- /dev/null
+++ b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch
@@ -0,0 +1,22 @@
+From d9685bb69c581489ef1c4278df8990fe02b0728d Mon Sep 17 00:00:00 2001
+From: Arjan van de Ven <arjan@linux.intel.com>
+Date: Tue, 28 Apr 2009 14:44:34 +0100
+Subject: [PATCH] mkdir /usr/sbin as well
+
+---
+
+diff --git a/src/Makefile b/src/Makefile
+index fdf1616..de24551 100644
+--- a/Makefile
++++ b/Makefile
+@@ -30,6 +30,7 @@
+
+ install: latencytop
+ mkdir -p $(DESTDIR)/usr/share/latencytop
++ mkdir -p $(DESTDIR)/$(SBINDIR)
+ install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
+ install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/
+ install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/
+--
+1.6.5.4
+
diff --git a/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch
new file mode 100644
index 000000000000..4c3461b08051
--- /dev/null
+++ b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch
@@ -0,0 +1,75 @@
+From e024a79b7b16b09bfe88222ed7f43b969b3eb444 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Fri, 18 Dec 2009 10:49:19 -0500
+Subject: [PATCH] clean up build system
+
+Respect env build settings (compiler flags and tools) and install the man
+page for people.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ src/Makefile | 32 ++++++++++++++++++--------------
+ 1 files changed, 18 insertions(+), 14 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index de24551..9a3cc05 100644
+--- a/Makefile
++++ b/Makefile
+@@ -3,14 +3,22 @@ HAS_GTK_GUI = 1
+
+ DESTDIR =
+ SBINDIR = /usr/sbin
+-XCFLAGS = -W -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare
+-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw
++DATADIR = /usr/share/latencytop
++MANDIR = /usr/share/man
++MAN8DIR = $(MANDIR)/man8
++PKG_CONFIG ?= pkg-config
++CFLAGS ?= -g -W
++CPPFLAGS ?= -D_FORTIFY_SOURCE=2
++override CFLAGS += -Wno-sign-compare
++override CPPFLAGS += `$(PKG_CONFIG) --cflags glib-2.0`
++LDFLAGS ?= -Wl,--as-needed
++LDADD = `$(PKG_CONFIG) --libs glib-2.0` `$(PKG_CONFIG) --libs ncursesw`
+
+ OBJS= latencytop.o text_display.o translate.o fsync.o
+
+-ifdef HAS_GTK_GUI
+- XCFLAGS += `pkg-config --cflags gtk+-2.0` -DHAS_GTK_GUI
+- LDF += `pkg-config --libs gtk+-2.0`
++ifeq ($(HAS_GTK_GUI),1)
++ override CPPFLAGS += `$(PKG_CONFIG) --cflags gtk+-2.0` -DHAS_GTK_GUI
++ LDADD += `$(PKG_CONFIG) --libs gtk+-2.0`
+ OBJS += gtk_display.o
+ endif
+
+@@ -24,19 +32,17 @@ endif
+ # libncursesw5-dev package.
+ #
+
+-# We write explicity this "implicit rule"
+-%.o : %.c
+- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@
+-
+ latencytop: $(OBJS) latencytop.h Makefile
+- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LDADD)
+
+ clean:
+ rm -f *~ latencytop DEADJOE *.o
+
+ install: latencytop
+- mkdir -p $(DESTDIR)/usr/share/latencytop
+- mkdir -p $(DESTDIR)/$(SBINDIR)
+- install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
+- install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/
++ mkdir -p $(DESTDIR)$(DATADIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MAN8DIR)
++ install -m 0644 latencytop.trans $(DESTDIR)$(DATADIR)/latencytop.trans
++ifeq ($(HAS_GTK_GUI),1)
++ install -m 0644 *.png $(DESTDIR)$(DATADIR)/
++endif
++ install -m 0644 *.8 $(DESTDIR)$(MAN8DIR)/
+ install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/
+--
+1.6.5.4
+
diff --git a/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch
new file mode 100644
index 000000000000..33f2bc278600
--- /dev/null
+++ b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch
@@ -0,0 +1,28 @@
+From 60427a259ba76b8238198e1f17a0c3b06491be3c Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Fri, 18 Dec 2009 10:48:39 -0500
+Subject: [PATCH] fsync: fix implicit decl
+
+fsync.c: In function 'fsync_display':
+fsync.c:330: warning: implicit declaration of function 'gettimeofday'
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ src/fsync.c | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/src/fsync.c b/src/fsync.c
+index 1706571..3bec719 100644
+--- a/fsync.c
++++ b/fsync.c
+@@ -30,6 +30,7 @@
+ #include <string.h>
+ #include <ncurses.h>
+ #include <time.h>
++#include <sys/time.h>
+ #include <wchar.h>
+ #include <ctype.h>
+
+--
+1.6.5.4
+
diff --git a/sys-process/latencytop/latencytop-0.5-r1.ebuild b/sys-process/latencytop/latencytop-0.5-r1.ebuild
new file mode 100644
index 000000000000..581390bf9ef9
--- /dev/null
+++ b/sys-process/latencytop/latencytop-0.5-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils linux-info
+
+DESCRIPTION="tool for identifying where in the system latency is happening"
+HOMEPAGE="http://git.infradead.org/latencytop.git"
+
+# Upstream is long gone, so we explicitly use our mirrors for the tarball
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+CONFIG_CHECK="~LATENCYTOP"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="gtk"
+
+RDEPEND="dev-libs/glib:2
+ gtk? ( x11-libs/gtk+:2 )
+ sys-libs/ncurses:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+# Upstream is dead, so there are no bugs to track for any
+# of these patches.
+PATCHES=(
+ "${FILESDIR}/${P}-01-mkdir-usr-sbin-as-well.patch"
+ "${FILESDIR}/${P}-03-clean-up-build-system.patch"
+ "${FILESDIR}/${P}-fsync-fix-implicit-decl.patch"
+)
+
+pkg_pretend() {
+ linux-info_pkg_setup
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+}
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+
+ # Without a configure script, we toggle bools manually
+ # This also needs to be done after patches are applied
+ # since this bool doesn't exist outside our patches
+ if ! use gtk; then
+ sed -i -e "/HAS_GTK_GUI = 1/d" Makefile || die
+ fi
+}
diff --git a/sys-process/latencytop/latencytop-0.5.ebuild b/sys-process/latencytop/latencytop-0.5.ebuild
new file mode 100644
index 000000000000..805401c62f15
--- /dev/null
+++ b/sys-process/latencytop/latencytop-0.5.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="tool for identifying where in the system latency is happening"
+HOMEPAGE="http://www.latencytop.org/"
+SRC_URI="http://www.latencytop.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gtk unicode"
+
+RDEPEND="=dev-libs/glib-2*
+ gtk? ( =x11-libs/gtk+-2* )
+ sys-libs/ncurses"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-*.patch
+ sed -i \
+ -e "/^HAS_GTK_GUI/s:=.*:=$(use gtk && echo 1):" \
+ Makefile || die
+}
+
+src_compile() {
+ tc-export CC PKG_CONFIG
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+}
diff --git a/sys-process/latencytop/metadata.xml b/sys-process/latencytop/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/sys-process/latencytop/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>