[gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
commit: 238a69ae68521f2872e709dc1cde0478a12358d7 Author: Kostadin Shishmanov tutanota com> AuthorDate: Tue Oct 24 17:22:31 2023 + Commit: Sam James gentoo org> CommitDate: Fri Oct 27 02:53:14 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=238a69ae sys-process/uksmd: drop 6.4.1 and remove no longer needed patch Signed-off-by: Kostadin Shishmanov tutanota.com> Closes: https://github.com/gentoo/gentoo/pull/33496 Signed-off-by: Sam James gentoo.org> sys-process/uksmd/Manifest | 1 - .../files/uksmd-6.4.1-systemd-automagic.patch | 47 -- sys-process/uksmd/uksmd-6.4.1.ebuild | 43 3 files changed, 91 deletions(-) diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest index 782c20ceec32..f439b2a4d81f 100644 --- a/sys-process/uksmd/Manifest +++ b/sys-process/uksmd/Manifest @@ -1,2 +1 @@ -DIST uksmd-6.4.1.tar.gz 16790 BLAKE2B 284302f0a77684fc00d16faf868d857adf539840ea26746dd9774a1501b3361afa58a77dd74bd40680c32a7b1baf632d60d52fae3c031d1be69c8f17e6bbf73d SHA512 ea851a75b7afd4d9c789f31ca473f2c265b0633c86e38b26ec3602dfa3e63e6bea13caca551aba08c5093332cfbb485f40cb96254c39eb083ab66d6256661dd4 DIST uksmd-6.5.1.tar.gz 16878 BLAKE2B 12c0ed088ce189470a63ed74de02b35c994363500a04a28e2b1a8e7ad1ad3b75970cf69af939476b00b8bf1a9838591f83051dc004f2f91d74f19fd17746c37f SHA512 9be0b2f16aee16201a16fb157c5389f104dc9a818a0528cfda6c37e4e9a0d82bd9966cf654052e5f645e21db2f4f149873b07cac5451a5b377a92a5ec4b6e11e diff --git a/sys-process/uksmd/files/uksmd-6.4.1-systemd-automagic.patch b/sys-process/uksmd/files/uksmd-6.4.1-systemd-automagic.patch deleted file mode 100644 index 7f897731737f.. --- a/sys-process/uksmd/files/uksmd-6.4.1-systemd-automagic.patch +++ /dev/null @@ -1,47 +0,0 @@ -https://codeberg.org/pf-kernel/uksmd/pulls/5 - -From 0ed68078ed829ff03f95d01f0079485966e3c07a Mon Sep 17 00:00:00 2001 -From: Sam James -Date: Sun, 3 Sep 2023 07:21:56 +0100 -Subject: [PATCH] meson: add systemd option - -We may not always want to link against systemd even if installed - consider -the case where a user is switching from systemd->another init system, systemd -may still be installed temporarily but the user wants to rebuild without it. - -This perserves the default behaviour of using systemd if available. - -Signed-off-by: Sam James - meson.build | 2 +- - meson_options.txt | 6 ++ - 2 files changed, 7 insertions(+), 1 deletion(-) - create mode 100644 meson_options.txt - -diff --git a/meson.build b/meson.build -index 7170db8..bf0b119 100644 a/meson.build -+++ b/meson.build -@@ -18,7 +18,7 @@ build_args = [ - '-DPROJECT_VERSION="' + meson.project_version() + '"', - ] - --systemd = dependency('systemd', required: false) -+systemd = dependency('systemd', required: get_option('systemd')) - - if systemd.found() - systemd_system_unit_dir = systemd.get_variable(pkgconfig : 'systemdsystemunitdir') -diff --git a/meson_options.txt b/meson_options.txt -new file mode 100644 -index 000..3a8cdd4 /dev/null -+++ b/meson_options.txt -@@ -0,0 +1,6 @@ -+option( -+ 'systemd', -+ type: 'feature', -+ value: 'auto', -+ description: 'sd-notify support via libsystemd and install systemd unit files' -+) --- -2.30.8 diff --git a/sys-process/uksmd/uksmd-6.4.1.ebuild b/sys-process/uksmd/uksmd-6.4.1.ebuild deleted file mode 100644 index 3977cb96df11.. --- a/sys-process/uksmd/uksmd-6.4.1.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit linux-info meson - -DESCRIPTION="Userspace KSM helper daemon" -HOMEPAGE="https://codeberg.org/pf-kernel/uksmd; -SRC_URI="https://codeberg.org/pf-kernel/uksmd/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/${PN} - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="systemd" - -DEPEND=" - sys-libs/libcap-ng - >=sys-process/procps-4:= - systemd? ( sys-apps/systemd:= ) -" -RDEPEND="${DEPEND}" - -CONFIG_CHECK="~KSM" - -PATCHES=( - "${FILESDIR}"/${PN}-6.4.1-systemd-automagic.patch -) - -src_configure() { - local emesonargs=( - $(meson_feature systemd) - ) - - meson_src_configure -} - -src_install() { - meson_src_install - - newinitd "${FILESDIR}/uksmd.init" uksmd -}
[gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
commit: f1591b8a21d1fa0622245dea329a393e6a0e7fd3 Author: Sam James gentoo org> AuthorDate: Sun Sep 3 06:27:04 2023 + Commit: Sam James gentoo org> CommitDate: Sun Sep 3 06:40:14 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1591b8a sys-process/uksmd: add 6.4.1 Fix build w/ procps-4. Closes: https://bugs.gentoo.org/913523 Signed-off-by: Sam James gentoo.org> sys-process/uksmd/Manifest | 1 + .../files/uksmd-6.4.1-systemd-automagic.patch | 47 ++ sys-process/uksmd/uksmd-6.4.1.ebuild | 43 3 files changed, 91 insertions(+) diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest index 7d2129381c07..323195096417 100644 --- a/sys-process/uksmd/Manifest +++ b/sys-process/uksmd/Manifest @@ -1 +1,2 @@ DIST uksmd-0_pre20220705.tar.gz 15715 BLAKE2B f104a804cff15eb6b3a4ffd71180d67054f4e7c4ebbe10438f76aef96ca3d83740b24390183110a26691ebb832d6740765ab7ca5b7862a8d9afe09d1cacdc4d0 SHA512 a0e99e80e22e988ce98f790d5cc693a5b961e40ffa9650002c4ff39edb148b1586ded6b8321f5ea012f674ef8cbd03daca24dca557a773e23e83a373553f7ba9 +DIST uksmd-6.4.1.tar.gz 16790 BLAKE2B 284302f0a77684fc00d16faf868d857adf539840ea26746dd9774a1501b3361afa58a77dd74bd40680c32a7b1baf632d60d52fae3c031d1be69c8f17e6bbf73d SHA512 ea851a75b7afd4d9c789f31ca473f2c265b0633c86e38b26ec3602dfa3e63e6bea13caca551aba08c5093332cfbb485f40cb96254c39eb083ab66d6256661dd4 diff --git a/sys-process/uksmd/files/uksmd-6.4.1-systemd-automagic.patch b/sys-process/uksmd/files/uksmd-6.4.1-systemd-automagic.patch new file mode 100644 index ..7f897731737f --- /dev/null +++ b/sys-process/uksmd/files/uksmd-6.4.1-systemd-automagic.patch @@ -0,0 +1,47 @@ +https://codeberg.org/pf-kernel/uksmd/pulls/5 + +From 0ed68078ed829ff03f95d01f0079485966e3c07a Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 3 Sep 2023 07:21:56 +0100 +Subject: [PATCH] meson: add systemd option + +We may not always want to link against systemd even if installed - consider +the case where a user is switching from systemd->another init system, systemd +may still be installed temporarily but the user wants to rebuild without it. + +This perserves the default behaviour of using systemd if available. + +Signed-off-by: Sam James +--- + meson.build | 2 +- + meson_options.txt | 6 ++ + 2 files changed, 7 insertions(+), 1 deletion(-) + create mode 100644 meson_options.txt + +diff --git a/meson.build b/meson.build +index 7170db8..bf0b119 100644 +--- a/meson.build b/meson.build +@@ -18,7 +18,7 @@ build_args = [ + '-DPROJECT_VERSION="' + meson.project_version() + '"', + ] + +-systemd = dependency('systemd', required: false) ++systemd = dependency('systemd', required: get_option('systemd')) + + if systemd.found() + systemd_system_unit_dir = systemd.get_variable(pkgconfig : 'systemdsystemunitdir') +diff --git a/meson_options.txt b/meson_options.txt +new file mode 100644 +index 000..3a8cdd4 +--- /dev/null b/meson_options.txt +@@ -0,0 +1,6 @@ ++option( ++ 'systemd', ++ type: 'feature', ++ value: 'auto', ++ description: 'sd-notify support via libsystemd and install systemd unit files' ++) +-- +2.30.8 diff --git a/sys-process/uksmd/uksmd-6.4.1.ebuild b/sys-process/uksmd/uksmd-6.4.1.ebuild new file mode 100644 index ..3977cb96df11 --- /dev/null +++ b/sys-process/uksmd/uksmd-6.4.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info meson + +DESCRIPTION="Userspace KSM helper daemon" +HOMEPAGE="https://codeberg.org/pf-kernel/uksmd; +SRC_URI="https://codeberg.org/pf-kernel/uksmd/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN} + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="systemd" + +DEPEND=" + sys-libs/libcap-ng + >=sys-process/procps-4:= + systemd? ( sys-apps/systemd:= ) +" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KSM" + +PATCHES=( + "${FILESDIR}"/${PN}-6.4.1-systemd-automagic.patch +) + +src_configure() { + local emesonargs=( + $(meson_feature systemd) + ) + + meson_src_configure +} + +src_install() { + meson_src_install + + newinitd "${FILESDIR}/uksmd.init" uksmd +}
[gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
commit: 999ce663d8a28b414d6b41515b7f1c04f17ad225 Author: Joonas Niilola gentoo org> AuthorDate: Thu Jul 14 05:28:57 2022 + Commit: Joonas Niilola gentoo org> CommitDate: Thu Jul 14 05:28:57 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=999ce663 sys-process/uksmd: patch out automagic dep for systemd - and always install the service file. Automagic would be harmful when switching between init systems on an existing installation, from openrc to systemd. Signed-off-by: Joonas Niilola gentoo.org> .../uksmd/files/uksmd-0-remove-systemd-dep.patch | 32 + sys-process/uksmd/uksmd-0_pre20220705-r1.ebuild| 33 ++ 2 files changed, 65 insertions(+) diff --git a/sys-process/uksmd/files/uksmd-0-remove-systemd-dep.patch b/sys-process/uksmd/files/uksmd-0-remove-systemd-dep.patch new file mode 100644 index ..6940f78e4662 --- /dev/null +++ b/sys-process/uksmd/files/uksmd-0-remove-systemd-dep.patch @@ -0,0 +1,32 @@ +diff -Naur a/meson.build b/meson.build +--- a/meson.build 2022-07-08 23:53:08.0 +0300 b/meson.build 2022-07-14 08:12:38.358174169 +0300 +@@ -13,28 +13,6 @@ + dependency('libcap-ng'), + ] + +-systemd = dependency('systemd', required: false) +- +-if systemd.found() +- systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir') +- unit_files = [ +-'uksmd.service' +- ] +- +- +- foreach u: unit_files +-configure_file( +- copy: true, +- input: u, +- install: true, +- install_dir: systemd_system_unit_dir, +- output: u, +-) +- endforeach +- +- project_dependencies += systemd +-endif +- + build_args = [ + '-DPROJECT_NAME=' + meson.project_name(), + '-DPROJECT_VERSION=' + meson.project_version(), diff --git a/sys-process/uksmd/uksmd-0_pre20220705-r1.ebuild b/sys-process/uksmd/uksmd-0_pre20220705-r1.ebuild new file mode 100644 index ..cd90995efde0 --- /dev/null +++ b/sys-process/uksmd/uksmd-0_pre20220705-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info meson systemd + +MY_COMMIT="f10f38e3adcaf6175e6c4c1846cad72ae9ab2cf2" + +DESCRIPTION="Userspace KSM helper daemon" +HOMEPAGE="https://codeberg.org/pf-kernel/uksmd; +SRC_URI="https://codeberg.org/pf-kernel/uksmd/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="sys-libs/libcap-ng + sys-process/procps:=" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KSM" + +S="${WORKDIR}/uksmd" + +PATCHES=( "${FILESDIR}"/uksmd-0-remove-systemd-dep.patch ) + +src_install() { + meson_src_install + + newinitd "${FILESDIR}/uksmd.init" uksmd + systemd_dounit uksmd.service +}
[gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
commit: 92332a4c15ce652ae82ddfaa24daac136bd52e21 Author: Joonas Niilola gentoo org> AuthorDate: Wed Jul 13 15:12:38 2022 + Commit: Joonas Niilola gentoo org> CommitDate: Wed Jul 13 15:13:54 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92332a4c sys-process/uksmd: drop 0_pre20211019 Signed-off-by: Joonas Niilola gentoo.org> sys-process/uksmd/Manifest | 1 - ...ksmd-0_pre20200504-respect-cflags-ldflags.patch | 15 -- sys-process/uksmd/uksmd-0_pre20211019.ebuild | 35 -- 3 files changed, 51 deletions(-) diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest index 04d9f07e530c..7d2129381c07 100644 --- a/sys-process/uksmd/Manifest +++ b/sys-process/uksmd/Manifest @@ -1,2 +1 @@ -DIST uksmd-0_pre20211019.tar.bz2 14434 BLAKE2B de17d4dd566eec378062d2040b9387ddbe88f14c9d0ac121d7357d9da190fb5426476b59158655104af4de2be49d14367fe13328de2fb40df23cceddbf6f1a3e SHA512 89f3784c50e1a9bae28e12f562d1c28f97b71859d3b0e2d83416785f9c47cd7da2b93481855c4b46ae6c71c332534991c28b98a5497b301c1d674744308681ce DIST uksmd-0_pre20220705.tar.gz 15715 BLAKE2B f104a804cff15eb6b3a4ffd71180d67054f4e7c4ebbe10438f76aef96ca3d83740b24390183110a26691ebb832d6740765ab7ca5b7862a8d9afe09d1cacdc4d0 SHA512 a0e99e80e22e988ce98f790d5cc693a5b961e40ffa9650002c4ff39edb148b1586ded6b8321f5ea012f674ef8cbd03daca24dca557a773e23e83a373553f7ba9 diff --git a/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch b/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch deleted file mode 100644 index 407198d5aba6.. --- a/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -Naur a/Makefile b/Makefile a/Makefile 2019-05-19 16:36:31.0 +0300 -+++ b/Makefile 2019-07-24 18:12:29.444896030 +0300 -@@ -1,8 +1,8 @@ - PROG = uksmd - OBJS = uksmd.o --PREFIX ?= /usr/local --CFLAGS = -O3 -Wall -Wextra -pedantic -pipe -fstack-protector-strong -fno-plt --LDFLAGS = -lprocps -lcap-ng -+PREFIX ?= /usr -+CFLAGS += -Wextra -pedantic -fstack-protector-strong -fno-plt -+LDFLAGS += -lprocps -lcap-ng - - all: build - diff --git a/sys-process/uksmd/uksmd-0_pre20211019.ebuild b/sys-process/uksmd/uksmd-0_pre20211019.ebuild deleted file mode 100644 index bbc2fd9e6bf8.. --- a/sys-process/uksmd/uksmd-0_pre20211019.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2019-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit linux-info systemd - -MY_COMMIT="e1d4b12d22fd710f0155d75585940f0d439f1544" -MY_P="${PN}-${MY_COMMIT}" - -DESCRIPTION="Userspace KSM helper daemon" -HOMEPAGE="https://gitlab.com/post-factum/uksmd; -SRC_URI="https://gitlab.com/post-factum/uksmd/-/archive/${MY_COMMIT}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND="sys-libs/libcap-ng - sys-process/procps:=" -RDEPEND="${DEPEND}" - -CONFIG_CHECK="~KSM" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( "${FILESDIR}/uksmd-0_pre20200504-respect-cflags-ldflags.patch" ) - -src_install() { - default - einstalldocs - - newinitd "${FILESDIR}/uksmd.init" uksmd - systemd_dounit distro/uksmd.service -}
[gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
commit: 1a7d18f23403cefa32f8e06b25607f8886b6d1fd Author: Joonas Niilola gentoo org> AuthorDate: Fri May 8 05:33:07 2020 + Commit: Joonas Niilola gentoo org> CommitDate: Fri May 8 05:35:24 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a7d18f2 sys-process/uksmd: remove old Signed-off-by: Joonas Niilola gentoo.org> sys-process/uksmd/Manifest | 1 - ...ksmd-0_pre20190726-respect-cflags-ldflags.patch | 15 -- sys-process/uksmd/uksmd-0_pre20200420.ebuild | 34 -- 3 files changed, 50 deletions(-) diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest index 009da647990..ef1d7d35405 100644 --- a/sys-process/uksmd/Manifest +++ b/sys-process/uksmd/Manifest @@ -1,2 +1 @@ -DIST uksmd-0_pre20200420.tar.bz2 13464 BLAKE2B 717bb4c54ce3d56ec89ff08e0a60ff3e1f2f260c3e63f7821842f7c1216aeee4efb1cad693db4f9c03000dbde7c47b880356f175cb35b9c3861f3511090e4f32 SHA512 ed1d44c41f2f8731d1dad8a13c17cf412a6f735a68087969cb667f85945705b93ac716f010aae24825c0b32d43c38dad5661c7a36fc59fa89d553471d806d1ee DIST uksmd-0_pre20200504.tar.bz2 13919 BLAKE2B abda5df86a2592f2e1299f23a94389c7c4af36a37e38e9f618860b5ce0b7fc796eb3b0f248bda7e3522643f5d3a3219fd5d1c66e5a21f32f8bda2a6942f6339b SHA512 9b69b3fea603aab2af27a3542e6b217de31c227581779602ae67d352917e79626530fd6ad769a8a7c147f2883926458757fbca7502b4034550292c7e6e14f2f0 diff --git a/sys-process/uksmd/files/uksmd-0_pre20190726-respect-cflags-ldflags.patch b/sys-process/uksmd/files/uksmd-0_pre20190726-respect-cflags-ldflags.patch deleted file mode 100644 index 7e92204d403..000 --- a/sys-process/uksmd/files/uksmd-0_pre20190726-respect-cflags-ldflags.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -Naur a/Makefile b/Makefile a/Makefile 2019-05-19 16:36:31.0 +0300 -+++ b/Makefile 2019-07-24 18:12:29.444896030 +0300 -@@ -1,8 +1,8 @@ - PROG = uksmd - OBJS = uksmd.o --PREFIX ?= /usr/local --CFLAGS = -O3 -Wall -Wextra -pedantic -pipe -fstack-protector-strong -fno-plt --LDFLAGS = -lprocps -+PREFIX ?= /usr -+CFLAGS += -Wextra -pedantic -fstack-protector-strong -fno-plt -+LDFLAGS += -lprocps - - all: build - diff --git a/sys-process/uksmd/uksmd-0_pre20200420.ebuild b/sys-process/uksmd/uksmd-0_pre20200420.ebuild deleted file mode 100644 index c90b24e862e..000 --- a/sys-process/uksmd/uksmd-0_pre20200420.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2019-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit linux-info systemd - -MY_COMMIT="9b6a6e55e07c524ba0a36eb25c869b47655010ee" -MY_P="${PN}-${MY_COMMIT}" - -DESCRIPTION="Userspace KSM helper daemon" -HOMEPAGE="https://gitlab.com/post-factum/uksmd; -SRC_URI="https://gitlab.com/post-factum/uksmd/-/archive/${MY_COMMIT}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND="sys-process/procps:=" -RDEPEND="${DEPEND}" - -CONFIG_CHECK="~KSM" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( "${FILESDIR}/uksmd-0_pre20190726-respect-cflags-ldflags.patch" ) - -src_install() { - default - einstalldocs - - newinitd "${FILESDIR}/uksmd.init" uksmd - systemd_dounit distro/uksmd.service -}
[gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
commit: 3e6b8985084256d7afce1953701d08f4a1d84fbe Author: Joonas Niilola gentoo org> AuthorDate: Wed May 6 05:02:44 2020 + Commit: Joonas Niilola gentoo org> CommitDate: Wed May 6 05:03:20 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e6b8985 sys-process/uksmd: 2020-05-04 snapshot Bug: https://bugs.gentoo.org/719896 Signed-off-by: Joonas Niilola gentoo.org> sys-process/uksmd/Manifest | 1 + ...ksmd-0_pre20200504-respect-cflags-ldflags.patch | 15 ++ sys-process/uksmd/uksmd-0_pre20200504.ebuild | 35 ++ 3 files changed, 51 insertions(+) diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest index 87667c6b872..009da647990 100644 --- a/sys-process/uksmd/Manifest +++ b/sys-process/uksmd/Manifest @@ -1 +1,2 @@ DIST uksmd-0_pre20200420.tar.bz2 13464 BLAKE2B 717bb4c54ce3d56ec89ff08e0a60ff3e1f2f260c3e63f7821842f7c1216aeee4efb1cad693db4f9c03000dbde7c47b880356f175cb35b9c3861f3511090e4f32 SHA512 ed1d44c41f2f8731d1dad8a13c17cf412a6f735a68087969cb667f85945705b93ac716f010aae24825c0b32d43c38dad5661c7a36fc59fa89d553471d806d1ee +DIST uksmd-0_pre20200504.tar.bz2 13919 BLAKE2B abda5df86a2592f2e1299f23a94389c7c4af36a37e38e9f618860b5ce0b7fc796eb3b0f248bda7e3522643f5d3a3219fd5d1c66e5a21f32f8bda2a6942f6339b SHA512 9b69b3fea603aab2af27a3542e6b217de31c227581779602ae67d352917e79626530fd6ad769a8a7c147f2883926458757fbca7502b4034550292c7e6e14f2f0 diff --git a/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch b/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch new file mode 100644 index 000..407198d5aba --- /dev/null +++ b/sys-process/uksmd/files/uksmd-0_pre20200504-respect-cflags-ldflags.patch @@ -0,0 +1,15 @@ +diff -Naur a/Makefile b/Makefile +--- a/Makefile 2019-05-19 16:36:31.0 +0300 b/Makefile 2019-07-24 18:12:29.444896030 +0300 +@@ -1,8 +1,8 @@ + PROG = uksmd + OBJS = uksmd.o +-PREFIX ?= /usr/local +-CFLAGS = -O3 -Wall -Wextra -pedantic -pipe -fstack-protector-strong -fno-plt +-LDFLAGS = -lprocps -lcap-ng ++PREFIX ?= /usr ++CFLAGS += -Wextra -pedantic -fstack-protector-strong -fno-plt ++LDFLAGS += -lprocps -lcap-ng + + all: build + diff --git a/sys-process/uksmd/uksmd-0_pre20200504.ebuild b/sys-process/uksmd/uksmd-0_pre20200504.ebuild new file mode 100644 index 000..4b451363e71 --- /dev/null +++ b/sys-process/uksmd/uksmd-0_pre20200504.ebuild @@ -0,0 +1,35 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info systemd + +MY_COMMIT="5325ae51733ebb010862365c5a474f0d68f1ca1f" +MY_P="${PN}-${MY_COMMIT}" + +DESCRIPTION="Userspace KSM helper daemon" +HOMEPAGE="https://gitlab.com/post-factum/uksmd; +SRC_URI="https://gitlab.com/post-factum/uksmd/-/archive/${MY_COMMIT}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="sys-libs/libcap-ng + sys-process/procps:=" +RDEPEND="${DEPEND}" + +CONFIG_CHECK="~KSM" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/uksmd-0_pre20200504-respect-cflags-ldflags.patch" ) + +src_install() { + default + einstalldocs + + newinitd "${FILESDIR}/uksmd.init" uksmd + systemd_dounit distro/uksmd.service +}
[gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
commit: 76e0423c5a0ebcda507f90ff369e2dacb18b988d Author: Joonas Niilola gentoo org> AuthorDate: Fri Mar 20 07:01:36 2020 + Commit: Joonas Niilola gentoo org> CommitDate: Fri Mar 20 07:01:36 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76e0423c sys-process/uksmd: update openrc init file Signed-off-by: Joonas Niilola gentoo.org> sys-process/uksmd/files/uksmd.init | 6 +++--- .../{uksmd-0_pre20190726.ebuild => uksmd-0_pre20190726-r1.ebuild} | 0 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys-process/uksmd/files/uksmd.init b/sys-process/uksmd/files/uksmd.init index 637666b50a9..1caf4a72d40 100644 --- a/sys-process/uksmd/files/uksmd.init +++ b/sys-process/uksmd/files/uksmd.init @@ -1,7 +1,7 @@ #!/sbin/openrc-run -# Copyright 2019 Gentoo Authors +# Copyright 2019-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 description="Userspace KSM helper daemon" -command=/usr/bin/uksmd -pidfile="/var/run/uksmd.pid" +command="/usr/bin/uksmd" +procname="uksmd" diff --git a/sys-process/uksmd/uksmd-0_pre20190726.ebuild b/sys-process/uksmd/uksmd-0_pre20190726-r1.ebuild similarity index 100% rename from sys-process/uksmd/uksmd-0_pre20190726.ebuild rename to sys-process/uksmd/uksmd-0_pre20190726-r1.ebuild
[gentoo-commits] repo/gentoo:master commit in: sys-process/uksmd/files/, sys-process/uksmd/
commit: b6025b7c968de8ffe087e94d103ddc0e286f4c2d Author: Joonas Niilola gentoo org> AuthorDate: Thu Aug 8 14:35:41 2019 + Commit: Joonas Niilola gentoo org> CommitDate: Thu Aug 8 14:36:35 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6025b7c sys-process/uksmd: new package - Userspace KSM helper daemon, to be run with pf-sources and CONFIG_KSM. Package-Manager: Portage-2.3.71, Repoman-2.3.16 Signed-off-by: Joonas Niilola gentoo.org> sys-process/uksmd/Manifest | 1 + .../uksmd-0_p20190726-respect-cflags-ldflags.patch | 15 ++ sys-process/uksmd/files/uksmd.init | 7 + sys-process/uksmd/metadata.xml | 8 + sys-process/uksmd/uksmd-0_pre20190726.ebuild | 34 ++ 5 files changed, 65 insertions(+) diff --git a/sys-process/uksmd/Manifest b/sys-process/uksmd/Manifest new file mode 100644 index 000..62b393ac65d --- /dev/null +++ b/sys-process/uksmd/Manifest @@ -0,0 +1 @@ +DIST uksmd-0_pre20190726.tar.bz2 13445 BLAKE2B 4d16b9e7dff80269561c61cf8ea4177e6ceaa2540a3ee5bb3a36684e8364d0a4abdfb494fd0dbb3e6d5d2c074601a0c39f9f0570448e3d5769e50184c8ef7975 SHA512 812217a067c2fe70a17a321b507071f369efa38ca12d566cde66b1fc6e2e3ffa7e4d3fd3904f2f3cf409e313d03ab06829cef23fffadd785282cb602dbd5f06e diff --git a/sys-process/uksmd/files/uksmd-0_p20190726-respect-cflags-ldflags.patch b/sys-process/uksmd/files/uksmd-0_p20190726-respect-cflags-ldflags.patch new file mode 100644 index 000..7e92204d403 --- /dev/null +++ b/sys-process/uksmd/files/uksmd-0_p20190726-respect-cflags-ldflags.patch @@ -0,0 +1,15 @@ +diff -Naur a/Makefile b/Makefile +--- a/Makefile 2019-05-19 16:36:31.0 +0300 b/Makefile 2019-07-24 18:12:29.444896030 +0300 +@@ -1,8 +1,8 @@ + PROG = uksmd + OBJS = uksmd.o +-PREFIX ?= /usr/local +-CFLAGS = -O3 -Wall -Wextra -pedantic -pipe -fstack-protector-strong -fno-plt +-LDFLAGS = -lprocps ++PREFIX ?= /usr ++CFLAGS += -Wextra -pedantic -fstack-protector-strong -fno-plt ++LDFLAGS += -lprocps + + all: build + diff --git a/sys-process/uksmd/files/uksmd.init b/sys-process/uksmd/files/uksmd.init new file mode 100644 index 000..637666b50a9 --- /dev/null +++ b/sys-process/uksmd/files/uksmd.init @@ -0,0 +1,7 @@ +#!/sbin/openrc-run +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Userspace KSM helper daemon" +command=/usr/bin/uksmd +pidfile="/var/run/uksmd.pid" diff --git a/sys-process/uksmd/metadata.xml b/sys-process/uksmd/metadata.xml new file mode 100644 index 000..6b0a0fb3a72 --- /dev/null +++ b/sys-process/uksmd/metadata.xml @@ -0,0 +1,8 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + +juip...@gentoo.org +Joonas Niilola + + diff --git a/sys-process/uksmd/uksmd-0_pre20190726.ebuild b/sys-process/uksmd/uksmd-0_pre20190726.ebuild new file mode 100644 index 000..d0007f9ba41 --- /dev/null +++ b/sys-process/uksmd/uksmd-0_pre20190726.ebuild @@ -0,0 +1,34 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info systemd + +MY_COMMIT="42f4ff8eb09011bf1a199938aa2afe23040d7faf" +MY_P="${PN}-${MY_COMMIT}" + +DESCRIPTION="Userspace KSM helper daemon" +HOMEPAGE="https://gitlab.com/post-factum/uksmd; +SRC_URI="https://gitlab.com/post-factum/uksmd/-/archive/${MY_COMMIT}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="sys-kernel/pf-sources:* + sys-process/procps" + +CONFIG_CHECK="KSM" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}/${P}-respect-cflags-ldflags.patch" ) + +src_install() { + default + einstalldocs + + newinitd "${FILESDIR}/uksmd.init" uksmd + systemd_dounit distro/uksmd.service +}