Makefile 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. #
  2. # Copyright (C) 2006-2010 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:=iputils
  9. PKG_VERSION:=20101006
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-s$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://www.skbuff.net/iputils
  13. PKG_MD5SUM:=a36c25e9ec17e48be514dc0485e7376c
  14. PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
  15. PKG_LICENSE:=GPL-2.0+
  16. PKG_BUILD_DEPENDS:=sysfsutils
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-s$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/iputils/Default
  20. SECTION:=net
  21. CATEGORY:=Network
  22. URL:=http://www.skbuff.net/iputils
  23. endef
  24. define Package/iputils-arping
  25. $(call Package/iputils/Default)
  26. TITLE:=iputils - arping
  27. DEPENDS+= +libsysfs
  28. endef
  29. define Package/iputils-arping/description
  30. Program arping from iputils.
  31. Sends ARP REQUEST to a neighbour host.
  32. endef
  33. define Package/iputils-clockdiff
  34. $(call Package/iputils/Default)
  35. TITLE:=iputils - clockdiff
  36. endef
  37. define Package/iputils-clockdiff/description
  38. Program clockdiff from iputils.
  39. Measures clock difference between hosts.
  40. endef
  41. define Package/iputils-ping
  42. $(call Package/iputils/Default)
  43. TITLE:=iputils - ping
  44. endef
  45. define Package/iputils-ping/description
  46. Program ping from iputils.
  47. Sends ICMP ECHO_REQUEST to network hosts (IPv4).
  48. endef
  49. define Package/iputils-ping6
  50. $(call Package/iputils/Default)
  51. TITLE:=iputils - ping6
  52. DEPENDS+= @IPV6 +USE_GLIBC:libopenssl
  53. endef
  54. define Package/iputils-ping6/description
  55. Program ping6 from iputils.
  56. Sends ICMP ECHO_REQUEST to network hosts (IPv6).
  57. endef
  58. define Package/iputils-tftpd
  59. $(call Package/iputils/Default)
  60. TITLE:=iputils - tftpd
  61. endef
  62. define Package/iputils-tftpd/description
  63. Program tftpd from iputils
  64. Trivial File Transfer Protocol server.
  65. endef
  66. define Package/iputils-tracepath
  67. $(call Package/iputils/Default)
  68. TITLE:=iputils - tracepath
  69. endef
  70. define Package/iputils-tracepath/description
  71. Program tracepath from iputils.
  72. Traces path to a network host discovering MTU along this path (IPv4).
  73. endef
  74. define Package/iputils-tracepath6
  75. $(call Package/iputils/Default)
  76. TITLE:=iputils - tracepath6
  77. DEPENDS+= @IPV6
  78. endef
  79. define Package/iputils-tracepath6/description
  80. Program tracepath6 from iputils.
  81. Traces path to a network host discovering MTU along this path (IPv6).
  82. endef
  83. define Package/iputils-traceroute6
  84. $(call Package/iputils/Default)
  85. TITLE:=iputils - traceroute6
  86. DEPENDS+= @IPV6
  87. endef
  88. define Package/iputils-traceroute6/description
  89. Program traceroute6 from iputils.
  90. Traces path to a network host (IPv6).
  91. endef
  92. ifdef CONFIG_USE_MUSL
  93. TARGET_CFLAGS += -D__UCLIBC__
  94. endif
  95. MAKE_FLAGS += \
  96. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" \
  97. CONFIG_IPV6="$(CONFIG_IPV6)" \
  98. CONFIG_USE_UCLIBC="$(CONFIG_USE_UCLIBC)$(CONFIG_USE_MUSL)" \
  99. define Package/iputils-arping/install
  100. $(INSTALL_DIR) $(1)/usr/bin
  101. $(INSTALL_BIN) $(PKG_BUILD_DIR)/arping $(1)/usr/bin/
  102. endef
  103. define Package/iputils-clockdiff/install
  104. $(INSTALL_DIR) $(1)/usr/bin
  105. $(INSTALL_BIN) $(PKG_BUILD_DIR)/clockdiff $(1)/usr/bin/
  106. endef
  107. define Package/iputils-ping/install
  108. $(INSTALL_DIR) $(1)/usr/bin
  109. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ping $(1)/usr/bin/
  110. endef
  111. define Package/iputils-ping6/install
  112. $(INSTALL_DIR) $(1)/usr/bin
  113. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ping6 $(1)/usr/bin/
  114. endef
  115. define Package/iputils-tftpd/install
  116. $(INSTALL_DIR) $(1)/usr/sbin
  117. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd $(1)/usr/sbin/
  118. endef
  119. define Package/iputils-tracepath/install
  120. $(INSTALL_DIR) $(1)/usr/bin
  121. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tracepath $(1)/usr/bin/
  122. endef
  123. define Package/iputils-tracepath6/install
  124. $(INSTALL_DIR) $(1)/usr/bin
  125. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tracepath6 $(1)/usr/bin/
  126. endef
  127. define Package/iputils-traceroute6/install
  128. $(INSTALL_DIR) $(1)/usr/bin
  129. $(INSTALL_BIN) $(PKG_BUILD_DIR)/traceroute6 $(1)/usr/bin/
  130. endef
  131. $(eval $(call BuildPackage,iputils-arping))
  132. $(eval $(call BuildPackage,iputils-clockdiff))
  133. $(eval $(call BuildPackage,iputils-ping))
  134. $(eval $(call BuildPackage,iputils-tftpd))
  135. $(eval $(call BuildPackage,iputils-tracepath))
  136. $(eval $(call BuildPackage,iputils-ping6))
  137. $(eval $(call BuildPackage,iputils-tracepath6))
  138. $(eval $(call BuildPackage,iputils-traceroute6))