From 9ea29b67edb887f9e68d3aead4e5a89581aab6fb Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 25 Jul 2009 09:33:52 -0400 Subject: [PATCH] coreutils: disable uptime if procps is installed --- base/coreutils/coreutils.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/base/coreutils/coreutils.conf b/base/coreutils/coreutils.conf index 377faca1f..58523fe7b 100644 --- a/base/coreutils/coreutils.conf +++ b/base/coreutils/coreutils.conf @@ -49,6 +49,11 @@ hook_add postmake 5 'ln -sf install $root/usr/bin/ginstall' # install hostname var_append confopt ' ' '--enable-install-program=hostname' -if pkginstalled mktemp; then - var_append confopt ' ' '--enable-no-install-program=mktemp' -fi +noinstall= +for x in mktemp procps:uptime; do + if pkginstalled "${x%:*}"; then + var_append noinstall ',' "${x#*:}" + fi +done +[ -z "$noinstall" ] || + var_append confopt ' ' "--enable-no-install-program=$noinstall"