You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=tcp_wrappers
  9. PKG_VERSION:=7.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.porcupine.org/pub/security
  13. PKG_MD5SUM:=e6fa25f71226d090f34de3f6b122fb5a
  14. PKG_LICENSE:=BSD
  15. PKG_LICENE_FILES:=DISCLAIMER
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libwrap
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Security wrapper library for TCP services
  22. URL:=ftp://ftp.porcupine.org/pub/security/index.html
  23. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  24. endef
  25. TARGET_CFLAGS += $(FPIC)
  26. ifeq ($(CONFIG_USE_MUSL),)
  27. TARGET_EXTRA_LIBS:=LIBS=-lnsl
  28. endif
  29. define Build/Compile
  30. $(MAKE) -C $(PKG_BUILD_DIR) \
  31. $(TARGET_CONFIGURE_OPTS) \
  32. OPT_CFLAGS="$(TARGET_CFLAGS)" \
  33. $(TARGET_EXTRA_LIBS) \
  34. NETGROUP= \
  35. VSYSLOG= \
  36. BUGS= \
  37. EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 \
  38. -Dss_family=__ss_family -Dss_len=__ss_len" \
  39. FACILITY=LOG_DAEMON \
  40. SEVERITY=LOG_INFO \
  41. REAL_DAEMON_DIR=/usr/sbin \
  42. STYLE="-DPROCESS_OPTIONS" \
  43. tidy all
  44. endef
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include
  47. $(CP) $(PKG_BUILD_DIR)/tcpd.h $(1)/usr/include/
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_BUILD_DIR)/libwrap.a $(1)/usr/lib/
  50. $(CP) $(PKG_BUILD_DIR)/shared/libwrap.so* $(1)/usr/lib/
  51. endef
  52. define Package/libwrap/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_BUILD_DIR)/shared/libwrap.so.* $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libwrap))