From 67d4acaae07bfc13a86c482f1737337611f3d36d Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Wed, 16 Jun 2021 15:13:27 +0800 Subject: [PATCH] dnsmasq: update for stx 5.0 * inherit stx-metadata to help install updated files from stx 'config-files' repo * combine the bbappend into bb file Issue-ID: INF-215 Signed-off-by: Jackie Huang Change-Id: Ia58aa3aea24daea3c3ede2d2a650884ed0494a6a --- .../meta-stx-integ/recipes-support/dnsmasq/dnsmasq_%.bbappend | 1 - .../meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_%.bbappend diff --git a/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_%.bbappend b/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_%.bbappend deleted file mode 100644 index 02c6fb4..0000000 --- a/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_%.bbappend +++ /dev/null @@ -1 +0,0 @@ -SYSTEMD_AUTO_ENABLE_${PN} = "disable" diff --git a/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb b/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb index 5f6ec18..02a3ee1 100644 --- a/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb +++ b/meta-starlingx/meta-stx-integ/recipes-support/dnsmasq/dnsmasq_2.76.bb @@ -12,11 +12,10 @@ machines. \ HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq" SECTION = "net" +inherit stx-metadata -SRCREV_FORMAT = "opendev" -SRCREV_opendev = "d778e862571957ece3c404c0c37d325769772fde" -SUBPATH0 = "dnsmasq-config" -DSTSUFX0 = "stx-configfiles" +STX_REPO = "config-files" +STX_SUBPATH = "dnsmasq-config" # GPLv3 was added in version 2.41 as license option LICENSE = "GPLv2 | GPLv3" @@ -26,7 +25,6 @@ LIC_FILES_CHKSUM = "\ " SRC_URI = " \ - git://opendev.org/starlingx/config-files.git;protocol=https;destsuffix=${DSTSUFX0};branch="r/stx.3.0";subpath=${SUBPATH0};name=opendev \ http://www.thekelleys.org.uk/${BPN}/${BP}.tar.gz \ file://init \ file://dnsmasq-resolvconf.service \ @@ -132,7 +130,7 @@ EOF install -m 0644 ${WORKDIR}/99_dnsmasq ${D}${sysconfdir}/default/volatiles install -m 0755 ${WORKDIR}/dnsmasq-resolvconf-helper ${D}${bindir} fi - install -m 755 ${WORKDIR}/${DSTSUFX0}/files/init ${D}/${sysconfdir}/init.d/dnsmasq + install -m 755 ${STX_METADATA_PATH}/files/init ${D}/${sysconfdir}/init.d/dnsmasq } DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit" @@ -143,3 +141,4 @@ RPROVIDES_${PN} += "${PN}-systemd" RREPLACES_${PN} += "${PN}-systemd" RCONFLICTS_${PN} += "${PN}-systemd" SYSTEMD_SERVICE_${PN} = "dnsmasq.service" +SYSTEMD_AUTO_ENABLE_${PN} = "disable" -- 2.16.6