1
0

Makefile 4.3 KB

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