From 7f55d0031427abdc663a5f37b0eb63c34b37faf0 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Dec 20 2023 01:19:52 +0000 Subject: add preset file to enable pd-mapper Signed-off-by: Dennis Gilmore --- diff --git a/75-x13s.preset b/75-x13s.preset new file mode 100644 index 0000000..41539a1 --- /dev/null +++ b/75-x13s.preset @@ -0,0 +1,3 @@ +# Presets to enable services needed for the x13s to work well + +enable pd-mapper.service diff --git a/x13s.spec b/x13s.spec index e62d2c4..2bcef15 100644 --- a/x13s.spec +++ b/x13s.spec @@ -2,7 +2,7 @@ Name: x13s Version: 1.0 -Release: 0%{?dist} +Release: 1%{?dist} Summary: A place to drop Lenovo X13s machine configuration utilities, dependency and config scripts License: GPLv2+ URL: https://pagure.io/x13s.git @@ -10,6 +10,7 @@ ExclusiveArch: aarch64 Source1: override.conf Source2: 72-x13s-touchscreen.rules +Source3: 75-x13s.preset Requires: pd-mapper Requires: bluez @@ -29,9 +30,11 @@ cp %{SOURCE2} . || true %install mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/bluetooth.service.d/ +mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-preset/ mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/ install -T -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/systemd/system/bluetooth.service.d/override.conf install -T -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/udev/rules.d/72-x13s-touchscreen.rules +install -Dm0644 %{SOURCE3} -t %{buildroot}%{_prefix}/lib/systemd/system-preset/ # should we create /boot/efi/loader/loader.conf here? # instead we are ghosting the config file, and letting anaconda create it @@ -54,8 +57,12 @@ systemctl enable --now pd-mapper.service %files %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/systemd/system/bluetooth.service.d/override.conf %attr(0644,root,root) %{_sysconfdir}/udev/rules.d/72-x13s-touchscreen.rules +%{_prefix}/lib/systemd/system-preset/75-x13s.preset %changelog +* Tue Dec 19 2023 Dennis Gilmore - 1.0-1 +- Add preset file to enable pd-mapper + * Mon Dec 18 2023 Jeremy Linton - 1.0-0 - X13s sorta meta package for the x13s configuration.