diff --git a/SOURCES/9001-Update-Makefile.am.patch b/SOURCES/9001-Update-Makefile.am.patch new file mode 100644 index 0000000..6f314d5 --- /dev/null +++ b/SOURCES/9001-Update-Makefile.am.patch @@ -0,0 +1,24 @@ +From bdb1a97c4be250f54494076425e555a4509a43ad Mon Sep 17 00:00:00 2001 +From: Alain Reguera Delgado +Date: Fri, 15 Nov 2019 21:05:38 -0300 +Subject: [PATCH 1/2] Update Makefile.am + +--- + src/branding/centos/Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/branding/centos/Makefile.am b/src/branding/centos/Makefile.am +index 4b60735..0d32e10 100644 +--- a/src/branding/centos/Makefile.am ++++ b/src/branding/centos/Makefile.am +@@ -1,6 +1,7 @@ + centosbrandingdir = $(datadir)/cockpit/branding/centos + + centosbranding_DATA = \ ++ src/branding/centos/bg-plain.png \ + src/branding/centos/branding.css \ + $(NULL) + +-- +2.23.0 + diff --git a/SOURCES/9002-Update-background-image-and-login-pf-container.patch b/SOURCES/9002-Update-background-image-and-login-pf-container.patch new file mode 100644 index 0000000..f2a9524 --- /dev/null +++ b/SOURCES/9002-Update-background-image-and-login-pf-container.patch @@ -0,0 +1,31 @@ +From a4d14b54a820fe77de3ae0df02d40d45f710e11b Mon Sep 17 00:00:00 2001 +From: Alain Reguera Delgado +Date: Fri, 15 Nov 2019 21:08:19 -0300 +Subject: [PATCH 2/2] Update background image and login pf container + +--- + src/branding/centos/branding.css | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/src/branding/centos/branding.css b/src/branding/centos/branding.css +index 070aa59..4fb5bc8 100644 +--- a/src/branding/centos/branding.css ++++ b/src/branding/centos/branding.css +@@ -1,9 +1,13 @@ + body.login-pf { +- background: url("bg-plain.jpg") no-repeat 50% 0; ++ background: url("bg-plain.png") no-repeat 100% 0; + background-size: auto; + background-color: #101010; + } + ++body.login-pf .container { ++ background-color: rgba(255,255,255,0); ++} ++ + #badge { + width: 225px; + height: 80px; +-- +2.23.0 + diff --git a/SOURCES/bg-plain.png b/SOURCES/bg-plain.png new file mode 100644 index 0000000..34ad56e Binary files /dev/null and b/SOURCES/bg-plain.png differ diff --git a/SPECS/cockpit.spec b/SPECS/cockpit.spec index 1b7703c..d24dee6 100644 --- a/SPECS/cockpit.spec +++ b/SPECS/cockpit.spec @@ -93,6 +93,10 @@ Source0: cockpit-%{version}.tar.gz Source0: https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.xz %endif +Source9001: bg-plain.png +Patch9001: 9001-Update-Makefile.am.patch +Patch9002: 9002-Update-background-image-and-login-pf-container.patch + BuildRequires: gcc BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(json-glib-1.0) @@ -157,6 +161,9 @@ Suggests: cockpit-selinux %prep %setup -q -n cockpit-%{version} +%patch9001 -p1 +%patch9002 -p1 +cp %{SOURCE9001} src/branding/centos/ %build exec 2>&1 @@ -826,6 +833,9 @@ via PackageKit. # The changelog is automatically generated and merged %changelog +* Wed Nov 13 2019 Alain Reguera Delgado - 196.3-1 +- Update login screen to use CentOS background + * Fri Sep 13 2019 Martin Pitt - 196.3-1 - systemd: Warn if not connected to Insights (rhbz#1745964)