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.7 KiB

  1. #
  2. # Copyright (C) 2006-2015 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:=xinetd
  9. PKG_VERSION:=2.3.15
  10. PKG_RELEASE:=13
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/xinetd-org/xinetd/archive
  13. PKG_HASH:=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
  14. PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
  15. PKG_LICENSE:=xinetd
  16. PKG_LICENSE_FILES:=COPYRIGHT
  17. PKG_CPE_ID:=cpe:/a:xinetd:xinetd
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/xinetd
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=A powerful and secure super-server
  24. URL:=https://github.com/xinetd-org
  25. endef
  26. define Package/xinetd/description
  27. xinetd has access control mechanisms, extensive logging capabilities,
  28. the ability to make services available based on time, can place limits
  29. on the number of servers that can be started, and has deployable
  30. defence mechanisms to protect against port scanners, among other
  31. things.
  32. endef
  33. define Package/xinetd/conffiles
  34. /etc/config/xinetd
  35. /etc/xinetd.d
  36. endef
  37. TARGET_CFLAGS += -DNO_RPC
  38. TARGET_CPPFLAGS += -DHAVE_RLIM_T
  39. CONFIGURE_ARGS += \
  40. --without-libwrap \
  41. --with-loadavg
  42. CONFIGURE_VARS += \
  43. ac_cv_header_rpc_pmap_clnt_h=no \
  44. ac_cv_header_rpc_rpc_h=no \
  45. ac_cv_header_rpc_rpcent_h=no
  46. define Package/xinetd/install
  47. $(INSTALL_DIR) $(1)/usr/sbin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(1)/usr/sbin/
  49. $(INSTALL_DIR) $(1)/etc/config/
  50. $(INSTALL_DATA) ./files/xinetd.uci.conf.sample $(1)/etc/config/xinetd
  51. $(INSTALL_DIR) $(1)/etc/init.d
  52. $(INSTALL_BIN) ./files/xinetd.init $(1)/etc/init.d/xinetd
  53. $(INSTALL_DIR) $(1)/etc/xinetd.d
  54. endef
  55. $(eval $(call BuildPackage,xinetd))