Skip to content

Commit

Permalink
Add preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen-sz committed Oct 26, 2024
1 parent 04871fd commit 4cb4aa6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ultramarine/release/91-ultramarine-surface-default.preset
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Enable Ultramarine Surface images specific services in this file

# Enable Surface services
enable surface-dtx-daemon.service
enable surface-dtx-userd.service
26 changes: 26 additions & 0 deletions ultramarine/release/ultramarine-release.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
%bcond_without atomic_gnome
%bcond_without atomic_xfce
%bcond_without chromebook
%bcond_without surface


%if %{with flagship} || %{with plasma} || %{with gnome} || %{with xfce} || %{with atomic_flagship} || %{with atomic_plasma} || %{with atomic_gnome} || %{with atomic_xfce}
%global with_desktop 1
Expand Down Expand Up @@ -102,6 +104,8 @@ Source63: ultramarine-xfce-protected.conf

Source64: 88-ultramarine-chromebook-default.preset

Source65: 91-ultramarine-surface-default.preset

BuildRequires: systemd-rpm-macros

%description
Expand Down Expand Up @@ -513,6 +517,16 @@ Summary: Common configuration package for chromebook variants
Common configuration package for chromebook variants
%endif

####### Surface #######

%if %{with surface}
%package surface
Summary: Common configuration package for surface variants

%description surface
Common configuration package for surface variants
%endif

####### Desktop #######

%if %{with desktop}
Expand Down Expand Up @@ -849,6 +863,13 @@ install -Dm0644 %{SOURCE64} -t $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system-pres

%endif

%if %{with surface}

# Install systemd presets for surface
install -Dm0644 %{SOURCE65} -t $RPM_BUILD_ROOT%{_prefix}/lib/systemd/system-preset/

%endif

%if %{with gnome} || %{with atomic_gnome}

# Install systemd presets for gnome
Expand Down Expand Up @@ -1018,6 +1039,11 @@ install -Dm0644 %{SOURCE32} -t %{buildroot}%{_datadir}/polkit-1/rules.d/
%{_prefix}/lib/systemd/system-preset/88-ultramarine-chromebook-default.preset
%endif

%if %{with surface}
%files surface
%{_prefix}/lib/systemd/system-preset/91-ultramarine-surface-default.preset
%endif

%if %{with atomic_desktop}
%files atomic-desktop
%attr(0644,root,root) %{_prefix}/share/polkit-1/rules.d/org.projectatomic.rpmostree1.rules
Expand Down

0 comments on commit 4cb4aa6

Please sign in to comment.