summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-06 02:17:48 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-06 02:17:48 +0000
commit7a6210004c4b2f0af12bc18ebc61c5cc8625c443 (patch)
tree538bfb2eb3a7e87bf3a7a9d799e001003454a27e
parent5ef05cca1612bcc9ffdc2868eccbb96ea5d84700 (diff)
automatic import of ksmtunedopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--ksmtuned.spec65
-rw-r--r--sources1
3 files changed, 67 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ce42633 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ksmtuned-0.1.0.tar.gz
diff --git a/ksmtuned.spec b/ksmtuned.spec
new file mode 100644
index 0000000..8dbc46a
--- /dev/null
+++ b/ksmtuned.spec
@@ -0,0 +1,65 @@
+Name: ksmtuned
+Version: 0.1.0
+Release: 1%{?dist}
+
+Summary: Kernel Samepage Merging services
+License: GPLv2+
+URL: https://github.com/ksmtuned/ksmtuned
+Source0: https://github.com/ksmtuned/ksmtuned/archive/v%{version}/ksmtuned-%{version}.tar.gz
+
+# Source-git patches
+
+BuildRequires: gcc
+BuildRequires: meson
+%{?systemd_requires}
+BuildRequires: systemd
+
+
+%description
+Kernel Samepage Merging (KSM) is a memory-saving de-duplication feature,
+that merges anonymous (private) pages (not pagecache ones).
+
+This package provides service files for disabling (ksm) and tuning
+(ksmtuned)
+
+
+%prep
+%autosetup -p1
+
+
+%build
+%meson \
+ -Dredhat-sysconfig=true
+%meson_build
+
+
+%install
+%meson_install
+
+
+%post
+%systemd_post ksm.service
+%systemd_post ksmtuned.service
+%preun
+%systemd_preun ksm.service
+%systemd_preun ksmtuned.service
+%postun
+%systemd_postun_with_restart ksm.service
+%systemd_postun_with_restart ksmtuned.service
+
+
+%files
+%license COPYING
+%{_libexecdir}/ksmctl
+%{_sbindir}/ksmtuned
+%{_unitdir}/ksmtuned.service
+%{_unitdir}/ksm.service
+%config(noreplace) %{_sysconfdir}/ksmtuned.conf
+%config(noreplace) %{_sysconfdir}/sysconfig/ksm
+
+
+%changelog
+* Wed Oct 06 2021 Miroslav Rezanina <mrezanin@redhat.com> - 0.1.0-1
+- Initial build [bz#1972158]
+- Resolves: bz#1972158
+ (Add ksmtuned component to RHEL 9)
diff --git a/sources b/sources
new file mode 100644
index 0000000..ccee69b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+be56cea433a26655c1d937a08528b028 ksmtuned-0.1.0.tar.gz