summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Linux-Pid/Makefile21
-rw-r--r--devel/p5-Linux-Pid/distinfo3
-rw-r--r--devel/p5-Linux-Pid/pkg-descr12
-rw-r--r--devel/p5-Linux-Pid/pkg-plist7
5 files changed, 44 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 54f260136249..83384831d3f3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1119,6 +1119,7 @@
SUBDIR += p5-Iterator-Misc
SUBDIR += p5-Iterator-Util
SUBDIR += p5-Java
+ SUBDIR += p5-Linux-Pid
SUBDIR += p5-List-Cycle
SUBDIR += p5-List-Group
SUBDIR += p5-Locale-Maketext
diff --git a/devel/p5-Linux-Pid/Makefile b/devel/p5-Linux-Pid/Makefile
new file mode 100644
index 000000000000..85fdec173017
--- /dev/null
+++ b/devel/p5-Linux-Pid/Makefile
@@ -0,0 +1,21 @@
+# New ports collection makefile for: p5-Linux-Pid
+# Date created: 1 August 2006
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Linux-Pid
+DISTVERSION= 0.03
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= Get native PID and the PPID
+
+PERL_CONFIGURE= YES
+
+MAN3= Linux::Pid.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Linux-Pid/distinfo b/devel/p5-Linux-Pid/distinfo
new file mode 100644
index 000000000000..0d8b932bdcfa
--- /dev/null
+++ b/devel/p5-Linux-Pid/distinfo
@@ -0,0 +1,3 @@
+MD5 (Linux-Pid-0.03.tar.gz) = e5595654b51070c1f2e7b503beaca093
+SHA256 (Linux-Pid-0.03.tar.gz) = 1d90bb098ef865aec115ac760fe7146e70ba8ce420277791b1e1b56fb1616fc5
+SIZE (Linux-Pid-0.03.tar.gz) = 2277
diff --git a/devel/p5-Linux-Pid/pkg-descr b/devel/p5-Linux-Pid/pkg-descr
new file mode 100644
index 000000000000..b8ae95d398d2
--- /dev/null
+++ b/devel/p5-Linux-Pid/pkg-descr
@@ -0,0 +1,12 @@
+Why should one use a module to get the PID and the PPID of a process
+where there are the $$ variable and the getppid() builtin? (Not
+mentioning the equivalent POSIX::getpid() and POSIX::getppid()
+functions.)
+
+In fact, this is useful on Linux, with multithreaded programs. Linux'
+C library, using the linux thread model, returns different values of
+the PID and the PPID from different threads. (Other thread models such
+as NPTL don't have the same behaviour). This module forces perl to
+call the underlying C functions getpid() and getppid().
+
+WWW: http://search.cpan.org/dist/Linux-Pid/
diff --git a/devel/p5-Linux-Pid/pkg-plist b/devel/p5-Linux-Pid/pkg-plist
new file mode 100644
index 000000000000..218cf8de32f9
--- /dev/null
+++ b/devel/p5-Linux-Pid/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/Linux/Pid.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux/Pid/.packlist
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux/Pid/Pid.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux/Pid/Pid.so
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux/Pid
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Linux
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Linux