portmap: obey 'tcp-wrappers' PACKAGECONFIG

(From OE-Core rev: a5d9fde36c5912a28b3a5a582e709902a27247ba)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christopher Larson 2013-05-30 19:26:28 -07:00 committed by Richard Purdie
parent d63a32b404
commit 25bf08a0e7
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,5 @@
require portmap.inc
DEPENDS += "tcp-wrappers"
PR = "r7"
SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/portmap-6.0.tgz \
@ -13,8 +12,12 @@ SRC_URI[sha256sum] = "02c820d39f3e6e729d1bea3287a2d8a6c684f1006fb9612f97dcad4a28
S = "${WORKDIR}/${BPN}_${PV}/"
PACKAGECONFIG ??= "tcp-wrappers"
PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers"
CPPFLAGS += "-DFACILITY=LOG_DAEMON -DENABLE_DNS -DHOSTS_ACCESS"
CFLAGS += "-Wall -Wstrict-prototypes -fPIC"
EXTRA_OEMAKE += "'NO_TCP_WRAPPER=${@base_contains('PACKAGECONFIG', 'tcp-wrappers', '', '1', d)}'"
fakeroot do_install() {
install -d ${D}${mandir}/man8/ ${D}${base_sbindir} ${D}${sysconfdir}/init.d