remove paired patches in openssh

"spec-remove-TC-config-files.patch" revert "spec-includes-TiS-config-files.patch"
So we could remove them together.

Story: 2004135
Task: 27604

Change-Id: I1609dd908731b4975667e5de310cd2d3c303da7f
Signed-off-by: slin14 <shuicheng.lin@intel.com>
This commit is contained in:
slin14 2018-10-23 02:57:38 +08:00
parent 65ef33d43f
commit 898bc83a8e
5 changed files with 3 additions and 84 deletions

View File

@ -20,7 +20,7 @@ index d10e73e..be83a63 100644
URL: http://www.openssh.com/portable.html URL: http://www.openssh.com/portable.html
#URL1: http://pamsshagentauth.sourceforge.net #URL1: http://pamsshagentauth.sourceforge.net
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
@@ -350,7 +350,7 @@ Requires: openssh = %{version}-%{release} @@ -346,7 +346,7 @@ Requires: openssh = %{version}-%{release}
Summary: PAM module for authentication with ssh-agent Summary: PAM module for authentication with ssh-agent
Group: System Environment/Base Group: System Environment/Base
Version: %{pam_ssh_agent_ver} Version: %{pam_ssh_agent_ver}

View File

@ -1,8 +1,6 @@
spec-include-TiS-config-files.patch
sshd-pam-use-common-includes.patch sshd-pam-use-common-includes.patch
openssh-service-file.patch openssh-service-file.patch
openssh-spec-file-add-init.patch openssh-spec-file-add-init.patch
0001-Update-package-versioning-for-TIS-format.patch 0001-Update-package-versioning-for-TIS-format.patch
openssh-init-script-kill-old-instances-on-start.patch openssh-init-script-kill-old-instances-on-start.patch
spec-remove-TC-config-files.patch
spec-harden-server-and-client-config.patch spec-harden-server-and-client-config.patch

View File

@ -11,7 +11,7 @@ diff --git a/SPECS/openssh.spec b/SPECS/openssh.spec
index e137156..d10e73e 100644 index e137156..d10e73e 100644
--- a/SPECS/openssh.spec --- a/SPECS/openssh.spec
+++ b/SPECS/openssh.spec +++ b/SPECS/openssh.spec
@@ -728,9 +728,6 @@ getent passwd sshd >/dev/null || \ @@ -719,9 +719,6 @@ getent passwd sshd >/dev/null || \
%preun server %preun server
%systemd_preun sshd.service sshd.socket %systemd_preun sshd.service sshd.socket
@ -21,7 +21,7 @@ index e137156..d10e73e 100644
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}
@@ -793,8 +790,6 @@ getent passwd sshd >/dev/null || \ @@ -784,8 +781,6 @@ getent passwd sshd >/dev/null || \
%attr(0644,root,root) %{_unitdir}/sshd.socket %attr(0644,root,root) %{_unitdir}/sshd.socket
%attr(0644,root,root) %{_unitdir}/sshd-keygen.service %attr(0644,root,root) %{_unitdir}/sshd-keygen.service

View File

@ -1,39 +0,0 @@
From 2056c72dc2aa852397c59b864ed3011c71998d36 Mon Sep 17 00:00:00 2001
From: Scott Little <scott.little@windriver.com>
Date: Mon, 2 Oct 2017 15:32:15 -0400
Subject: [1/6] WRS: spec-include-TiS-config-files.patch
---
SPECS/openssh.spec | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/SPECS/openssh.spec b/SPECS/openssh.spec
index 5c030bc..e137156 100644
--- a/SPECS/openssh.spec
+++ b/SPECS/openssh.spec
@@ -88,6 +88,10 @@ Source11: sshd.service
Source12: sshd-keygen.service
Source13: sshd-keygen
+# WRS
+Source14: sshd_config
+Source15: ssh_config
+
# Internal debug
Patch0: openssh-5.9p1-wIm.patch
@@ -701,6 +705,11 @@ pushd pam_ssh_agent_auth-%{pam_ssh_agent_ver}
make install DESTDIR=$RPM_BUILD_ROOT
popd
%endif
+
+# WRS: Overwrite with our config
+install -m 0640 %{SOURCE14} $RPM_BUILD_ROOT/etc/ssh/sshd_config
+install -m 0644 %{SOURCE15} $RPM_BUILD_ROOT/etc/ssh/ssh_config
+
%clean
rm -rf $RPM_BUILD_ROOT
--
2.7.4

View File

@ -1,40 +0,0 @@
From a67b7364d9d4d8891f593d35b6685483ab6d8225 Mon Sep 17 00:00:00 2001
From: Andy Ning <andy.ning@windriver.com>
Date: Tue, 20 Mar 2018 10:14:56 -0400
Subject: [5/6] CGTS-9265: remove TC specific config files
The hardcoded sshd_config and ssh_config files are replaced by
patches to openssh.
---
SPECS/openssh.spec | 8 --------
1 file changed, 8 deletions(-)
diff --git a/SPECS/openssh.spec b/SPECS/openssh.spec
index 39bbcac..442261e 100644
--- a/SPECS/openssh.spec
+++ b/SPECS/openssh.spec
@@ -88,10 +88,6 @@ Source11: sshd.service
Source12: sshd-keygen.service
Source13: sshd-keygen
-# WRS
-Source14: sshd_config
-Source15: ssh_config
-
# Internal debug
Patch0: openssh-5.9p1-wIm.patch
@@ -706,10 +702,6 @@ make install DESTDIR=$RPM_BUILD_ROOT
popd
%endif
-# WRS: Overwrite with our config
-install -m 0640 %{SOURCE14} $RPM_BUILD_ROOT/etc/ssh/sshd_config
-install -m 0644 %{SOURCE15} $RPM_BUILD_ROOT/etc/ssh/ssh_config
-
%clean
rm -rf $RPM_BUILD_ROOT
--
2.7.4