Merge bk://openembedded@openembedded.bkbits.net/packages
[vuplus_openembedded] / dnsmasq / dnsmasq_2.15.oe
1 SECTION = "console/network"
2 DESCRIPTION = "Dnsmasq is a lightweight, easy to configure \
3 DNS forwarder and DHCP server."
4 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
5 PR = "r1"
6
7 SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/dnsmasq-${PV}.tar.gz \
8         file://init"
9 S = "${WORKDIR}/dnsmasq-${PV}"
10
11 do_install () {
12         oe_runmake "PREFIX=${D}/${prefix}" \
13                    "BINDIR=${D}/${bindir}" \
14                    "MANDIR=${D}/${mandir}" \
15                    install
16         install -d ${D}/${sysconfdir}/ ${D}/${sysconfdir}/init.d
17         install -m 0755 ${S}/dnsmasq.conf.example ${D}/${sysconfdir}/dnsmasq.conf
18         install -m 755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/dnsmasq
19 }