From: Jackie Huang Date: Wed, 12 May 2021 08:26:46 +0000 (+0800) Subject: openssh: update for stx 5.0 X-Git-Tag: f-release~71 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=cf08ec9f159ec0aff0f6ad5bf75f7ce6aed192eb;p=pti%2Frtp.git openssh: update for stx 5.0 * inherit stx-metadata to help install updated files from stx 'config-files' repo Issue-ID: INF-215 Signed-off-by: Jackie Huang Change-Id: If8c8192b55f6557f32fc4c68fc6cce8b14753ca4 --- diff --git a/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/openssh_7.%.bbappend b/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/openssh_7.%.bbappend index 9765db3..068deca 100644 --- a/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/openssh_7.%.bbappend +++ b/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/openssh_7.%.bbappend @@ -15,15 +15,16 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" -BRANCH = "r/stx.3.0" -SRCREV = "d778e862571957ece3c404c0c37d325769772fde" +inherit stx-metadata + +STX_REPO = "config-files" +STX_SUBPATH = "openssh-config" SRC_URI += "\ file://stx/sshd.init \ file://stx/sshd-keygen \ file://stx/sshd-keygen.service \ file://stx/sshd.sysconfig \ - git://opendev.org/starlingx/config-files.git;protocol=https;rev=${SRCREV};branch=${BRANCH};destsuffix=stx-configfiles;subpath=openssh-config \ file://openssh-config-rm-hmac-ripemd160.patch \ " @@ -32,13 +33,13 @@ do_unpack_append() { } do_copy_config_files () { - cp -f ${WORKDIR}/stx-configfiles/files/sshd_config ${S} + cp -f ${STX_METADATA_PATH}/files/sshd_config ${S} # remove the unsupported and deprecated options sed -i -e 's/^\(GSSAPIAuthentication.*\)/#\1/' \ -e 's/^\(GSSAPICleanupCredentials.*\)/#\1/' \ -e 's/^\(UsePrivilegeSeparation.*\)/#\1/' \ ${S}/sshd_config - cp -f ${WORKDIR}/stx-configfiles/files/ssh_config ${S} + cp -f ${STX_METADATA_PATH}/files/ssh_config ${S} } SYSTEMD_SERVICE_${PN}-sshd = "sshd.service" @@ -55,7 +56,7 @@ do_install_append () { install -m 644 ${WORKDIR}/stx/sshd.sysconfig ${D}/${sysconfdir}/sysconfig/sshd install -m 755 ${WORKDIR}/stx/sshd-keygen ${D}/${sbindir}/sshd-keygen - install -m644 ${WORKDIR}/stx-configfiles/files/sshd.service ${D}/${systemd_system_unitdir}/sshd.service + install -m644 ${STX_METADATA_PATH}/files/sshd.service ${D}/${systemd_system_unitdir}/sshd.service install -m644 ${WORKDIR}/stx/sshd-keygen.service ${D}/${systemd_system_unitdir}/sshd-keygen.service install -d ${D}/${sysconfdir}/tmpfiles.d