java-native.bbclass: remove do_stage function, because of NATIVE_INSTALL_WORKS =...
[openembedded.git] / recipes / dnsmasq / dnsmasq.inc
blob9f6e3e955b4386f63e1154976749806464095e58
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"
4 LICENSE = "GPL"
6 PR = "r1"
8 #at least versions 2.15 and prior are moved to the archive folder on the server
9 SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(bb.data.getVar('PV',d,1).split('.')[1]) > 15]}dnsmasq-${PV}.tar.gz;name=dnsmasq-${PV} \
10            file://init \
11            file://dnsmasq.conf"
13 inherit update-rc.d
15 INITSCRIPT_NAME = "dnsmasq"
16 INITSCRIPT_PARAMS = "defaults"
18 do_install () {
19         oe_runmake "PREFIX=${D}${prefix}" \
20                    "BINDIR=${D}${bindir}" \
21                    "MANDIR=${D}${mandir}" \
22                    install
23         install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d
24         install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
25         install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
28 CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"