Makefile 4.1 KB

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