hidapi: remove now obsolete iconv patch
[feed/packages.git] / net / iputils / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 # Copyright (C) 2019 Noah Meyerhans <frodo@morgul.net>
4 #
5 #
6 # This is free software, licensed under the GNU General Public License v2.
7 # See /LICENSE for more information.
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=iputils
12 PKG_VERSION:=20211215
13 PKG_RELEASE:=2
14
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)
19
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
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/meson.mk
27
28 MESON_ARGS += \
29 -DBUILD_MANS=false \
30 -DBUILD_HTML_MANS=false \
31 -DUSE_CAP=false \
32 -DUSE_IDN=false \
33 -DUSE_GETTEXT=false \
34 -DNO_SETCAP_OR_SUID=true \
35 -DBUILD_PING=true \
36 -DBUILD_ARPING=true \
37 -DBUILD_CLOCKDIFF=true \
38 -DBUILD_TRACEPATH=true \
39 -DSKIP_TESTS=true
40
41 define Package/iputils/Default
42 SECTION:=net
43 CATEGORY:=Network
44 TITLE:=iputils
45 URL:=https://github.com/iputils/iputils
46 endef
47
48 ### ping
49
50 define Package/iputils-ping
51 $(call Package/iputils/Default)
52 TITLE:=iputils-ping
53 DEPENDS:=+kmod-crypto-md5
54 PROVIDES:=iputils-ping6
55 endef
56
57 define Package/iputils-ping/config
58 source "$(SOURCE)/Config_ping.in"
59 endef
60
61 define Package/iputils-ping/description
62 Send ICMP_ECHOREQUEST packets to IP hosts and report on replies
63 endef
64
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
71 endif
72 endef
73
74 ### arping
75
76 define Package/iputils-arping
77 $(call Package/iputils/Default)
78 TITLE:=iputils-arping
79 endef
80
81 define Package/iputils-arping/description
82 Send ARP REQUEST packets to a neighbor host
83 endef
84
85 define Package/iputils-arping/install
86 $(INSTALL_DIR) $(1)/usr/bin
87 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arping $(1)/usr/bin/
88 endef
89
90 ### clockdiff
91
92 define Package/iputils-clockdiff
93 $(call Package/iputils/Default)
94 TITLE:=iputils-clockdiff
95 endef
96
97 define Package/iputils-clockdiff/description
98 Measure the clock difference between two hosts
99 endef
100
101 define Package/iputils-clockdiff/install
102 $(INSTALL_DIR) $(1)/usr/bin
103 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/clockdiff $(1)/usr/bin/
104 endef
105
106 ### tracepath
107
108 define Package/iputils-tracepath
109 $(call Package/iputils/Default)
110 TITLE:=iputils-tracepath
111 endef
112
113 define Package/iputils-tracepath/description
114 trace network path to a host, discovering PMTU
115 endef
116
117 define Package/iputils-tracepath/config
118 source "$(SOURCE)/Config_tracepath.in"
119 endef
120
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
127 endif
128 endef
129
130 $(eval $(call BuildPackage,iputils-ping))
131 $(eval $(call BuildPackage,iputils-arping))
132 $(eval $(call BuildPackage,iputils-clockdiff))
133 $(eval $(call BuildPackage,iputils-tracepath))