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.

85 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2009-2014 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:=liboping
  9. PKG_VERSION:=1.10.0
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  12. PKG_LICENSE:=LGPL-2.1-or-later
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  14. PKG_SOURCE_URL:=https://noping.cc/files
  15. PKG_HASH:=eb38aa93f93e8ab282d97e2582fbaea88b3f889a08cbc9dbf20059c3779d5cd8
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/liboping/Default
  21. URL:=https://noping.cc
  22. endef
  23. define Package/liboping
  24. $(call Package/liboping/Default)
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=C library to generate ICMP echo requests.
  28. endef
  29. define Package/oping
  30. $(call Package/liboping/Default)
  31. SECTION:=net
  32. CATEGORY:=Network
  33. TITLE:=Send ICMP echo request to network hosts
  34. DEPENDS+= +liboping
  35. endef
  36. define Package/noping
  37. $(call Package/liboping/Default)
  38. SECTION:=net
  39. CATEGORY:=Network
  40. TITLE:=Ncurses application to send ICMP echo request to network hosts
  41. DEPENDS+= +liboping +libncurses
  42. endef
  43. TARGET_CFLAGS += $(FPIC)
  44. CONFIGURE_ARGS += \
  45. --without-perl-bindings \
  46. --enable-shared \
  47. --enable-static
  48. define Build/InstallDev
  49. $(INSTALL_DIR) $(1)/usr/include
  50. $(CP) $(PKG_INSTALL_DIR)/usr/include/oping.h $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.{a,so*} $(1)/usr/lib/
  53. endef
  54. define Package/liboping/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.so.* $(1)/usr/lib/
  57. endef
  58. define Package/oping/install
  59. $(INSTALL_DIR) $(1)/usr/bin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oping $(1)/usr/bin/
  61. endef
  62. define Package/noping/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/noping $(1)/usr/bin/
  65. endef
  66. $(eval $(call BuildPackage,liboping))
  67. $(eval $(call BuildPackage,oping))
  68. $(eval $(call BuildPackage,noping))