b9db38d370
FOO_CPE_ID_VALID really ought to be an internal implementaion detail. Packages that really want to trigger their CPE defintitions really should set one of the actual variables to a meaningful value. There are two CPE-related variables that we could chose to set to replace FOO_CPE_ID_VALID: FOO_CPE_ID_VENDOR and FOO_CPE_ID_PRODUCT. Between those two, _VENDOR more often diverges from the default than _PRODUCT does, so that's what we use. ---8<------8<------8<------8<------8<--- #!/bin/bash # Replace FOO_CPE_ID_VALID = YES with FOO_CPE_ID_VENDOR = foo_project for i in $(git grep -l -E '[^)]_CPE_ID_VALID = YES' package support); do pkg="$(basename "${i%/*}")" sed -r -i -e "s/_CPE_ID_VALID = YES/_CPE_ID_VENDOR = ${pkg}_project/" "${i}" done ---8<------8<------8<------8<------8<--- Reported-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Matthew Weber <matthew.weber@rockwellcollins.com> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Peter: update cpe-test comment to reflect pkg3 change] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# procps-ng
|
|
#
|
|
################################################################################
|
|
|
|
PROCPS_NG_VERSION = 3.3.15
|
|
PROCPS_NG_SOURCE = procps-ng-$(PROCPS_NG_VERSION).tar.xz
|
|
PROCPS_NG_SITE = http://downloads.sourceforge.net/project/procps-ng/Production
|
|
PROCPS_NG_LICENSE = GPL-2.0+, LGPL-2.0+ (libproc and libps)
|
|
PROCPS_NG_LICENSE_FILES = COPYING COPYING.LIB
|
|
PROCPS_NG_CPE_ID_VENDOR = procps-ng_project
|
|
PROCPS_NG_INSTALL_STAGING = YES
|
|
PROCPS_NG_DEPENDENCIES = ncurses host-pkgconf $(TARGET_NLS_DEPENDENCIES)
|
|
PROCPS_NG_CONF_OPTS = LIBS=$(TARGET_NLS_LIBS)
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
PROCPS_NG_DEPENDENCIES += systemd
|
|
PROCPS_NG_CONF_OPTS += --with-systemd
|
|
else
|
|
PROCPS_NG_CONF_OPTS += --without-systemd
|
|
endif
|
|
|
|
# Make sure binaries get installed in /bin, as busybox does, so that we
|
|
# don't end up with two versions.
|
|
# Make sure libprocps.pc is installed in STAGING_DIR/usr/lib/pkgconfig/
|
|
# otherwise it's installed in STAGING_DIR/lib/pkgconfig/ breaking
|
|
# pkg-config --libs libprocps.
|
|
PROCPS_NG_CONF_OPTS += --exec-prefix=/ \
|
|
--libdir=/usr/lib
|
|
|
|
# Allows unicode characters to show in 'watch'
|
|
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
|
PROCPS_NG_CONF_OPTS += \
|
|
--enable-watch8bit
|
|
endif
|
|
|
|
ifeq ($(BR2_USE_WCHAR),)
|
|
PROCPS_NG_CONF_OPTS += CPPFLAGS=-DOFF_XTRAWIDE
|
|
endif
|
|
|
|
# numa support requires libdl, so explicitly disable it when
|
|
# BR2_STATIC_LIBS=y
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
PROCPS_NG_CONF_OPTS += --disable-numa
|
|
endif
|
|
|
|
# Avoid installing S02sysctl, since openrc provides /etc/init.d/sysctl.
|
|
define PROCPS_NG_INSTALL_INIT_OPENRC
|
|
@:
|
|
endef
|
|
|
|
define PROCPS_NG_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 755 package/procps-ng/S02sysctl \
|
|
$(TARGET_DIR)/etc/init.d/S02sysctl
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|