forked from cockpit/cockpit
Accepting request 1059988 from systemsmanagement:cockpit
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1059988 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cockpit?expand=0&rev=26
This commit is contained in:
commit
216465a1a6
13
0002-selinux-temporary-remove-setroubleshoot-section.patch
Normal file
13
0002-selinux-temporary-remove-setroubleshoot-section.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: cockpit-251.3/pkg/selinux/setroubleshoot-view.jsx
|
||||||
|
===================================================================
|
||||||
|
--- cockpit-251.3.orig/pkg/selinux/setroubleshoot-view.jsx
|
||||||
|
+++ cockpit-251.3/pkg/selinux/setroubleshoot-view.jsx
|
||||||
|
@@ -458,7 +458,7 @@ export class SETroubleshootPage extends
|
||||||
|
<PageSection>
|
||||||
|
<Stack hasGutter>
|
||||||
|
<StackItem>{modifications}</StackItem>
|
||||||
|
- <StackItem>{troubleshooting}</StackItem>
|
||||||
|
+ <StackItem>{ !this.props.connected || troubleshooting}</StackItem>
|
||||||
|
</Stack>
|
||||||
|
</PageSection>
|
||||||
|
</Page>
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 28 13:34:07 UTC 2022 - Zdenek Kubala <zkubala@suse.cz>
|
||||||
|
|
||||||
|
- enable build of cockpit-selinux module
|
||||||
|
- changes to keep it sync with sle micro
|
||||||
|
(0002-selinux-temporary-remove-setroubleshoot-section.patch)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 20 08:20:16 UTC 2022 - Adam Majer <adam.majer@suse.de>
|
Tue Sep 20 08:20:16 UTC 2022 - Adam Majer <adam.majer@suse.de>
|
||||||
|
|
||||||
|
25
cockpit.spec
25
cockpit.spec
@ -68,6 +68,7 @@ Patch5: storage-btrfs.patch
|
|||||||
# SLE Micro specific patches
|
# SLE Micro specific patches
|
||||||
Patch100: remove-pwscore.patch
|
Patch100: remove-pwscore.patch
|
||||||
Patch101: hide-pcp.patch
|
Patch101: hide-pcp.patch
|
||||||
|
Patch102: 0002-selinux-temporary-remove-setroubleshoot-section.patch
|
||||||
|
|
||||||
# in RHEL 8 the source package is duplicated: cockpit (building basic packages like cockpit-{bridge,system})
|
# in RHEL 8 the source package is duplicated: cockpit (building basic packages like cockpit-{bridge,system})
|
||||||
# and cockpit-appstream (building optional packages like cockpit-{pcp})
|
# and cockpit-appstream (building optional packages like cockpit-{pcp})
|
||||||
@ -187,9 +188,11 @@ Requires: subscription-manager-cockpit
|
|||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
|
||||||
%if 0%{?sle_version}
|
# SLE Micro specific patches
|
||||||
|
%if 0%{?is_smo}
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
%patch101 -p1
|
%patch101 -p1
|
||||||
|
%patch102 -p1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
cp %SOURCE1 tools/cockpit.pam
|
cp %SOURCE1 tools/cockpit.pam
|
||||||
@ -217,6 +220,9 @@ autoreconf -fvi -I tools
|
|||||||
--disable-ssh \
|
--disable-ssh \
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
make -f /usr/share/selinux/devel/Makefile cockpit.pp
|
||||||
|
bzip2 -9 cockpit.pp
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -231,6 +237,14 @@ install -p -m 644 tools/cockpit.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/cockpit
|
|||||||
rm -f %{buildroot}/%{_libdir}/cockpit/*.so
|
rm -f %{buildroot}/%{_libdir}/cockpit/*.so
|
||||||
install -D -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/
|
install -D -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/
|
||||||
|
|
||||||
|
# selinux
|
||||||
|
install -D -m 644 %{name}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
||||||
|
install -D -m 644 -t %{buildroot}%{_mandir}/man8 selinux/%{name}_session_selinux.8cockpit
|
||||||
|
install -D -m 644 -t %{buildroot}%{_mandir}/man8 selinux/%{name}_ws_selinux.8cockpit
|
||||||
|
# create this directory in the build root so that %ghost sees the desired mode
|
||||||
|
install -d -m 700 %{buildroot}%{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{name}
|
||||||
|
|
||||||
|
# SUSE branding
|
||||||
mkdir -p %{buildroot}%{_datadir}/cockpit/branding/suse
|
mkdir -p %{buildroot}%{_datadir}/cockpit/branding/suse
|
||||||
pushd cockpit-suse-theme
|
pushd cockpit-suse-theme
|
||||||
cp src/css-overrides.css %{buildroot}%{_datadir}/cockpit/branding/suse
|
cp src/css-overrides.css %{buildroot}%{_datadir}/cockpit/branding/suse
|
||||||
@ -332,9 +346,6 @@ rm -f %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-storage
|
|||||||
sed -i "s|%{buildroot}||" *.list
|
sed -i "s|%{buildroot}||" *.list
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
# setroubleshoot not yet in
|
|
||||||
rm -r %{buildroot}%{_datadir}/cockpit/selinux
|
|
||||||
rm %{buildroot}/%{_prefix}/share/metainfo/org.cockpit-project.cockpit-selinux.metainfo.xml
|
|
||||||
# remove brandings with stale symlinks. Means they don't match
|
# remove brandings with stale symlinks. Means they don't match
|
||||||
# the distro.
|
# the distro.
|
||||||
pushd %{buildroot}/%{_datadir}/cockpit/branding
|
pushd %{buildroot}/%{_datadir}/cockpit/branding
|
||||||
@ -653,13 +664,17 @@ The Cockpit component for managing networking. This package uses NetworkManager
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?rhel} == 0 && !0%{?suse_version}
|
%if 0%{?rhel} == 0 && ( 0%{?suse_version} >= 1500 || 0%{?is_smo} )
|
||||||
|
|
||||||
%package selinux
|
%package selinux
|
||||||
Summary: Cockpit SELinux package
|
Summary: Cockpit SELinux package
|
||||||
Requires: cockpit-bridge >= %{required_base}
|
Requires: cockpit-bridge >= %{required_base}
|
||||||
Requires: cockpit-shell >= %{required_base}
|
Requires: cockpit-shell >= %{required_base}
|
||||||
|
Requires: policycoreutils-python-utils >= 3.1
|
||||||
|
# setroubleshoot not yet in SLE Micro
|
||||||
|
%if !0%{?is_smo}
|
||||||
Requires: setroubleshoot-server >= 3.3.3
|
Requires: setroubleshoot-server >= 3.3.3
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description selinux
|
%description selinux
|
||||||
|
Loading…
Reference in New Issue
Block a user