From 622b78d0d832282505f685f2f442c34ea0e8a7b1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 23 Apr 2023 18:08:08 +0100 Subject: gentoo auto-resync : 23:04:2023 - 18:08:08 --- app-admin/Manifest.gz | Bin 32073 -> 32074 bytes app-admin/cpulimit/Manifest | 4 +++ app-admin/cpulimit/cpulimit-2.8.ebuild | 28 +++++++++++++++++++++ .../cpulimit/files/cpulimit-2.8-inline-func.patch | 11 ++++++++ .../cpulimit/files/cpulimit-2.8-makefile.patch | 25 ++++++++++++++++++ 5 files changed, 68 insertions(+) create mode 100644 app-admin/cpulimit/cpulimit-2.8.ebuild create mode 100644 app-admin/cpulimit/files/cpulimit-2.8-inline-func.patch create mode 100644 app-admin/cpulimit/files/cpulimit-2.8-makefile.patch (limited to 'app-admin') diff --git a/app-admin/Manifest.gz b/app-admin/Manifest.gz index e365398b4909..91749d4fa309 100644 Binary files a/app-admin/Manifest.gz and b/app-admin/Manifest.gz differ diff --git a/app-admin/cpulimit/Manifest b/app-admin/cpulimit/Manifest index 76a0fd7c82e9..cfe586cab771 100644 --- a/app-admin/cpulimit/Manifest +++ b/app-admin/cpulimit/Manifest @@ -1,3 +1,7 @@ +AUX cpulimit-2.8-inline-func.patch 454 BLAKE2B 282733b42c9e1ec1e7d39e28b4830912be9b636734086e78a32e5c8490fb906f9e88ac4edec3891d926e7a8f8227f0384811f1849c228fab39a620cafaec3e8b SHA512 727d548964e4ce3d81131ed113067666c4c6dc21306e9698efb6d7b6f2aceb6079a09ddbe6c6f9c10b40593dc6f769850bf2d9df6aac0bd3b8a4a3fa6c42d873 +AUX cpulimit-2.8-makefile.patch 599 BLAKE2B 2b0f138ee0a30ce8a1e84b15c949c4c7176703968da326801672d98851b1ad4185ce5b6c9a6259a67e0de57b0b29b95fe96daf6e354b6c73cdf9b78fd5689ca2 SHA512 2d25fdbfa47f37d98592b1197f3877de6bbbbd40b975fa18163aa2d23ec32d13efe311736df0c68a8510219423d4673ef6e123a932300ae79d476efa119a0dca DIST cpulimit-2.4.tar.gz 24669 BLAKE2B e0fe0d6766e76e6e2a68dcdc553039400233daabbb14ce4a9dae46a7b694d2ecd660f4c1d13f417a74b12365c719780c732a03bd91c6384d1e7118d0fce521fb SHA512 008dc3fbdcbd8afd875a2a1ce03d609db595c6e110803140c676d3713ea60f4877a1bb8e7aa0e8b669dce31522ad81e2703f616341a0f4cbc69a6b01865b66d0 +DIST cpulimit-2.8.tar.gz 24860 BLAKE2B 6d4002d2cbc46da9ce102da77b701e6a99c2e7d16e2e7989baa1e07ef335b126a8c717c4779d121aee1e580ebf057a16b4f83c1bc6a29c904a7532debc4c490a SHA512 aeb121739a5dc9f94c6ddb0905ed05eb7d146c9d0e71c34ba46aad798bda2c30b7ccc548338b4c468f9885f09d97a4565c00199c8df6af74dc9b6f23940c540e EBUILD cpulimit-2.4.ebuild 644 BLAKE2B 2a8f0740196e5f4b2486febb25cdda806117545ccddd4d76590eed987e17a895231175494c8f14f5f869985ea4d48e3ebf24b64296bafcf8c55d9d753d0f2554 SHA512 d934fc8ef4724f7ede84ead40c651c1b9949e86c4a74e53a232cdb61d59e8f4ca7f25977200668e4818c4605ec745cf38268db2a26ad7200c4f8cd7fc0459d75 +EBUILD cpulimit-2.8.ebuild 581 BLAKE2B d8bba75f04b8b34576499503a855722728d338184771cd9115ad74aa2b2da0199d85d4f35ff69482a81666085d8cffd6394dd72d315eb38027a8af8a7217e624 SHA512 7a66da07280fb82ade795ddb55062099e0ee41f325759d3ce6ffaffca6b764b3d855f03cab2508891212f1be02596a7d744da761cdd478c11b093260b28ba800 MISC metadata.xml 329 BLAKE2B 3c7197920abb098e532aaac28dfa0e349df9ab7e9400cd6cfb2db6eb581c58de452a9e3dbd6c7b04bd440671e33bec907c89595d145526a17b3f847125f8c14e SHA512 fa471be33c6e8c68b924432381fdbbc4821179d92a71377458c50e36f41b4147dc7f95eb2ac49c23a61646720f2702551adce8cfa5dd6acd8ce5b96993860215 diff --git a/app-admin/cpulimit/cpulimit-2.8.ebuild b/app-admin/cpulimit/cpulimit-2.8.ebuild new file mode 100644 index 000000000000..a3d5dc9d8201 --- /dev/null +++ b/app-admin/cpulimit/cpulimit-2.8.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Limits the CPU usage of a process" +HOMEPAGE="https://cpulimit.sourceforge.net" +SRC_URI="mirror://sourceforge/limitcpu/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" + +PATCHES=( + "${FILESDIR}/${P}-makefile.patch" + "${FILESDIR}/${P}-inline-func.patch" # Bug #686528 +) + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + dodoc CHANGELOG README +} diff --git a/app-admin/cpulimit/files/cpulimit-2.8-inline-func.patch b/app-admin/cpulimit/files/cpulimit-2.8-inline-func.patch new file mode 100644 index 000000000000..12b516223a01 --- /dev/null +++ b/app-admin/cpulimit/files/cpulimit-2.8-inline-func.patch @@ -0,0 +1,11 @@ +--- a/cpulimit.c 2023-02-06 19:07:19.450894524 +0300 ++++ b/cpulimit.c 2023-02-06 19:07:28.834337797 +0300 +@@ -125,7 +125,7 @@ + + + //return ta-tb in microseconds (no overflow checks!) +-inline long timediff(const struct timespec *ta,const struct timespec *tb) { ++static long timediff(const struct timespec *ta,const struct timespec *tb) { + unsigned long us = (ta->tv_sec-tb->tv_sec)*1000000 + (ta->tv_nsec/1000 - tb->tv_nsec/1000); + return us; + } diff --git a/app-admin/cpulimit/files/cpulimit-2.8-makefile.patch b/app-admin/cpulimit/files/cpulimit-2.8-makefile.patch new file mode 100644 index 000000000000..7daf8a7092ab --- /dev/null +++ b/app-admin/cpulimit/files/cpulimit-2.8-makefile.patch @@ -0,0 +1,25 @@ +--- a/Makefile 2023-02-06 18:47:21.311693323 +0300 ++++ b/Makefile 2023-02-06 18:48:23.392517904 +0300 +@@ -2,6 +2,7 @@ + PREFIX?=/usr + CFLAGS?=-Wall -O2 + CC?=clang ++DESTDIR= + + all: cpulimit + +@@ -21,10 +22,10 @@ + $(MAKE) -C test + + install: cpulimit +- mkdir -p ${PREFIX}/bin +- mkdir -p ${PREFIX}/share/man/man1 +- cp cpulimit ${PREFIX}/bin +- cp cpulimit.1 ${PREFIX}/share/man/man1 ++ mkdir -p ${DESTDIR}/${PREFIX}/bin ++ mkdir -p ${DESTDIR}/${PREFIX}/share/man/man1 ++ cp cpulimit ${DESTDIR}/${PREFIX}/bin ++ cp cpulimit.1 ${DESTDIR}/${PREFIX}/share/man/man1 + + deinstall: + rm -f ${PREFIX}/bin/cpulimit -- cgit v1.2.3