2 # Copyright (C) 2006-2010 OpenWrt.org
3 # Copyright (C) 2019 Noah Meyerhans <frodo@morgul.net>
6 # This is free software, licensed under the GNU General Public License v2.
7 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://codeload.github.com
/iputils
/iputils
/tar.gz
/$(PKG_VERSION
)?
17 PKG_HASH
:=b6f67fc705490673ff4471d006221b4a2f1b1180b929d9fefd771352621ccedf
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/iputils-
$(PKG_VERSION
)
20 PKG_MAINTAINER
:=Noah Meyerhans
<frodo@morgul.net
>
21 PKG_LICENSE
:=BSD-3-Clause
22 PKG_LICENSE_FILES
:=LICENSE
23 PKG_CPE_ID
:=cpe
:/a
:iputils_project
:iputils
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/meson.mk
30 -DBUILD_HTML_MANS
=false \
34 -DNO_SETCAP_OR_SUID
=true \
37 -DBUILD_CLOCKDIFF
=true \
38 -DBUILD_TRACEPATH
=true \
41 define Package
/iputils
/Default
45 URL
:=https
://github.com
/iputils
/iputils
50 define Package
/iputils-ping
51 $(call Package
/iputils
/Default
)
53 DEPENDS
:=+kmod-crypto-md5
54 PROVIDES
:=iputils-ping6
57 define Package
/iputils-ping
/config
58 source
"$(SOURCE)/Config_ping.in"
61 define Package
/iputils-ping
/description
62 Send ICMP_ECHOREQUEST packets to IP hosts and report on replies
65 define Package
/iputils-ping
/install
66 $(INSTALL_DIR
) $(1)/usr
/bin
67 $(INSTALL_SUID
) $(PKG_INSTALL_DIR
)/usr
/bin
/ping
$(1)/usr
/bin
/
68 ifdef CONFIG_PING_LEGACY_SYMLINKS
69 ln
-s ping
$(1)/usr
/bin
/ping4
70 ln
-s ping
$(1)/usr
/bin
/ping6
76 define Package
/iputils-arping
77 $(call Package
/iputils
/Default
)
81 define Package
/iputils-arping
/description
82 Send ARP REQUEST packets to a neighbor host
85 define Package
/iputils-arping
/install
86 $(INSTALL_DIR
) $(1)/usr
/bin
87 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/arping
$(1)/usr
/bin
/
92 define Package
/iputils-clockdiff
93 $(call Package
/iputils
/Default
)
94 TITLE
:=iputils-clockdiff
97 define Package
/iputils-clockdiff
/description
98 Measure the clock difference between two hosts
101 define Package
/iputils-clockdiff
/install
102 $(INSTALL_DIR
) $(1)/usr
/bin
103 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/clockdiff
$(1)/usr
/bin
/
108 define Package
/iputils-tracepath
109 $(call Package
/iputils
/Default
)
110 TITLE
:=iputils-tracepath
113 define Package
/iputils-tracepath
/description
114 trace network path to a host
, discovering PMTU
117 define Package
/iputils-tracepath
/config
118 source
"$(SOURCE)/Config_tracepath.in"
121 define Package
/iputils-tracepath
/install
122 $(INSTALL_DIR
) $(1)/usr
/bin
123 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/tracepath
$(1)/usr
/bin
/
124 ifdef CONFIG_TRACEPATH_LEGACY_SYMLINKS
125 ln
-s tracepath
$(1)/usr
/bin
/tracepath4
126 ln
-s tracepath
$(1)/usr
/bin
/tracepath6
130 $(eval
$(call BuildPackage
,iputils-ping
))
131 $(eval
$(call BuildPackage
,iputils-arping
))
132 $(eval
$(call BuildPackage
,iputils-clockdiff
))
133 $(eval
$(call BuildPackage
,iputils-tracepath
))