shadow: update for stx 5.0
* inherit stx-metadata to help install updated files from stx 'config-files' repo * remove do_copy_config_files since it's not needed after using stx-metadata Story: 2008952 Task: 42576 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: I05484fd8736d4c6399bef122d1ff5934d924ba57
This commit is contained in:
parent
64e622281f
commit
276533913f
@ -1,36 +1,23 @@
|
||||
SRCREV_FORMAT = "opendev"
|
||||
SRCREV_opendev = "d778e862571957ece3c404c0c37d325769772fde"
|
||||
SUBPATH0 = "shadow-utils-config"
|
||||
DSTSUFX0 = "stx-configfiles"
|
||||
SUBPATH1 = "util-linux-config"
|
||||
DSTSUFX1 = "stx-util-linux"
|
||||
inherit stx-metadata
|
||||
|
||||
STX_REPO = "config-files"
|
||||
STX_SUBPATH0 = "shadow-utils-config"
|
||||
STX_SUBPATH1 = "util-linux-config"
|
||||
|
||||
LICENSE_append = "& Apache-2.0"
|
||||
LIC_FILES_CHKSUM += "\
|
||||
file://stx-configfiles-LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
|
||||
file://stx-util-linux-LICENSE;beginline=1;endline=10;md5=5801a9b9ee2a1468c289f27bd8ee8af3 \
|
||||
file://${STX_METADATA_PATH}/${STX_SUBPATH0}/files/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
|
||||
file://${STX_METADATA_PATH}/${STX_SUBPATH1}/centos/util-linux-config.spec;beginline=1;endline=10;md5=5801a9b9ee2a1468c289f27bd8ee8af3 \
|
||||
"
|
||||
SRC_URI += " \
|
||||
git://opendev.org/starlingx/config-files.git;protocol=https;destsuffix=${DSTSUFX0};branch="r/stx.3.0";subpath=${SUBPATH0};name=opendev \
|
||||
git://opendev.org/starlingx/config-files.git;protocol=https;destsuffix=${DSTSUFX1};branch="r/stx.3.0";subpath=${SUBPATH1};name=opendev \
|
||||
"
|
||||
do_unpack_append() {
|
||||
bb.build.exec_func('do_copy_config_files', d)
|
||||
}
|
||||
|
||||
do_copy_config_files () {
|
||||
cp -pf ${WORKDIR}/stx-configfiles/files/LICENSE ${S}/stx-configfiles-LICENSE
|
||||
cp -pf ${WORKDIR}/stx-util-linux/centos/util-linux-config.spec ${S}/stx-util-linux-LICENSE
|
||||
}
|
||||
|
||||
do_install_append_class-target () {
|
||||
|
||||
install -d ${D}/${sysconfdir}/pam.d
|
||||
install -m 644 ${WORKDIR}/stx-util-linux/files/stx.su ${D}/${sysconfdir}/pam.d/su
|
||||
install -m 644 ${WORKDIR}/stx-util-linux/files/stx.login ${D}/${sysconfdir}/pam.d/login
|
||||
install -m 644 ${STX_METADATA_PATH}/${STX_SUBPATH1}/files/stx.su ${D}/${sysconfdir}/pam.d/su
|
||||
install -m 644 ${STX_METADATA_PATH}/${STX_SUBPATH1}/files/stx.login ${D}/${sysconfdir}/pam.d/login
|
||||
|
||||
install -D -m644 ${WORKDIR}/${DSTSUFX0}/files/login.defs ${D}/${sysconfdir}/login.defs
|
||||
install -D -m644 ${WORKDIR}/${DSTSUFX0}/files/clear_shadow_locks.service \
|
||||
install -D -m644 ${STX_METADATA_PATH}/${STX_SUBPATH0}/files/login.defs ${D}/${sysconfdir}/login.defs
|
||||
install -D -m644 ${STX_METADATA_PATH}/${STX_SUBPATH0}/files/clear_shadow_locks.service \
|
||||
${D}/${systemd_system_unitdir}/clear_shadow_locks.service
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user