xinetd.mk 1.2 KB

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