]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/dnsmasq/dnsmasq.inc
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / dnsmasq / dnsmasq.inc
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
7 SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/dnsmasq-${PV}.tar.gz \
8            file://init \
9            file://dnsmasq.conf"
10
11 S = "${WORKDIR}/dnsmasq-${PV}"
12
13 inherit update-rc.d
14
15 INITSCRIPT_NAME = "dnsmasq"
16 INITSCRIPT_PARAMS = "defaults"
17
18 do_install () {
19         oe_runmake "PREFIX=${D}${prefix}" \
20                    "BINDIR=${D}${bindir}" \
21                    "MANDIR=${D}${mandir}" \
22                    install
23         install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d
24         install -m 0755 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
25         install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
26 }
27
28 CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"