c19cca0452
Now that we document _CPE_ID_VALID, and that it shall be used instead of setting a default value to one of the other _CPE_ID_* variables, change all of the existing packages to use it, to avoid any error when we later extend check-package to validate the sanity ofthe _CPE_ID_* variables. Mechanical change done within the reference container, running the new check in check-package, to report the CPE_ID errors: $ make check-package 2>/dev/null \ |awk '{ split($(1), a, ":"); fname = a[1] split($(2), a, "'\''"); val = a[2] new_var = $(8); gsub("_CPE_ID_.*", "_CPE_ID_VALID", new_var) printf("%s %s %s %s\n", fname, $(8), val, new_var) }' \ |while read fname var val new_var; do sed -r -i -e "s/${var}[[:space:]]*=[[:space:]]*${val}/${new_var} = YES/" "${fname}" done $ git diff -I'CPE_ID_(VENDOR|VALID)' [empty] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# procps-ng
|
|
#
|
|
################################################################################
|
|
|
|
PROCPS_NG_VERSION = 3.3.17
|
|
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_VALID = YES
|
|
PROCPS_NG_INSTALL_STAGING = YES
|
|
# We're patching configure.ac
|
|
PROCPS_NG_AUTORECONF = 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
|
|
|
|
# w requires utmp.h
|
|
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
|
PROCPS_NG_CONF_OPTS += --disable-w
|
|
else
|
|
PROCPS_NG_CONF_OPTS += --enable-w
|
|
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))
|