1################################################################################ 2# 3# xinetd 4# 5################################################################################ 6 7XINETD_VERSION = 2.3.15 8XINETD_SITE = \ 9 $(call github,xinetd-org,xinetd,xinetd-$(subst .,-,$(XINETD_VERSION))) 10XINETD_LICENSE = xinetd license 11XINETD_LICENSE_FILES = COPYRIGHT 12XINETD_CPE_ID_VENDOR = xinetd 13 14# 0005-CVE-2013-4342-xinetd-ignores-user-and-group-directiv.patch 15XINETD_IGNORE_CVES += CVE-2013-4342 16 17XINETD_CFLAGS = $(TARGET_CFLAGS) 18 19# Three cases here: 20# 1. We have libtirpc, use it by passing special flags 21# 2. We have native RPC support, use it, no need to pass special 22# flags (so this case 2 is implicit and not visible below) 23# 3. We don't have RPC support, pass -DNO_RPC to disable it 24ifeq ($(BR2_PACKAGE_LIBTIRPC),y) 25XINETD_DEPENDENCIES += libtirpc host-pkgconf 26XINETD_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" 27XINETD_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`" 28else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),) 29XINETD_CFLAGS += -DNO_RPC 30endif 31 32XINETD_CONF_ENV += \ 33 CFLAGS="$(XINETD_CFLAGS)" \ 34 LIBS="$(XINETD_LIBS)" 35 36XINETD_MAKE_OPTS = AR="$(TARGET_AR)" 37 38$(eval $(autotools-package)) 39