diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-04-16 10:54:00 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-19 02:45:27 +0200 |
commit | d48c95da5873a5674c264f788c0f1dda12025a25 (patch) | |
tree | 6592862bd5f083b747a00e6ebfe2fdf9a4082946 /meta-networking/recipes-support/dnsmasq/dnsmasq.inc | |
parent | f40bce43638234c18e09b6a9601c737c21f26993 (diff) | |
download | meta-openembedded-d48c95da5873a5674c264f788c0f1dda12025a25.tar.gz |
dnsmasq: move to meta-networking and tweak
* Make dbus a PACKAGECONFIG option and remove dnsmasq-dbus recipe
* Set LICENSE to correctly indicate choice of licenses
* Set SUMMARY instead of DESCRIPTION
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/dnsmasq/dnsmasq.inc')
-rw-r--r-- | meta-networking/recipes-support/dnsmasq/dnsmasq.inc | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc new file mode 100644 index 000000000..0f5b27325 --- /dev/null +++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "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(d.getVar('PV',1).split('.')[1]) > 15]}dnsmasq-${PV}.tar.gz;name=dnsmasq-${PV} \ | ||
11 | file://init \ | ||
12 | file://dnsmasq.conf \ | ||
13 | file://dnsmasq.service \ | ||
14 | " | ||
15 | |||
16 | inherit update-rc.d systemd | ||
17 | |||
18 | INITSCRIPT_NAME = "dnsmasq" | ||
19 | INITSCRIPT_PARAMS = "defaults" | ||
20 | |||
21 | PACKAGECONFIG ??= "" | ||
22 | PACKAGECONFIG[dbus] = "COPTS=-DHAVE_DBUS,,dbus" | ||
23 | EXTRA_OEMAKE = "${EXTRA_OECONF}" | ||
24 | |||
25 | do_install () { | ||
26 | oe_runmake "PREFIX=${D}${prefix}" \ | ||
27 | "BINDIR=${D}${bindir}" \ | ||
28 | "MANDIR=${D}${mandir}" \ | ||
29 | install | ||
30 | install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d | ||
31 | install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/ | ||
32 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq | ||
33 | |||
34 | install -d ${D}${systemd_unitdir}/system | ||
35 | install -m 0644 ${WORKDIR}/dnsmasq.service ${D}${systemd_unitdir}/system | ||
36 | |||
37 | if [ "${@base_contains('PACKAGECONFIG', 'dbus', 'dbus', '', d)}" != "" ]; then | ||
38 | install -d ${D}${sysconfdir}/dbus-1/system.d | ||
39 | install -m 644 dbus/dnsmasq.conf ${D}${sysconfdir}/dbus-1/system.d/ | ||
40 | fi | ||
41 | } | ||
42 | |||
43 | CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf" | ||
44 | |||
45 | RPROVIDES_${PN} += "${PN}-systemd" | ||
46 | RREPLACES_${PN} += "${PN}-systemd" | ||
47 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
48 | SYSTEMD_SERVICE_${PN} = "dnsmasq.service" | ||