summaryrefslogtreecommitdiff
path: root/sys-process/numad
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /sys-process/numad
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'sys-process/numad')
-rw-r--r--sys-process/numad/Manifest4
-rw-r--r--sys-process/numad/files/numad-0.5-wformat-security.patch19
-rw-r--r--sys-process/numad/numad-0.5-r4.ebuild53
-rw-r--r--sys-process/numad/numad-9999.ebuild17
4 files changed, 83 insertions, 10 deletions
diff --git a/sys-process/numad/Manifest b/sys-process/numad/Manifest
index 593029af087a..2431ac09b3cf 100644
--- a/sys-process/numad/Manifest
+++ b/sys-process/numad/Manifest
@@ -1,9 +1,11 @@
AUX 0001-Fix-man-page-directory-creation.patch 722 BLAKE2B c98194d7b9a3679d800dcbd5346bc8b8c141b9021d75f574c876b1f9a8972dfe5a6247cc891c0795a2bd1687db70377e96b3e8bef663e20fedbfc1e324102bfb SHA512 e43609c3e6af1f01c886e707cd126126b9bbc8da98b8313e67d98909889f2c81d640db9bc999ca056611dc7792c8a0d3e9ecf9949b4c0a58d33e9bbe74b127ae
AUX numad-0.5-ldlibs.patch 912 BLAKE2B 0e086913e819d91469bfae5a6d9e5553c91fcd2971e33e3a1066c277319671fb3157393f5ef8f6771c8d8df719d1b728c310f6de51f41112b7a954e4d149f9d9 SHA512 7bd6e90617382080aaa217fa82c1b792d4b33b2dfc51ec43f3539e2b98eec1aa7fa8312e11fef97974d3ecd3f888a997a3c2b21ee980fc8ec4e74dd4bcdb6cbc
+AUX numad-0.5-wformat-security.patch 661 BLAKE2B 213400a08547a4c7391bed4e2f373e44f1bbdea2398d7f5037bebf3748d4ab63a5b116ca2a8b97f519891cd33186055adefbef72c86fc34576835caf23f7919a SHA512 20bb8d8dddfcc27dc0b7174aacbdac910136482369dfe2a4c99e47ca810c0604cd23faffd3c2fdab33b79f5fa40987a0b78877672345c0278fbd8a8fb3a56879
AUX numad.confd 157 BLAKE2B c2b2c983c2192f63a8212bfbf05f51bebe5854e7bcee6df15ccb8943b08996276d840555bd658782c0baad1dd6cce458a5f7fba785d866224008c49bffd8b074 SHA512 59cb56e31e9581c4b8cdc52f2547269987afb513a9e21ac7c218733d8b7643da6587b38d491b9c739a9cf57fd8713fbfbf849112ed0b49a0b7166f0c6697ae00
AUX numad.initd 315 BLAKE2B 6cc341364e6766a2376773f453973bb72353eda8fa95c1a768f119b3202c347e9807afb51659a323dc66fdd547b964595975c61b69222efc38909bdefd36ca2f SHA512 80b7f006f2f8a934413ec435ee1a48019e2dfeac16585f794102c47cc9011c3db0b290a9ce0b6df01b1ba8dda85e56932ae1f52eac7023e5658edf7d828d14de
AUX numad.logrotated 60 BLAKE2B 384bada94db096e9c02555d5342fc998482012bfedb3a6c71af95ff41655a5ce17cddef19e589cfa0d4162f38228a7602ba24ba0ff5d791201593f7096776784 SHA512 6ffdc65b85fd44866b18318b3259e72188547b600e53ef2407ce8f7f1db41582ff9250bdfe4fd360e81816d533f93170cf46e3e8d89cfe57640a07a6bb101d81
DIST numad-0.5-334278f.tar.bz2 21007 BLAKE2B f226e90e0ad664b0cccd82c060b21cc8b7c4b086220f6eee1cd6e421b32f0efe2be11e66ce749142315f8207e19e635a718a41e5a8dd3ecfda02a96dfbd62798 SHA512 1b4a577f0713bae1386f2064fcb2dcbfb9453e23e7617f40cfff4e56d02a8c26a48c8d03f1ac7aa36e4ba168824572377f84bc669d1dabdc1820c2cdc4c57911
EBUILD numad-0.5-r3.ebuild 1133 BLAKE2B f1be961f616dcd59488ffaca62ebfac54954d98101935053bfbf41ddaffffd416d0a9b88810bec439f4ffc3d1fc5632ce90d594da52359a034a0b1797524e191 SHA512 ea3eb7e4d9f4cc358b8a3098c66987040c7a70db7d9a8cf79afa7861d913cef895fb3f7c0332afa5e3d974387ce3b7f0f595a26ec88b9d9c2ed8a036b692637e
-EBUILD numad-9999.ebuild 987 BLAKE2B 5af25dfa704cb7aa3f8b7c914e492be8b6153639ead69120ba1d6eacdbe283832ac2c24bbc07ad168242576fa7c0700ae236e9932fe94a838902afe5c1f502cc SHA512 8f1b703d6e1b6cdad30a0941def476e0050501b3d924065313db90dcea5fafe81af46af555af83f2243c0655d334832bdf0f0c278e0a3cf0e3f80beead66153b
+EBUILD numad-0.5-r4.ebuild 1174 BLAKE2B aa3b9aec1be672489cbe511be56e4a46642bb2c535e3ee1301a4d3cf479b0fdddf9b0981ff1e8015133b4fbcedc834f9fffd20f1df86cb28ba75f97b01cd1168 SHA512 89977a8b23ad153c6190f65a5487b19f1441d8c775e7111b31e94ed0ad0dd287886e680ddae1969a9771b8e4e78d7bb2879128b0d9bf0be24c63ae721882053e
+EBUILD numad-9999.ebuild 1017 BLAKE2B e8e232110a892b8cfeadb2e432dca620f88ca9b5b81c2305992fa4de47e2feaccab6555780b282fc7548c947316956639e644bcf768a911e1a996e4d7ae53899 SHA512 ad2b79c664d80f019f4a9f0ee3345741fbe76e6846b2e3911cf767a589974394e8a7c23683a16e7c37005374f935373fb511553d351eaed88df0dfa34ec0665e
MISC metadata.xml 254 BLAKE2B f3a9f843cf94243d1129711770df727fcdc8808bca829ef784819cab6f5410dfa463cfed85182f8228c7de796a674dd602653ad3ef817a62c0c3e7198b23befe SHA512 b9fcd3084a7e197f6138e1ce8b0eff99c4c203c37a7d5c40de207040ba1501ef0e5b2f4e00216a567037bcd6d3394fdec6ff587484c9ba2fca9d04f431733b7c
diff --git a/sys-process/numad/files/numad-0.5-wformat-security.patch b/sys-process/numad/files/numad-0.5-wformat-security.patch
new file mode 100644
index 000000000000..5c0aa2c41f18
--- /dev/null
+++ b/sys-process/numad/files/numad-0.5-wformat-security.patch
@@ -0,0 +1,19 @@
+https://src.fedoraproject.org/rpms/numad/raw/f21/f/0001-Fix-build-with-Werror-format-security.patch
+https://bugs.gentoo.org/520308
+
+From 6ab732334bc765d4b5883ddde0e9891b4813d136 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
+Date: Mon, 20 Jan 2014 22:25:58 +0200
+Subject: [PATCH 1/2] Fix build with -Werror=format-security
+
+--- a/numad.c
++++ b/numad.c
+@@ -154,7 +154,7 @@ void numad_log(int level, const char *fmt, ...) {
+ }
+ char buf[BUF_SIZE];
+ time_t ts = time(NULL);
+- sprintf(buf, ctime(&ts));
++ sprintf(buf, "%s", ctime(&ts));
+ char *p = &buf[strlen(buf) - 1];
+ *p++ = ':';
+ *p++ = ' ';
diff --git a/sys-process/numad/numad-0.5-r4.ebuild b/sys-process/numad/numad-0.5-r4.ebuild
new file mode 100644
index 000000000000..33f98562b754
--- /dev/null
+++ b/sys-process/numad/numad-0.5-r4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info systemd toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://pagure.io/numad.git"
+ inherit git-r3
+else
+ EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693"
+ SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2"
+ KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86"
+ S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}"
+fi
+
+DESCRIPTION="The NUMA daemon that manages application locality"
+HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+
+CONFIG_CHECK="~NUMA ~CPUSETS"
+
+PATCHES=(
+ "${FILESDIR}/0001-Fix-man-page-directory-creation.patch"
+ "${FILESDIR}/${PN}-0.5-ldlibs.patch"
+ "${FILESDIR}/${PN}-0.5-wformat-security.patch"
+)
+
+src_prepare() {
+ default
+ tc-export CC
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS} -std=gnu99"
+}
+
+src_install() {
+ emake prefix="${ED}"/usr install
+
+ newinitd "${FILESDIR}"/numad.initd numad
+ newconfd "${FILESDIR}"/numad.confd numad
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/numad.logrotated numad
+
+ insinto /etc
+ doins numad.conf
+ systemd_dounit numad.service
+}
diff --git a/sys-process/numad/numad-9999.ebuild b/sys-process/numad/numad-9999.ebuild
index ddf19989ed7c..61b74b22ad42 100644
--- a/sys-process/numad/numad-9999.ebuild
+++ b/sys-process/numad/numad-9999.ebuild
@@ -1,15 +1,15 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit linux-info systemd toolchain-funcs
-if [[ ${PV} == "9999" ]]; then
+if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://pagure.io/numad.git"
inherit git-r3
else
- EGIT_COMMIT=""
+ EGIT_COMMIT="334278ff3d774d105939743436d7378a189e8693"
SRC_URI="mirror://gentoo/numad-0.5-${EGIT_COMMIT:0:7}.tar.bz2"
KEYWORDS="~amd64 -arm ~arm64 ~ppc64 ~s390 ~x86"
S="${WORKDIR}/${PN}-${EGIT_COMMIT:0:7}"
@@ -20,7 +20,6 @@ HOMEPAGE="http://fedoraproject.org/wiki/Features/numad"
LICENSE="LGPL-2.1"
SLOT="0"
-IUSE=""
CONFIG_CHECK="~NUMA ~CPUSETS"
@@ -34,13 +33,13 @@ src_compile() {
}
src_install() {
- emake prefix="${ED}/usr" install
+ emake prefix="${ED}"/usr install
- newinitd "${FILESDIR}/numad.initd" numad
- newconfd "${FILESDIR}/numad.confd" numad
+ newinitd "${FILESDIR}"/numad.initd numad
+ newconfd "${FILESDIR}"/numad.confd numad
insinto /etc/logrotate.d
- newins "${FILESDIR}/numad.logrotated" numad
+ newins "${FILESDIR}"/numad.logrotated numad
insinto /etc
doins numad.conf