increase dvbapp PR.
[vuplus_openembedded] / 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 #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 \
8            file://init \
9            file://dnsmasq.conf"
10
11 inherit update-rc.d
12
13 INITSCRIPT_NAME = "dnsmasq"
14 INITSCRIPT_PARAMS = "defaults"
15
16 do_install () {
17         oe_runmake "PREFIX=${D}${prefix}" \
18                    "BINDIR=${D}${bindir}" \
19                    "MANDIR=${D}${mandir}" \
20                    install
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
24 }
25
26 CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"