diff options
| author | Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> | 2018-04-01 00:28:21 +0200 |
|---|---|---|
| committer | Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> | 2018-04-01 00:28:21 +0200 |
| commit | b28d77789a4ba327532674efd6250b8634a99feb (patch) | |
| tree | 13f730ca21adef4040e2d2ca1f71c10ee6f5d58c | |
| parent | 2da613a7d94a4bd34e9f70533cf0d8b2803be5bb (diff) | |
| download | buildroot-b28d77789a4ba327532674efd6250b8634a99feb.tar.gz buildroot-b28d77789a4ba327532674efd6250b8634a99feb.zip | |
netcat: force-remove nc link before install
The nc -> netcat symlink is not created if nc exists already, e.g.
from busybox.
For netcat itself this is not needed, it is always installed.
Cc: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
| -rw-r--r-- | package/netcat/netcat.mk | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/package/netcat/netcat.mk b/package/netcat/netcat.mk index 6c7c4b8f29..d8b3c930b9 100644 --- a/package/netcat/netcat.mk +++ b/package/netcat/netcat.mk @@ -9,10 +9,17 @@ NETCAT_SITE = http://downloads.sourceforge.net/project/netcat/netcat/$(NETCAT_VE NETCAT_LICENSE = GPL-2.0+ NETCAT_LICENSE_FILES = COPYING -# Ensure Busybox gets built/installed before, so that this package overrides -# Busybox nc. +# Ensure Busybox gets built/installed before, so that this package +# overrides Busybox nc. ifeq ($(BR2_PACKAGE_BUSYBOX),y) NETCAT_DEPENDENCIES += busybox endif +# Netcat doesn't overwrite a pre-existing 'nc' (e.g. from busybox) so +# force-remove it. +define NETCAT_RMOVE_NC_LINK + rm -f $(TARGET_DIR)/usr/bin/nc +endef +NETCAT_PRE_INSTALL_TARGET_HOOKS += NETCAT_RMOVE_NC_LINK + $(eval $(autotools-package)) |

