PKG_NAME = tcp_wrappers
PKG_VERS = 7.6
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)_$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = http://ftp.porcupine.org/pub/security
PKG_DIR = $(PKG_NAME)_$(PKG_VERS)

DEPENDS =

# Disable parallel make due to race condition: tcpd.o depends on cflags file
# which is generated by config-check target. In parallel builds, make can try
# to build tcpd.o before cflags exists.
DISABLE_PARALLEL_MAKE = 1

HOMEPAGE = http://www.linuxfromscratch.org/blfs/view/5.1/basicnet/tcpwrappers.html
COMMENT  = The tcpwrappers package provides daemon wrapper programs that report the name of the client requesting network services and the requested service. 
LICENSE  = BSD

COMPILE_ARGS += REAL_DAEMON_DIR=$(STAGING_INSTALL_PREFIX)
COMPILE_ARGS += linux

POST_EXTRACT_TARGET = tcp_wrappers_post_extract
CONFIGURE_TARGET = nop

include ../../mk/spksrc.cross-cc.mk

.PHONY: tcp_wrappers_post_extract
tcp_wrappers_post_extract:
	cp -f src/weak_symbols.c $(WORK_DIR)/$(PKG_DIR)/
