netboot-launcher-efl: Bump version to 0.2.2 and fix download link.
[openembedded.git] / recipes / dnsmasq / dnsmasq.inc
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"
5
6 PR = "r1"
7
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"
12
13 inherit update-rc.d
14
15 INITSCRIPT_NAME = "dnsmasq"
16 INITSCRIPT_PARAMS = "defaults"
17
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
26 }
27
28 CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"