1 DESCRIPTION = "Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server."
2 HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html"
3 SECTION = "console/network"
6 #at least versions 2.15 and prior are moved to the archive folder on the server
7 SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(bb.data.getVar('PV',d,1).split('.')[1]) > 15]}dnsmasq-${PV}.tar.gz \
13 INITSCRIPT_NAME = "dnsmasq"
14 INITSCRIPT_PARAMS = "defaults"
17 oe_runmake "PREFIX=${D}${prefix}" \
18 "BINDIR=${D}${bindir}" \
19 "MANDIR=${D}${mandir}" \
21 install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d
22 install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
23 install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
26 CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"