From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] Add procps-ng, an improved version of procps
Date: Wed, 1 Jul 2015 10:13:40 +0200 [thread overview]
Message-ID: <20150701081340.GH30833@pengutronix.de> (raw)
In-Reply-To: <1434714756-25185-1-git-send-email-clemens.gruber@pqgruber.com>
On Fri, Jun 19, 2015 at 01:52:36PM +0200, Clemens Gruber wrote:
> As procps is no longer maintained and many distributions are using procps-ng
> now, I think it should also be available in ptxdist.
>
> Contains the new top, vmstat and pkill in addition to improved versions of
> pgrep, ps, slabtop, sysctl and w.
I think, updating the procps packages and using procps-ng there is the way
to go. I don't think the original procps is updated any more and procps-ng
seems to be based on the same code.
Michael
> Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
> ---
> rules/procps-ng.in | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++
> rules/procps-ng.make | 109 ++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 223 insertions(+)
> create mode 100644 rules/procps-ng.in
> create mode 100644 rules/procps-ng.make
>
> diff --git a/rules/procps-ng.in b/rules/procps-ng.in
> new file mode 100644
> index 0000000..47328b3
> --- /dev/null
> +++ b/rules/procps-ng.in
> @@ -0,0 +1,114 @@
> +## SECTION=shell_and_console
> +
> +menuconfig PROCPS_NG
> + tristate
> + prompt "procps-ng "
> + select GCCLIBS_GCC_S
> + select NCURSES if PROCPS_NG_USES_NCURSES
> + select PROCPS_NG_USES_NCURSES if PROCPS_NG_TOP || PROCPS_NG_SLABTOP
> + help
> + procps-ng is a fork of the procps project.
> + It contains a set of system utilities that provide
> + system information, e.g. pkill, pgrep, ps, slabtop,
> + sysctl, top, vmstat and w
> +
> +if PROCPS_NG
> +
> +config PROCPS_NG_USES_NCURSES
> + bool
> +
> +config PROCPS_NG_PGREP
> + bool
> + prompt "pgrep"
> + depends on (!BUSYBOX_PGREP && !PROCPS_PGREP) || ALLYES
> + help
> + look up processes based on name and other attributes
> +
> +comment "busybox' pgrep is selected!"
> + depends on BUSYBOX_PGREP
> +
> +comment "procps' pgrep is selected!"
> + depends on PROCPS_PGREP
> +
> +config PROCPS_NG_PKILL
> + bool
> + prompt "pkill"
> + depends on !BUSYBOX_PKILL || ALLYES
> + help
> + kill processes based on name and other attributes
> +
> +comment "busybox' pkill is selected!"
> + depends on BUSYBOX_PKILL
> +
> +config PROCPS_NG_PS
> + bool
> + prompt "ps"
> + depends on (!BUSYBOX_PS && !PROCPS_PS) || ALLYES
> + help
> + ps stands for process status. With this command you
> + analyse current states of all processes running on
> + the system
> +
> +comment "busybox' ps is selected!"
> + depends on BUSYBOX_PS
> +
> +comment "procps' ps is selected!"
> + depends on PROCPS_PS
> +
> +config PROCPS_NG_SLABTOP
> + bool
> + prompt "slabtop"
> + depends on !PROCPS_SLABTOP || ALLYES
> + help
> + display kernel slab cache information in real time
> + Note: This command enlarges your system by the ncurses library.
> +
> +comment "procps' slabtop is selected!"
> + depends on PROCPS_SLABTOP
> +
> +config PROCPS_NG_SYSCTL
> + bool
> + prompt "sysctl"
> + depends on (!BUSYBOX_BB_SYSCTL && !PROCPS_SYSCTL) || ALLYES
> + help
> + configure kernel parameters at runtime
> +
> +comment "busybox' sysctl is selected!"
> + depends on BUSYBOX_BB_SYSCTL
> +
> +comment "procps' sysctl is selected!"
> + depends on PROCPS_SYSCTL
> +
> +config PROCPS_NG_TOP
> + bool
> + prompt "top"
> + depends on (!BUSYBOX_TOP && !PROCPS_TOP) || ALLYES
> + help
> + The top program provides a dynamic real-time view of a running
> + system.
> + Note: This command enlarges your system by the ncurses library.
> +
> +comment "busybox' top is selected!"
> + depends on BUSYBOX_TOP
> +
> +comment "procps' top is selected!"
> + depends on PROCPS_TOP
> +
> +config PROCPS_NG_VMSTAT
> + bool
> + prompt "vmstat"
> + help
> + vmstat reports information about processes, memory,
> + paging, block IO, traps, disks and cpu activity.
> +
> +config PROCPS_NG_W
> + bool
> + prompt "w"
> + depends on !PROCPS_W || ALLYES
> + help
> + Show who is logged on and what they are doing.
> +
> +comment "procps' w is selected!"
> + depends on PROCPS_W
> +
> +endif
> diff --git a/rules/procps-ng.make b/rules/procps-ng.make
> new file mode 100644
> index 0000000..236aa65
> --- /dev/null
> +++ b/rules/procps-ng.make
> @@ -0,0 +1,109 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2015 Clemens Gruber <clemens.gruber@pqgruber.com>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PROCPS_NG) += procps-ng
> +
> +#
> +# Paths and names
> +#
> +PROCPS_NG_VERSION := 3.3.10
> +PROCPS_NG_MD5 := 1fb7f3f6bf92ce6c5c9ed9949ae858fe
> +PROCPS_NG := procps-ng-$(PROCPS_NG_VERSION)
> +PROCPS_NG_SUFFIX := tar.xz
> +PROCPS_NG_URL := http://downloads.sourceforge.net/project/procps-ng/Production/$(PROCPS_NG).$(PROCPS_NG_SUFFIX)
> +PROCPS_NG_SOURCE := $(SRCDIR)/$(PROCPS_NG).$(PROCPS_NG_SUFFIX)
> +PROCPS_NG_DIR := $(BUILDDIR)/$(PROCPS_NG)
> +PROCPS_NG_LICENSE := GPLv2 (tools), LGPLv2 (libs)
> +PROCPS_NG_LICENSE_FILES := \
> + file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> + file://COPYING.LIB;md5=4cf66a4984120007c9881cc871cf49db
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PROCPS_NG_CONF_ENV := \
> + $(CROSS_ENV) \
> + $(call ptx/ncurses, PTXCONF_PROCPS_NG_USES_NCURSES)
> +
> +#
> +# autoconf
> +#
> +PROCPS_NG_CONF_TOOL := autoconf
> +PROCPS_NG_CONF_OPT := \
> + $(CROSS_AUTOCONF_USR) \
> + --enable-shared \
> + --disable-static \
> + --disable-nls \
> + --disable-rpath \
> + --prefix=/ \
> + --without-libiconv-prefix \
> + --without-libintl-prefix \
> + --$(call ptx/wwo, PTXCONF_PROCPS_NG_USES_NCURSES)-ncurses \
> + --$(call ptx/wwo, PTXCONF_INITMETHOD_SYSTEMD)-systemd
> +
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/procps-ng.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, procps-ng)
> + @$(call install_fixup, procps-ng,PRIORITY,optional)
> + @$(call install_fixup, procps-ng,SECTION,base)
> + @$(call install_fixup, procps-ng,AUTHOR,"Clemens Gruber <clemens.gruber@pqgruber.com>")
> + @$(call install_fixup, procps-ng,DESCRIPTION,missing)
> +
> + @$(call install_lib, procps-ng, 0, 0, 0644, libprocps)
> +
> +ifdef PTXCONF_PROCPS_NG_PGREP
> + @$(call install_copy, procps-ng, 0, 0, 0755, -, \
> + /usr/bin/pgrep)
> +endif
> +ifdef PTXCONF_PROCPS_NG_PKILL
> + @$(call install_copy, procps-ng, 0, 0, 0755, -, \
> + /usr/bin/pkill)
> +endif
> +ifdef PTXCONF_PROCPS_NG_PS
> + @$(call install_copy, procps-ng, 0, 0, 0755, -, \
> + /bin/ps)
> +endif
> +ifdef PTXCONF_PROCPS_NG_SLABTOP
> + @$(call install_copy, procps-ng, 0, 0, 0755, -, \
> + /usr/bin/slabtop)
> +endif
> +ifdef PTXCONF_PROCPS_NG_SYSCTL
> + @$(call install_copy, procps-ng, 0, 0, 0755, -, \
> + /sbin/sysctl)
> + @$(call install_alternative, procps-ng, 0, 0, 0644, /etc/sysctl.conf, n)
> +endif
> +ifdef PTXCONF_PROCPS_NG_TOP
> + @$(call install_copy, procps-ng, 0, 0, 0755, -,\
> + /usr/bin/top)
> +endif
> +ifdef PTXCONF_PROCPS_NG_VMSTAT
> + @$(call install_copy, procps-ng, 0, 0, 0755, -, \
> + /usr/bin/vmstat)
> +endif
> +ifdef PTXCONF_PROCPS_NG_W
> + @$(call install_copy, procps-ng, 0, 0, 0755, -, \
> + /usr/bin/w)
> +endif
> +
> + @$(call install_finish, procps-ng)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.4.4
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2015-07-01 6:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 11:52 Clemens Gruber
2015-07-01 8:13 ` Michael Olbrich [this message]
2015-07-01 14:00 ` Clemens Gruber
2015-07-02 6:47 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150701081340.GH30833@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox