summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/dnsmasq/dnsmasq.inc
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-05-10 14:41:05 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-05-10 15:23:22 +0200
commitddc40247cb772c59b98b95111dc3ad09d7c38375 (patch)
tree3d4a66bd9e0cf49b590ad7c105e5a81f0a8279e3 /meta-oe/recipes-connectivity/dnsmasq/dnsmasq.inc
parentf2e554a9ecfe023716be914c18449639e6b3a071 (diff)
downloadmeta-openembedded-ddc40247cb772c59b98b95111dc3ad09d7c38375.tar.gz
dnsmasq(-dbus): import from oe.dev, needed for connman now
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-connectivity/dnsmasq/dnsmasq.inc')
-rw-r--r--meta-oe/recipes-connectivity/dnsmasq/dnsmasq.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/dnsmasq/dnsmasq.inc b/meta-oe/recipes-connectivity/dnsmasq/dnsmasq.inc
new file mode 100644
index 000000000..e994852b1
--- /dev/null
+++ b/meta-oe/recipes-connectivity/dnsmasq/dnsmasq.inc
@@ -0,0 +1,29 @@
1DESCRIPTION = "Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server."
2HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html"
3SECTION = "console/network"
4# GPLv3 was added in version 2.41 as license option
5LICENSE = "GPLv2 GPLv3"
6LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
7 file://COPYING-v3;md5=d32239bcb673463ab874e80d47fae504"
8
9#at least versions 2.15 and prior are moved to the archive folder on the server
10SRC_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} \
11 file://init \
12 file://dnsmasq.conf"
13
14inherit update-rc.d
15
16INITSCRIPT_NAME = "dnsmasq"
17INITSCRIPT_PARAMS = "defaults"
18
19do_install () {
20 oe_runmake "PREFIX=${D}${prefix}" \
21 "BINDIR=${D}${bindir}" \
22 "MANDIR=${D}${mandir}" \
23 install
24 install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d
25 install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
26 install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
27}
28
29CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"