X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-core%2Fstx-config-files%2Fconfig-files_1.0.0.bb;h=cde5170566a4f775340434748134c820536abce6;hb=84ebd2facc50010f884d033b1b67eb1c68fd0acc;hp=4c8a4d06f9c92004b8738906daf7d1122d45d8fa;hpb=32b175cc62d309d34b145450f3ed0ce8910aba3f;p=pti%2Frtp.git diff --git a/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb b/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb index 4c8a4d0..cde5170 100644 --- a/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb +++ b/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb @@ -49,7 +49,6 @@ SRC_URI = " \ file://util-linux-pam-postlogin.patch \ file://syslog-ng-config-parse-err.patch \ file://syslog-ng-config-systemd-service.patch \ - file://syslog-ng-conf-fix-the-source.patch \ file://syslog-ng-conf-replace-match-with-message.patch \ file://lighttpd-init-script-chroot.patch \ " @@ -69,7 +68,6 @@ do_install () { tar -c $f -f - | tar -C ${D}/${datadir}/starlingx/config-files -xf -; done find ${D}/${datadir}/starlingx/config-files -name centos -exec rm -rf {} + - rm -rf ${D}/${datadir}/starlingx/config-files/centos-release-config chown -R root:root ${D}/${datadir}/starlingx/config-files/ # For io-scheduler-config @@ -80,6 +78,7 @@ do_install () { PACKAGES ?= "" PACKAGES += "audit-config" +PACKAGES += "centos-release-config" PACKAGES += "dhclient-config" PACKAGES += "dnsmasq-config" PACKAGES += "docker-config" @@ -111,6 +110,7 @@ PACKAGES += "util-linux-config" FILES_${PN} = "" FILES_audit-config = "${datadir}/starlingx/config-files/audit-config/" +FILES_centos-release-config = "${datadir}/starlingx/config-files/centos-release-config/" FILES_dhclient-config = "${datadir}/starlingx/config-files/dhcp-config/" FILES_dnsmasq-config = "${datadir}/starlingx/config-files/dnsmasq-config/" FILES_docker-config = "${datadir}/starlingx/config-files/docker-config/" @@ -146,7 +146,7 @@ RDEPENDS_audit-config += " \ audit-python \ " RDEPENDS_dhclient-config += "dhcp-client" -RDEPENDS_dnsmasq-config += "" +RDEPENDS_dnsmasq-config += "dnsmasq" RDEPENDS_docker-config += "docker-ce logrotate " RDEPENDS_initscripts-config += "initscripts" RDEPENDS_filesystem-scripts += "" @@ -250,6 +250,13 @@ pkg_postinst_ontarget_audit-config() { chmod 640 ${sysconfdir}/audisp/plugins.d/syslog.conf } +pkg_postinst_centos-release-config() { + sed 's/@PLATFORM_RELEASE@/${STX_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue >> $D${sysconfdir}/issue + sed 's/@PLATFORM_RELEASE@/${STX_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue.net >> $D${sysconfdir}/issue.net + chmod 644 $D${sysconfdir}/issue + chmod 644 $D${sysconfdir}/issue.net +} + pkg_postinst_ontarget_dhclient-config() { SRCPATH=${datadir}/starlingx/config-files/dhcp-config/files install -m 0755 -p ${SRCPATH}/dhclient-enter-hooks ${sysconfdir}/dhcp/dhclient-enter-hooks