package/iputils: create ping6 symlink
authorPetr Vorel <petr.vorel@gmail.com>
Wed, 19 Jun 2019 21:30:08 +0000 (23:30 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 22 Jun 2019 08:02:32 +0000 (10:02 +0200)
Upstream expect distros will do it, see
https://github.com/iputils/iputils/commit/ebad35fee3de851b809c7b72ccc654a72b6af61d

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/iputils/iputils.mk

index c6bff9284825830594c3b794d96eb934dbd7f2a9..15ee68be534794ac9d74d4ecaa1e9850ee3f7b04 100644 (file)
@@ -65,6 +65,12 @@ define IPUTILS_MOVE_BINARIES
 endef
 IPUTILS_POST_INSTALL_TARGET_HOOKS += IPUTILS_MOVE_BINARIES
 
+# upstream requires distros to create symlink
+define IPUTILS_CREATE_PING6_SYMLINK
+       ln -sf $(TARGET_DIR)/bin/ping $(TARGET_DIR)/bin/ping6
+endef
+IPUTILS_POST_INSTALL_TARGET_HOOKS += IPUTILS_CREATE_PING6_SYMLINK
+
 # handle permissions ourselves
 IPUTILS_CONF_OPTS += -DNO_SETCAP_OR_SUID=true
 define IPUTILS_PERMISSIONS