md5=02aa4ffb835cbc9bdf96fcb915901cb3
sha256=2dac596d5150174d0a2d9170db698c1d72584a8ab3b5eedf907086f53f76cc87
-[http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.15.tar.gz]
+[http://www.thekelleys.org.uk/dnsmasq/archive/dnsmasq-2.15.tar.gz]
md5=72f59fa070a1dc7f664603b20134c383
sha256=9aec45b395b6206e8eb85417f58186cdd0a307ed0f26f4b73af7031023a52225
-SECTION = "console/network"
DESCRIPTION = "Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server."
HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html"
+SECTION = "console/network"
LICENSE = "GPL"
-SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/dnsmasq-${PV}.tar.gz \
+#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(bb.data.getVar('PV',d,1).split('.')[1]) > 15]}dnsmasq-${PV}.tar.gz \
file://init \
file://dnsmasq.conf"
-S = "${WORKDIR}/dnsmasq-${PV}"
-
inherit update-rc.d
INITSCRIPT_NAME = "dnsmasq"