| 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=iputils |
| 11 | PKG_VERSION:=20101006 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=$(PKG_NAME)-s$(PKG_VERSION).tar.bz2 |
| 15 | PKG_SOURCE_URL:=http://www.skbuff.net/iputils |
| 16 | PKG_MD5SUM:=a36c25e9ec17e48be514dc0485e7376c |
| 17 | |
| 18 | PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org> |
| 19 | |
| 20 | PKG_BUILD_DEPENDS:=sysfsutils |
| 21 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-s$(PKG_VERSION) |
| 22 | |
| 23 | include $(INCLUDE_DIR)/package.mk |
| 24 | |
| 25 | |
| 26 | define Package/iputils/Default |
| 27 | SECTION:=net |
| 28 | CATEGORY:=Network |
| 29 | URL:=http://www.skbuff.net/iputils |
| 30 | endef |
| 31 | |
| 32 | |
| 33 | define Package/iputils-arping |
| 34 | $(call Package/iputils/Default) |
| 35 | TITLE:=iputils - arping |
| 36 | DEPENDS+= +libsysfs |
| 37 | endef |
| 38 | |
| 39 | define Package/iputils-arping/description |
| 40 | Program arping from iputils. |
| 41 | Sends ARP REQUEST to a neighbour host. |
| 42 | endef |
| 43 | |
| 44 | |
| 45 | define Package/iputils-clockdiff |
| 46 | $(call Package/iputils/Default) |
| 47 | TITLE:=iputils - clockdiff |
| 48 | endef |
| 49 | |
| 50 | define Package/iputils-clockdiff/description |
| 51 | Program clockdiff from iputils. |
| 52 | Measures clock difference between hosts. |
| 53 | endef |
| 54 | |
| 55 | |
| 56 | define Package/iputils-ping |
| 57 | $(call Package/iputils/Default) |
| 58 | TITLE:=iputils - ping |
| 59 | endef |
| 60 | |
| 61 | define Package/iputils-ping/description |
| 62 | Program ping from iputils. |
| 63 | Sends ICMP ECHO_REQUEST to network hosts (IPv4). |
| 64 | endef |
| 65 | |
| 66 | |
| 67 | define Package/iputils-ping6 |
| 68 | $(call Package/iputils/Default) |
| 69 | TITLE:=iputils - ping6 |
| 70 | DEPENDS+= @IPV6 |
| 71 | endef |
| 72 | |
| 73 | define Package/iputils-ping6/description |
| 74 | Program ping6 from iputils. |
| 75 | Sends ICMP ECHO_REQUEST to network hosts (IPv6). |
| 76 | endef |
| 77 | |
| 78 | |
| 79 | define Package/iputils-tftpd |
| 80 | $(call Package/iputils/Default) |
| 81 | TITLE:=iputils - tftpd |
| 82 | endef |
| 83 | |
| 84 | define Package/iputils-tftpd/description |
| 85 | Program tftpd from iputils |
| 86 | Trivial File Transfer Protocol server. |
| 87 | endef |
| 88 | |
| 89 | |
| 90 | define Package/iputils-tracepath |
| 91 | $(call Package/iputils/Default) |
| 92 | TITLE:=iputils - tracepath |
| 93 | endef |
| 94 | |
| 95 | define Package/iputils-tracepath/description |
| 96 | Program tracepath from iputils. |
| 97 | Traces path to a network host discovering MTU along this path (IPv4). |
| 98 | endef |
| 99 | |
| 100 | |
| 101 | define Package/iputils-tracepath6 |
| 102 | $(call Package/iputils/Default) |
| 103 | TITLE:=iputils - tracepath6 |
| 104 | DEPENDS+= @IPV6 |
| 105 | endef |
| 106 | |
| 107 | define Package/iputils-tracepath6/description |
| 108 | Program tracepath6 from iputils. |
| 109 | Traces path to a network host discovering MTU along this path (IPv6). |
| 110 | endef |
| 111 | |
| 112 | |
| 113 | define Package/iputils-traceroute6 |
| 114 | $(call Package/iputils/Default) |
| 115 | TITLE:=iputils - traceroute6 |
| 116 | DEPENDS+= @IPV6 |
| 117 | endef |
| 118 | |
| 119 | define Package/iputils-traceroute6/description |
| 120 | Program traceroute6 from iputils. |
| 121 | Traces path to a network host (IPv6). |
| 122 | endef |
| 123 | |
| 124 | ifeq ($(BOARD),brcm47xx) |
| 125 | TARGET_CFLAGS += -O2 |
| 126 | endif |
| 127 | |
| 128 | MAKE_FLAGS += \ |
| 129 | CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" \ |
| 130 | CONFIG_IPV6="$(CONFIG_IPV6)" \ |
| 131 | CONFIG_USE_UCLIBC="$(CONFIG_USE_UCLIBC)" \ |
| 132 | |
| 133 | define Package/iputils-arping/install |
| 134 | $(INSTALL_DIR) $(1)/usr/bin |
| 135 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/arping $(1)/usr/bin/ |
| 136 | endef |
| 137 | |
| 138 | define Package/iputils-clockdiff/install |
| 139 | $(INSTALL_DIR) $(1)/usr/bin |
| 140 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/clockdiff $(1)/usr/bin/ |
| 141 | endef |
| 142 | |
| 143 | define Package/iputils-ping/install |
| 144 | $(INSTALL_DIR) $(1)/usr/bin |
| 145 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/ping $(1)/usr/bin/ |
| 146 | endef |
| 147 | |
| 148 | define Package/iputils-ping6/install |
| 149 | $(INSTALL_DIR) $(1)/usr/bin |
| 150 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/ping6 $(1)/usr/bin/ |
| 151 | endef |
| 152 | |
| 153 | define Package/iputils-tftpd/install |
| 154 | $(INSTALL_DIR) $(1)/usr/sbin |
| 155 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd $(1)/usr/sbin/ |
| 156 | endef |
| 157 | |
| 158 | define Package/iputils-tracepath/install |
| 159 | $(INSTALL_DIR) $(1)/usr/bin |
| 160 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tracepath $(1)/usr/bin/ |
| 161 | endef |
| 162 | |
| 163 | define Package/iputils-tracepath6/install |
| 164 | $(INSTALL_DIR) $(1)/usr/bin |
| 165 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tracepath6 $(1)/usr/bin/ |
| 166 | endef |
| 167 | |
| 168 | define Package/iputils-traceroute6/install |
| 169 | $(INSTALL_DIR) $(1)/usr/bin |
| 170 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/traceroute6 $(1)/usr/bin/ |
| 171 | endef |
| 172 | |
| 173 | $(eval $(call BuildPackage,iputils-arping)) |
| 174 | $(eval $(call BuildPackage,iputils-clockdiff)) |
| 175 | $(eval $(call BuildPackage,iputils-ping)) |
| 176 | $(eval $(call BuildPackage,iputils-tftpd)) |
| 177 | $(eval $(call BuildPackage,iputils-tracepath)) |
| 178 | $(eval $(call BuildPackage,iputils-ping6)) |
| 179 | $(eval $(call BuildPackage,iputils-tracepath6)) |
| 180 | $(eval $(call BuildPackage,iputils-traceroute6)) |
| 181 | |