bdeff406732f9f3e2e99ada2ea5f7cb834ffe92b
[vuplus_openembedded] / dnsmasq / dnsmasq_2.15.oe
1 SECTION = "console/network"
2 DESCRIPTION = "Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server."
3 HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html"
4 LICENSE = "GPL"
5 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
6 PR = "r1"
7
8 SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/dnsmasq-${PV}.tar.gz \
9         file://init"
10 S = "${WORKDIR}/dnsmasq-${PV}"
11
12 inherit update-rc.d
13
14 INITSCRIPT_NAME = "dnsmasq"
15 INITSCRIPT_PARAMS = "defaults"
16
17 do_install () {
18         oe_runmake "PREFIX=${D}/${prefix}" \
19                    "BINDIR=${D}/${bindir}" \
20                    "MANDIR=${D}/${mandir}" \
21                    install
22         install -d ${D}/${sysconfdir}/ ${D}/${sysconfdir}/init.d
23         install -m 0755 ${S}/dnsmasq.conf.example ${D}/${sysconfdir}/dnsmasq.conf
24         install -m 755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/dnsmasq
25 }
26
27 CONFFILES_${PN}_nylon = "${sysconfdir}/dnsmasq.conf"