summaryrefslogtreecommitdiff
path: root/devel/p5-Proc-ProcessTable
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-07-07 13:21:56 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-07-07 13:21:56 +0000
commitef805b77c3303026b6c1ce6422badc47b33791b3 (patch)
tree371398c1d957c9307cea8a10f7a3ea33f1db3832 /devel/p5-Proc-ProcessTable
parentadd mod_put (diff)
add p5-Proc-ProcessTable
Perl interface to the unix process table PR: 28437 Submitted by: Michael Johnson <ahze@ahze.net>
Notes
Notes: svn path=/head/; revision=44873
Diffstat (limited to 'devel/p5-Proc-ProcessTable')
-rw-r--r--devel/p5-Proc-ProcessTable/Makefile25
-rw-r--r--devel/p5-Proc-ProcessTable/distinfo1
-rw-r--r--devel/p5-Proc-ProcessTable/pkg-comment1
-rw-r--r--devel/p5-Proc-ProcessTable/pkg-descr23
-rw-r--r--devel/p5-Proc-ProcessTable/pkg-plist7
5 files changed, 57 insertions, 0 deletions
diff --git a/devel/p5-Proc-ProcessTable/Makefile b/devel/p5-Proc-ProcessTable/Makefile
new file mode 100644
index 000000000000..8acc844e6aab
--- /dev/null
+++ b/devel/p5-Proc-ProcessTable/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: Proc-ProcessTable
+# Date created: Tue Jun 26 12:46:19 EDT 2001
+# Whom: Michael Johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Proc-ProcessTable
+PORTVERSION= 0.31
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Proc
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= ahze@ahze.net
+
+PERL_CONFIGURE= YES
+
+MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+MAN3= Proc::ProcessTable::Process.3 \
+ Proc::Killall.3 \
+ Proc::ProcessTable.3 \
+ Proc::Killfam.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Proc-ProcessTable/distinfo b/devel/p5-Proc-ProcessTable/distinfo
new file mode 100644
index 000000000000..9aaa06e2d6df
--- /dev/null
+++ b/devel/p5-Proc-ProcessTable/distinfo
@@ -0,0 +1 @@
+MD5 (Proc-ProcessTable-0.31.tar.gz) = 511ce5719bbc687c8491fe5c8d806412
diff --git a/devel/p5-Proc-ProcessTable/pkg-comment b/devel/p5-Proc-ProcessTable/pkg-comment
new file mode 100644
index 000000000000..683e911000bd
--- /dev/null
+++ b/devel/p5-Proc-ProcessTable/pkg-comment
@@ -0,0 +1 @@
+Perl interface to the unix process table
diff --git a/devel/p5-Proc-ProcessTable/pkg-descr b/devel/p5-Proc-ProcessTable/pkg-descr
new file mode 100644
index 000000000000..c892a4ea393d
--- /dev/null
+++ b/devel/p5-Proc-ProcessTable/pkg-descr
@@ -0,0 +1,23 @@
+DESCRIPTION
+===========
+This module is a first crack at providing a consistent interface to
+Unix (and maybe other multitasking OS's) process table information.
+The impetus for this came about with my frustration at having to parse
+the output of various systems' ps commands to check whether specific
+processes were running on different boxes at a larged mixed Unix site.
+The output format of ps was different on each OS, and sometimes
+changed with each new release of an OS. Also, running a ps subprocess
+from within a perl or shell script and parsing the output was not a
+very efficient or aesthetic way to do things.
+
+With this module, you can do things like this:
+
+ # kill memory pigs
+ use Proc::ProcessTable;
+
+ $t = new Proc::ProcessTable;
+ foreach $p ( @{$t->table} ){
+ if( $p->pctmem > 95 ){
+ $p->kill(9);
+ }
+ }
diff --git a/devel/p5-Proc-ProcessTable/pkg-plist b/devel/p5-Proc-ProcessTable/pkg-plist
new file mode 100644
index 000000000000..b54d23f6c0d6
--- /dev/null
+++ b/devel/p5-Proc-ProcessTable/pkg-plist
@@ -0,0 +1,7 @@
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/Killall.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/Killfam.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/example.pl
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/ProcessTable/Process.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/ProcessTable.pm
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc/ProcessTable
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Proc