package/arp-scan: allow to not install package data

The patch adds an option that allows you to not install the data along
with the binaries (less than 100kb), saving 1.4Mb of rootfs data.

By default, the data is installed for backward compatibility.

Cc: Angelo Compagnucci <angelo@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Dario Binacchi 2023-08-04 22:54:01 +02:00 committed by Thomas Petazzoni
parent 6d37bf0509
commit ffbc72e8bc
2 changed files with 15 additions and 0 deletions

View File

@ -8,3 +8,14 @@ config BR2_PACKAGE_ARP_SCAN
discover and fingerprint IP hosts on the local network.
https://github.com/royhills/arp-scan
if BR2_PACKAGE_ARP_SCAN
config BR2_PACKAGE_ARP_SCAN_DATA
bool "install data (OUI)"
default y # legacy
help
Say 'y' here (the default) to install the data along the
binaries.
endif # BR2_PACKAGE_ARP_SCAN

View File

@ -23,4 +23,8 @@ else
ARP_SCAN_CONF_OPTS += --without-libcap
endif
ifeq ($(BR2_PACKAGE_ARP_SCAN_DATA),)
ARP_SCAN_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
endif
$(eval $(autotools-package))