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.

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