diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-05-10 14:41:05 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-10 15:23:22 +0200 |
commit | ddc40247cb772c59b98b95111dc3ad09d7c38375 (patch) | |
tree | 3d4a66bd9e0cf49b590ad7c105e5a81f0a8279e3 /meta-oe/recipes-connectivity/dnsmasq/dnsmasq.inc | |
parent | f2e554a9ecfe023716be914c18449639e6b3a071 (diff) | |
download | meta-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.inc | 29 |
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 @@ | |||
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 | # GPLv3 was added in version 2.41 as license option | ||
5 | LICENSE = "GPLv2 GPLv3" | ||
6 | LIC_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 | ||
10 | 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} \ | ||
11 | file://init \ | ||
12 | file://dnsmasq.conf" | ||
13 | |||
14 | inherit update-rc.d | ||
15 | |||
16 | INITSCRIPT_NAME = "dnsmasq" | ||
17 | INITSCRIPT_PARAMS = "defaults" | ||
18 | |||
19 | do_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 | |||
29 | CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf" | ||