summaryrefslogtreecommitdiff
path: root/app-misc/ttyload
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:47:34 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:47:34 -0500
commitdda948891d3731927b821ce31f9d9a2d03ba20c5 (patch)
tree99cd40be4cbb0606260da212cd81b8ab2db9da9b /app-misc/ttyload
parenta3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff)
downloadbaldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz
baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz
baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip
Adding metadata
Diffstat (limited to 'app-misc/ttyload')
-rw-r--r--app-misc/ttyload/Manifest1
-rw-r--r--app-misc/ttyload/files/ttyload-0.5.3-fix-sigabrt-in-strcpy.patch16
-rw-r--r--app-misc/ttyload/metadata.xml9
-rw-r--r--app-misc/ttyload/ttyload-0.5.3-r1.ebuild42
4 files changed, 68 insertions, 0 deletions
diff --git a/app-misc/ttyload/Manifest b/app-misc/ttyload/Manifest
new file mode 100644
index 000000000000..8f85b88e2ca9
--- /dev/null
+++ b/app-misc/ttyload/Manifest
@@ -0,0 +1 @@
+DIST ttyload-0.5.3.tar.bz2 15039 BLAKE2B 0614b492a86013c524d21de9dcb2c28e357afd8cc811b103b294d60c89c8b7503ca3e47dfe0c2eaa0ff92c76ff7e4453761300ea2fae1d8f5adbbe36d201c93e SHA512 1affc171fd569d4127d7a51dda5764272e554a96db6ad4418ff6120f9b0e573679b33d45797adcb667216d167e9f3ee41349a53d4f7808b3b1c5bed76e3f4bbb
diff --git a/app-misc/ttyload/files/ttyload-0.5.3-fix-sigabrt-in-strcpy.patch b/app-misc/ttyload/files/ttyload-0.5.3-fix-sigabrt-in-strcpy.patch
new file mode 100644
index 000000000000..70f51f9fa395
--- /dev/null
+++ b/app-misc/ttyload/files/ttyload-0.5.3-fix-sigabrt-in-strcpy.patch
@@ -0,0 +1,16 @@
+Subject: Fix SIGABRT in strcpy() call when running
+From: Ricardo Mones <mones@debian.org>
+Forwarded: https://github.com/lindes/ttyload/issues/8
+Last-Update: 2019-01-13
+
+--- a/ttyload.h
++++ b/ttyload.h
+@@ -34,7 +34,7 @@ typedef struct load_list {
+ /* storage for clock display along the bottom */
+ typedef struct clock_info {
+ int pos;
+- char clock[6];
++ char clock[7];
+ time_t when;
+ } clock_info;
+
diff --git a/app-misc/ttyload/metadata.xml b/app-misc/ttyload/metadata.xml
new file mode 100644
index 000000000000..6aac50524584
--- /dev/null
+++ b/app-misc/ttyload/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/app-misc/ttyload/ttyload-0.5.3-r1.ebuild b/app-misc/ttyload/ttyload-0.5.3-r1.ebuild
new file mode 100644
index 000000000000..65919a1fbf44
--- /dev/null
+++ b/app-misc/ttyload/ttyload-0.5.3-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="color-coded graph of load averages over time"
+HOMEPAGE="https://www.daveltd.com/src/util/ttyload https://github.com/lindes/ttyload"
+SRC_URI="https://www.daveltd.com/src/util/${PN}/${P}.tar.bz2"
+
+KEYWORDS="amd64 x86"
+LICENSE="ISC"
+SLOT="0"
+
+DEPEND="sys-libs/ncurses:0="
+
+RESTRICT="test"
+
+DOCS=( BUGS HISTORY LICENSE README.md TODO )
+
+src_prepare() {
+ default
+
+ eapply "${FILESDIR}/ttyload-0.5.3-fix-sigabrt-in-strcpy.patch"
+
+ sed -i '10i#include <time.h>' "${PN}.h" || die
+
+ sed -e "s#make#$\(MAKE\)#" \
+ -e "s#^CFLAGS.*#CFLAGS=\$(INCLUDES) ${CFLAGS} \$(VERSION)#" \
+ -i Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin "${PN}"
+ doman "${PN}.1"
+ einstalldocs
+}