mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
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>
This commit is contained in:
parent
2da613a7d9
commit
b28d77789a
@ -9,10 +9,17 @@ NETCAT_SITE = http://downloads.sourceforge.net/project/netcat/netcat/$(NETCAT_VE
|
|||||||
NETCAT_LICENSE = GPL-2.0+
|
NETCAT_LICENSE = GPL-2.0+
|
||||||
NETCAT_LICENSE_FILES = COPYING
|
NETCAT_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
# Ensure Busybox gets built/installed before, so that this package overrides
|
# Ensure Busybox gets built/installed before, so that this package
|
||||||
# Busybox nc.
|
# overrides Busybox nc.
|
||||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||||
NETCAT_DEPENDENCIES += busybox
|
NETCAT_DEPENDENCIES += busybox
|
||||||
endif
|
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))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user