4 Commits

Author SHA1 Message Date
Gianfranco Costamagna 29b5633993 cpulimit: add DESCRIPTION field
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Federico Briata <federicobriata@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-26 09:02:04 -07:00
Martin Jansa 099476a72f cpulimit: fix do_install with multilib
* fixes:
  DEBUG: Executing shell function do_install
  install: cannot stat 'TOPDIR/.../lib32-cpulimit/0.2-r0/git/src/lib32-cpulimit': No such file or directory
  WARNING: exit code 1 from a shell command.

* drop strange 'g...@' from SRC_URI

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-03 21:24:55 -07:00
Khem Raj ff62a99e18 cpulimit: Define -D_GNU_SOURCE
This define is needed for getting memrchr() declaration

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-23 09:55:28 -07:00
Portia bc4448f461 cpulimit: introduce support for this package
Now, cpulimit recipe is put under recipes-support. Binary will be
installed  by the recipe under /usr/sbin

         # cpulimit -h
         Usage: cpulimit [OPTIONS...] TARGET
                 OPTIONS
                 -l, --limit=N          percentage of cpu allowed from 0
to 100
(required)
                 -v, --verbose          show control statistics
                 -z, --lazy             exit if there is no target
process, or
if it dies
                 -i, --include-children limit also the children
processes
                 -h, --help             display this help and exit
                 TARGET must be exactly one of these:
                 -p, --pid=N            pid of the process (implies -z)
                 -e, --exe=FILE         name of the executable program
file or
path name
                 COMMAND [ARGS]         run this command and limit it
(implies
-z)

                 Report bugs to <marlon...@hotmail.com>.

Signed-off-by: Bassem Boubaker <bassem.boubaker@actia.fr>
[ Changes by Portia
 - Fix build issue, deprecated and missing includes
 - Add branch to git repo in SRC_URI
 - Update LICENSE to GPL-2.0-or-later
]
Signed-off-by: Portia <stephensportia@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-02 00:48:27 -07:00