mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-11 00:26:25 +02:00
A minimum dnsmasq version of 2.5.9 is required deal with IPv6 link local
addresses. So instead of just going to the minimum version, we can go
all the way to 2.6.3.
As part of this update, the following changes have been made in addition to
the pure version update:
- PR is dropped in favour of PRSERVER functionality
- dhcp_release is added to the default build, since it is used in the
cleanup phase for virtual machines.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
57 lines
1.9 KiB
PHP
57 lines
1.9 KiB
PHP
SUMMARY = "Lightweight, easy to configure DNS forwarder and DHCP server"
|
|
HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
|
SECTION = "console/network"
|
|
# GPLv3 was added in version 2.41 as license option
|
|
LICENSE = "GPLv2 | GPLv3"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
|
|
file://COPYING-v3;md5=d32239bcb673463ab874e80d47fae504"
|
|
|
|
#at least versions 2.15 and prior are moved to the archive folder on the server
|
|
SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getVar('PV',1).split('.')[1]) > 15]}dnsmasq-${PV}.tar.gz;name=dnsmasq-${PV} \
|
|
file://init \
|
|
file://dnsmasq.conf \
|
|
file://dnsmasq.service \
|
|
"
|
|
|
|
inherit update-rc.d systemd
|
|
|
|
INITSCRIPT_NAME = "dnsmasq"
|
|
INITSCRIPT_PARAMS = "defaults"
|
|
|
|
PACKAGECONFIG ??= ""
|
|
PACKAGECONFIG[dbus] = "COPTS=-DHAVE_DBUS,,dbus"
|
|
EXTRA_OEMAKE = "${EXTRA_OECONF}"
|
|
|
|
do_compile_append() {
|
|
# build dhcp_release
|
|
cd ${S}/contrib/wrt
|
|
oe_runmake
|
|
}
|
|
|
|
do_install () {
|
|
oe_runmake "PREFIX=${D}${prefix}" \
|
|
"BINDIR=${D}${bindir}" \
|
|
"MANDIR=${D}${mandir}" \
|
|
install
|
|
install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d
|
|
install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
|
|
install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system
|
|
|
|
install -m 0755 ${S}/contrib/wrt/dhcp_release ${D}${bindir}
|
|
|
|
if [ "${@base_contains('PACKAGECONFIG', 'dbus', 'dbus', '', d)}" != "" ]; then
|
|
install -d ${D}${sysconfdir}/dbus-1/system.d
|
|
install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/
|
|
fi
|
|
}
|
|
|
|
CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"
|
|
|
|
RPROVIDES_${PN} += "${PN}-systemd"
|
|
RREPLACES_${PN} += "${PN}-systemd"
|
|
RCONFLICTS_${PN} += "${PN}-systemd"
|
|
SYSTEMD_SERVICE_${PN} = "dnsmasq.service"
|