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

Story: 2008952
Task: 42576

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I6f106b4f029d4b25452aaf58c0855423044d531e
This commit is contained in:
Jackie Huang 2021-06-16 15:13:27 +08:00
parent a48abb338d
commit 5821fe64a8
2 changed files with 5 additions and 7 deletions

View File

@ -1 +0,0 @@
SYSTEMD_AUTO_ENABLE_${PN} = "disable"

View File

@ -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"