Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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:=4
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.porcupine.org/pub/security
  13. PKG_HASH:=9543d7adedf78a6de0b221ccbbd1952e08b5138717f4ade814039bb489a4315d
  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) -Wall
  26. define Build/Compile
  27. $(MAKE) -C $(PKG_BUILD_DIR) \
  28. $(TARGET_CONFIGURE_OPTS) \
  29. OPT_CFLAGS="$(TARGET_CFLAGS)" \
  30. $(TARGET_EXTRA_LIBS) \
  31. NETGROUP= \
  32. VSYSLOG= \
  33. BUGS= \
  34. EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 \
  35. -Dss_family=__ss_family -Dss_len=__ss_len" \
  36. FACILITY=LOG_DAEMON \
  37. SEVERITY=LOG_INFO \
  38. REAL_DAEMON_DIR=/usr/sbin \
  39. STYLE="-DPROCESS_OPTIONS" \
  40. tidy all
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_BUILD_DIR)/tcpd.h $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_BUILD_DIR)/libwrap.a $(1)/usr/lib/
  47. $(CP) $(PKG_BUILD_DIR)/shared/libwrap.so* $(1)/usr/lib/
  48. endef
  49. define Package/libwrap/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_BUILD_DIR)/shared/libwrap.so.* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,libwrap))