portmap: enable tcp-wrappers support

this enables the hosts access control facility (i.e. /etc/hosts.allow
and /etc/hosts.deny)

changes:
  - enable tcp-wrappers by change make flags and cppflags
  - rename patch no-tcpd-support to avoid confusion
  - minor cleanups

Signed-off-by: Qing He <qing.he@intel.com>
This commit is contained in:
Qing He 2010-08-11 10:23:16 +08:00 committed by Richard Purdie
parent 6ffc4f2e04
commit 22ae6b193d
2 changed files with 6 additions and 7 deletions

View File

@ -1,17 +1,16 @@
require portmap.inc
PR = "r6"
DEPENDS += "tcp-wrappers"
PR = "r7"
SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/portmap-6.0.tgz \
file://destdir-no-strip.patch;apply=yes \
file://no-tcpd-support.patch;apply=yes \
file://destdir-no-strip.patch \
file://tcpd-config.patch \
file://portmap.init"
S = "${WORKDIR}/${PN}_${PV}/"
S = "${WORKDIR}/${BPN}_${PV}/"
EXTRA_OEMAKE_append = " NO_TCP_WRAPPER=1 "
CPPFLAGS += "-DFACILITY=LOG_DAEMON -DENABLE_DNS"
CPPFLAGS += "-DFACILITY=LOG_DAEMON -DENABLE_DNS -DHOSTS_ACCESS"
CFLAGS += "-Wall -Wstrict-prototypes -fPIC"
fakeroot do_install() {