diff options
Diffstat (limited to 'app-misc/ttyload')
-rw-r--r-- | app-misc/ttyload/Manifest | 2 | ||||
-rw-r--r-- | app-misc/ttyload/files/ttyload-0.5.3-fix-sigabrt-in-strcpy.patch | 16 | ||||
-rw-r--r-- | app-misc/ttyload/ttyload-0.5.3-r1.ebuild | 42 |
3 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/ttyload/Manifest b/app-misc/ttyload/Manifest index 17ec603b82da..cdab289bb813 100644 --- a/app-misc/ttyload/Manifest +++ b/app-misc/ttyload/Manifest @@ -1,3 +1,5 @@ +AUX ttyload-0.5.3-fix-sigabrt-in-strcpy.patch 414 BLAKE2B 005931b3e1c333f7af68a856650be0388bca7865d503eb1ed090de395c29e7ef52834a7a13c55c55f192c2a74fd4a667e51be792debb0456aef946cc77e8ceef SHA512 ddc6ddc5915878b1392813d7547636af56b60bf28ae030074b767179f60c66c866470af4a448f5c7629e0d0b0781ba35cd46a2a6728c9c4c1c5ba47f58f72a4c DIST ttyload-0.5.3.tar.bz2 15039 BLAKE2B 0614b492a86013c524d21de9dcb2c28e357afd8cc811b103b294d60c89c8b7503ca3e47dfe0c2eaa0ff92c76ff7e4453761300ea2fae1d8f5adbbe36d201c93e SHA512 1affc171fd569d4127d7a51dda5764272e554a96db6ad4418ff6120f9b0e573679b33d45797adcb667216d167e9f3ee41349a53d4f7808b3b1c5bed76e3f4bbb +EBUILD ttyload-0.5.3-r1.ebuild 870 BLAKE2B cf2ea9d6cd90e5cb59326824d8f4b2377d0538988e3f5ab91b189260a5658ecd06fd894fa6ef39e74686210d05cd381ec165a1ccfcf4c6d9d31a011bd3f865e6 SHA512 5034d206c688fa1cf84bb74b2eda9ce149b1744e24adc6fa0d5be5fbdc4f5f74cb3abec6793506530c4d560016a5c1bc77869490b01016af6cec0d428b512ba4 EBUILD ttyload-0.5.3.ebuild 802 BLAKE2B 4a29f5d4d29d6d4f720dd8fa6362a52cc01c49a49bb4b5d7dec9baff453adbfb62827898fb0c13fc7897d3d9c290e2a2dd5a25b4011b2328f22481ed4c9fe64d SHA512 53be4bbef175cae500e6c8d5480f3cc1d5e8e3c399a7997397911f7caa683701f98f64d7f0f11db097b8a67cff6785076da949a7389e71c5d31e50c846a26693 MISC metadata.xml 377 BLAKE2B 377ae6a1620e09bf5a309a212ed7b4db5516e51b9e955373502252ab4fa5bdd9520d5c145905634d76e3884a3a993a6fb2cbe37e730e177081ea5f0c65b3c1ec SHA512 7db7620ce42324e2a551b2fa5898aab491c868b5d28b938e163ea1bf24aed66913fff8d611e95c634e65aa5372bed9314a55b278d62157929d6873cea7994bd6 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/ttyload-0.5.3-r1.ebuild b/app-misc/ttyload/ttyload-0.5.3-r1.ebuild new file mode 100644 index 000000000000..5a031a28898f --- /dev/null +++ b/app-misc/ttyload/ttyload-0.5.3-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 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 +} |