Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "A caching, forwarding DNS proxy server" |
| 2 | DESCRIPTION = "\ |
| 3 | dnrd is a proxying nameserver. It forwards DNS queries to the appropriate \ |
| 4 | nameserver, but can also act as the primary nameserver for a subnet behind \ |
| 5 | a firewall. It also has features such as caching DNS requests, support for \ |
| 6 | DNS servers, cache poisoning prevention, TCP support, etc.." |
| 7 | HOMEPAGE = "http://dnrd.sourceforge.net/" |
| 8 | SECTION = "net" |
| 9 | LICENSE = "GPLv2" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=0be67017f1c770313ad7b40e18d568f1" |
| 11 | |
| 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \ |
| 13 | file://dnrd.service \ |
| 14 | file://dnrd.conf.sample \ |
| 15 | file://dnrd.init" |
| 16 | SRC_URI[md5sum] = "41c9b070aae8ed403fc8c2aac7ab157c" |
| 17 | SRC_URI[sha256sum] = "aa46e7f8736b88c1d752cf606b3990041221ce91d014e955c6b02eb2167db015" |
| 18 | |
| 19 | PNBLACKLIST[dnrd] ?= "BROKEN: dnrd-2.20.3-r0 do_package: QA Issue: dnrd: Files/directories were installed but not shipped in any package:" |
| 20 | |
| 21 | SYSTEMD_SERVICE_${PN} = "dnrd.service" |
| 22 | SYSTEMD_AUTO_ENABLE = "disable" |
| 23 | |
| 24 | inherit autotools |
| 25 | inherit ${@base_contains('VIRTUAL-RUNTIME_init_manager','systemd','systemd','', d)} |
| 26 | |
| 27 | do_install() { |
| 28 | oe_runmake install DESTDIR=${D} INSTALL="install -p" |
| 29 | |
| 30 | sed -i -e 's:/etc/rc.d/init.d/functions:/etc/init.d/functions:g' \ |
| 31 | ${WORKDIR}/dnrd.init |
| 32 | install -d -m 0755 ${D}${sysconfdir}/init.d |
| 33 | install -d -m 0755 ${D}${sysconfdir}/dnrd |
| 34 | install -p -m 0644 ${WORKDIR}/dnrd.conf.sample ${D}${sysconfdir}/dnrd/dnrd.conf |
| 35 | install -p -m 0755 ${WORKDIR}/dnrd.init ${D}${sysconfdir}/init.d/dnrd |
| 36 | |
| 37 | if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 38 | install -d -m 0755 ${D}${systemd_unitdir}/system |
| 39 | install -m 644 ${WORKDIR}/dnrd.service ${D}${systemd_unitdir}/system |
| 40 | fi |
| 41 | } |