M7350/oe-core/meta-msm/recipes/dnsmasq/dnsmasq.inc

34 lines
1.2 KiB
PHP
Raw Normal View History

2024-09-09 08:52:07 +00:00
DESCRIPTION = "Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server."
HOMEPAGE = "http://www.thekelleys.org.uk/dnsmasq/doc.html"
SECTION = "console/network"
LICENSE = "GPL"
LICENSE_${PN} = "GPL"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
PR = "r2"
2024-09-09 08:57:42 +00:00
DEPENDS += "system-core"
2024-09-09 08:52:07 +00:00
#at least versions 2.15 and prior are moved to the archive folder on the server
SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(bb.data.getVar('PV',d,1).split('.')[1]) > 15]}dnsmasq-${PV}.tar.gz;name=dnsmasq-${PV} \
file://init \
2024-09-09 08:57:42 +00:00
file://dnsmasq.conf \
file://dnsmasq_script.sh \
file://add_dhcp_log.patch"
2024-09-09 08:52:07 +00:00
do_install () {
oe_runmake "PREFIX=${D}${prefix}" \
"BINDIR=${D}${bindir}" \
"MANDIR=${D}${mandir}" \
install
install -d ${D}${sysconfdir}/ ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dnsmasq.d
install -m 644 ${WORKDIR}/dnsmasq.conf ${D}${sysconfdir}/
install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/dnsmasq
2024-09-09 08:57:42 +00:00
install -d ${D}${base_bindir}
install -m 0755 ${WORKDIR}/dnsmasq_script.sh ${D}${base_bindir}
2024-09-09 08:52:07 +00:00
}
CONFFILES_${PN} = "${sysconfdir}/dnsmasq.conf"