mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Add procps-ng, an improved version of procps
@ 2015-06-19 11:52 Clemens Gruber
  2015-07-01  8:13 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Gruber @ 2015-06-19 11:52 UTC (permalink / raw)
  To: ptxdist; +Cc: Clemens Gruber

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.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] Add procps-ng, an improved version of procps
  2015-06-19 11:52 [ptxdist] [PATCH] Add procps-ng, an improved version of procps Clemens Gruber
@ 2015-07-01  8:13 ` Michael Olbrich
  2015-07-01 14:00   ` Clemens Gruber
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2015-07-01  8:13 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] Add procps-ng, an improved version of procps
  2015-07-01  8:13 ` Michael Olbrich
@ 2015-07-01 14:00   ` Clemens Gruber
  2015-07-02  6:47     ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Gruber @ 2015-07-01 14:00 UTC (permalink / raw)
  To: m.olbrich; +Cc: ptxdist

Hi Michael,

On Wed, Jul 01, 2015 at 10:13:40AM +0200, Michael Olbrich wrote:
> 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
>

Do you want to keep the package name "procps" and just change the URL and
some configuration options or should I send a v2 which deletes the existing
procps package and adds the procps-ng package?

Clemens

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] Add procps-ng, an improved version of procps
  2015-07-01 14:00   ` Clemens Gruber
@ 2015-07-02  6:47     ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2015-07-02  6:47 UTC (permalink / raw)
  To: ptxdist

Hi,

On Wed, Jul 01, 2015 at 04:00:32PM +0200, Clemens Gruber wrote:
> On Wed, Jul 01, 2015 at 10:13:40AM +0200, Michael Olbrich wrote:
> > 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.
> 
> Do you want to keep the package name "procps" and just change the URL and
> some configuration options or should I send a v2 which deletes the existing
> procps package and adds the procps-ng package?

Please modify the URL and whatever else is different in procps.

Michael

-- 
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-02  4:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19 11:52 [ptxdist] [PATCH] Add procps-ng, an improved version of procps Clemens Gruber
2015-07-01  8:13 ` Michael Olbrich
2015-07-01 14:00   ` Clemens Gruber
2015-07-02  6:47     ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox