summaryrefslogtreecommitdiff
path: root/packages/dnsmasq/dnsmasq_2.15.bb
blob: 348646e3b087f10e6820bc21c17bc4002a4dd9d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SECTION = "console/network"
DESCRIPTION = "Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server."
HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html"
LICENSE = "GPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
PR = "r2"

SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/dnsmasq-${PV}.tar.gz \
	file://init \
	file://dnsmasq.conf"

S = "${WORKDIR}/dnsmasq-${PV}"

inherit update-rc.d

INITSCRIPT_NAME = "dnsmasq"
INITSCRIPT_PARAMS = "defaults"

do_install () {
	oe_runmake "PREFIX=${D}${prefix}" \
		   "BINDIR=${D}${bindir}" \
		   "MANDIR=${D}${mandir}" \
		   install
	install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d
	install -m 0755 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
	install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
}

CONFFILES_${PN}_nylon = "${sysconfdir}/dnsmasq.conf"