2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-s
$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://www.skbuff.net
/iputils
16 PKG_MD5SUM
:=a36c25e9ec17e48be514dc0485e7376c
18 PKG_MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
20 PKG_BUILD_DEPENDS
:=sysfsutils
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-s
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
26 define Package
/iputils
/Default
29 URL
:=http
://www.skbuff.net
/iputils
33 define Package
/iputils-arping
34 $(call Package
/iputils
/Default
)
35 TITLE
:=iputils
- arping
39 define Package
/iputils-arping
/description
40 Program arping from iputils.
41 Sends ARP REQUEST to a neighbour host.
45 define Package
/iputils-clockdiff
46 $(call Package
/iputils
/Default
)
47 TITLE
:=iputils
- clockdiff
50 define Package
/iputils-clockdiff
/description
51 Program clockdiff from iputils.
52 Measures clock difference between hosts.
56 define Package
/iputils-ping
57 $(call Package
/iputils
/Default
)
61 define Package
/iputils-ping
/description
62 Program ping from iputils.
63 Sends ICMP ECHO_REQUEST to network hosts
(IPv4
).
67 define Package
/iputils-ping6
68 $(call Package
/iputils
/Default
)
69 TITLE
:=iputils
- ping6
70 DEPENDS
+= @IPV6
+USE_EGLIBC
:libopenssl
73 define Package
/iputils-ping6
/description
74 Program ping6 from iputils.
75 Sends ICMP ECHO_REQUEST to network hosts
(IPv6
).
79 define Package
/iputils-tftpd
80 $(call Package
/iputils
/Default
)
81 TITLE
:=iputils
- tftpd
84 define Package
/iputils-tftpd
/description
85 Program tftpd from iputils
86 Trivial File Transfer Protocol server.
90 define Package
/iputils-tracepath
91 $(call Package
/iputils
/Default
)
92 TITLE
:=iputils
- tracepath
95 define Package
/iputils-tracepath
/description
96 Program tracepath from iputils.
97 Traces path to a network host discovering MTU along this path
(IPv4
).
101 define Package
/iputils-tracepath6
102 $(call Package
/iputils
/Default
)
103 TITLE
:=iputils
- tracepath6
107 define Package
/iputils-tracepath6
/description
108 Program tracepath6 from iputils.
109 Traces path to a network host discovering MTU along this path
(IPv6
).
113 define Package
/iputils-traceroute6
114 $(call Package
/iputils
/Default
)
115 TITLE
:=iputils
- traceroute6
119 define Package
/iputils-traceroute6
/description
120 Program traceroute6 from iputils.
121 Traces path to a network host
(IPv6
).
124 ifdef CONFIG_USE_MUSL
125 TARGET_CFLAGS
+= -D__UCLIBC__
129 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" \
130 CONFIG_IPV6
="$(CONFIG_IPV6)" \
131 CONFIG_USE_UCLIBC
="$(CONFIG_USE_UCLIBC)$(CONFIG_USE_MUSL)" \
133 define Package
/iputils-arping
/install
134 $(INSTALL_DIR
) $(1)/usr
/bin
135 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/arping
$(1)/usr
/bin
/
138 define Package
/iputils-clockdiff
/install
139 $(INSTALL_DIR
) $(1)/usr
/bin
140 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/clockdiff
$(1)/usr
/bin
/
143 define Package
/iputils-ping
/install
144 $(INSTALL_DIR
) $(1)/usr
/bin
145 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ping
$(1)/usr
/bin
/
148 define Package
/iputils-ping6
/install
149 $(INSTALL_DIR
) $(1)/usr
/bin
150 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ping6
$(1)/usr
/bin
/
153 define Package
/iputils-tftpd
/install
154 $(INSTALL_DIR
) $(1)/usr
/sbin
155 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tftpd
$(1)/usr
/sbin
/
158 define Package
/iputils-tracepath
/install
159 $(INSTALL_DIR
) $(1)/usr
/bin
160 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tracepath
$(1)/usr
/bin
/
163 define Package
/iputils-tracepath6
/install
164 $(INSTALL_DIR
) $(1)/usr
/bin
165 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tracepath6
$(1)/usr
/bin
/
168 define Package
/iputils-traceroute6
/install
169 $(INSTALL_DIR
) $(1)/usr
/bin
170 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/traceroute6
$(1)/usr
/bin
/
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
))