mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
o New port pkill version 0.1: NetBSD's pgrep and pkill: find or
signal processes matching criteria o Based on current NetBSD's pgrep(1) and pkill(1) with the following differences: 1) -STABLE version does not support filtering by session ID since this information is only available in kernel space. -CURRENT supports this. 2) Added -M and -N flags following ps(1). Therefore, drop additional privileges (drop_privs) if any of those flags are defined. 3) kvm access without sgid o Items (2) and (3) are based on jmallett code sent to me for inspiration. :) Great thanks to jmallett for that. Obtained from: NetBSD CVS (original pkill/pgrep code)
This commit is contained in:
parent
8bcd8f8426
commit
e97feb9a30
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69724
@ -162,6 +162,7 @@
|
||||
SUBDIR += pib
|
||||
SUBDIR += pkg_remove
|
||||
SUBDIR += pkg_tree
|
||||
SUBDIR += pkill
|
||||
SUBDIR += pmap
|
||||
SUBDIR += portupgrade
|
||||
SUBDIR += prips
|
||||
|
36
sysutils/pkill/Makefile
Normal file
36
sysutils/pkill/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# New ports collection makefile for: NetBSD's pgrep/pkill
|
||||
# Date created: Tue Nov 5 14:01:47 UTC 2002
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pkill
|
||||
PORTVERSION= 0.1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= lioux
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
|
||||
MAKE_ENV= DESTDIR=${PREFIX} \
|
||||
BINDIR=/bin \
|
||||
MANDIR=/man/man
|
||||
|
||||
MANCOMPRESSED= yes
|
||||
MAN1= pgrep.1 pkill.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 500000
|
||||
DISTNAME= ${PORTNAME}-current-${PORTVERSION}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-current
|
||||
.else
|
||||
. if ${OSVERSION} <= 300000
|
||||
MAKE_ENV+= NEED_KMEM=1
|
||||
. endif
|
||||
DISTNAME= ${PORTNAME}-stable-${PORTVERSION}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-stable
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
sysutils/pkill/distinfo
Normal file
2
sysutils/pkill/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (pkill-current-0.1.tar.gz) = 364a8115174806e41d99cfc2e8463bc8
|
||||
MD5 (pkill-stable-0.1.tar.gz) = 17ca84fe7e4c3fdd490e1561b8fe9035
|
1
sysutils/pkill/pkg-comment
Normal file
1
sysutils/pkill/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
NetBSD's pgrep and pkill: find or signal processes matching criteria
|
12
sysutils/pkill/pkg-descr
Normal file
12
sysutils/pkill/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
[ excerpt from commands' man page ]
|
||||
|
||||
Port of NetBSD's pgrep(1) and pkill(1) commands which either find
|
||||
or signal processes matching criteria.
|
||||
|
||||
The pgrep command searches the process table on the running system
|
||||
and prints the process IDs of all processes that match the criteria
|
||||
given on the command line.
|
||||
|
||||
The pkill command searches the process table on the running system
|
||||
and signals all processes that match the criteria given on the
|
||||
command line.
|
2
sysutils/pkill/pkg-plist
Normal file
2
sysutils/pkill/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/pgrep
|
||||
bin/pkill
|
Loading…
Reference in New Issue
Block a user