diff --git a/ultramarine/release/88-ultramarine-chromebook-default.preset b/ultramarine/release/88-ultramarine-chromebook-default.preset new file mode 100644 index 0000000..2468747 --- /dev/null +++ b/ultramarine/release/88-ultramarine-chromebook-default.preset @@ -0,0 +1,5 @@ +# Enable Ultramarine Chromebook Edition specific services in this file + +# Enable chromebook-specific keyboard mappings +enable cros-keyboard-map.service +enable keyd.service diff --git a/ultramarine/release/ultramarine-release.spec b/ultramarine/release/ultramarine-release.spec index dd0b3ba..e54c090 100644 --- a/ultramarine/release/ultramarine-release.spec +++ b/ultramarine/release/ultramarine-release.spec @@ -29,6 +29,7 @@ %bcond_without atomic_kde %bcond_without atomic_gnome %bcond_without atomic_xfce +%bcond_without chromebook %if %{with flagship} || %{with pantheon} || %{with kde} || %{with gnome} || %{with xfce} || %{with atomic_flagship} || %{with atomic_pantheon} || %{with atomic_kde} || %{with atomic_gnome} || %{with atomic_xfce} %global with_desktop 1 @@ -101,6 +102,8 @@ Source61: ultramarine-gnome-protected.conf Source62: ultramarine-kde-protected.conf Source63: ultramarine-xfce-protected.conf +Source64: 88-ultramarine-chromebook-default.preset + BuildRequires: systemd-rpm-macros %description @@ -578,6 +581,16 @@ Provides the necessary files for a Ultramarine Atomic XFCE installation. #### Accessory packages ###################################################################### +####### Chromebook ####### + +%if %{with chromebook} +%package chromebook +Summary: Common configuration package for chromebook variants + +%description chromebook +Common configuration package for chromebook variants +%endif + ####### Desktop ####### %if %{with desktop} @@ -928,6 +941,13 @@ install -Dm0644 %{SOURCE5} -t $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system-prese %endif +%if %{with chromebook} + +# Install systemd presets for chromebook +install -Dm0644 %{SOURCE64} -t $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system-preset/ + +%endif + %if %{with gnome} || %{with atomic_gnome} # Install systemd presets for gnome @@ -1107,6 +1127,11 @@ install -Dm0644 %{SOURCE32} -t %{buildroot}%{_datadir}/polkit-1/rules.d/ %{_prefix}/lib/systemd/system-preset/81-desktop.preset %endif +%if %{with chromebook} +%files chromebook +%{_prefix}/lib/systemd/system-preset/88-ultramarine-chromebook-default.preset +%endif + %if %{with atomic_desktop} %files atomic-desktop %attr(0644,root,root) %{_prefix}/share/polkit-1/rules.d/org.projectatomic.rpmostree1.rules