svn commit: r454679 - in head/devel: . p5-Pthread-GetThreadId
Eugene Grosbein
eugen at FreeBSD.org
Wed Nov 22 07:52:50 UTC 2017
Author: eugen
Date: Wed Nov 22 07:52:48 2017
New Revision: 454679
URL: https://svnweb.freebsd.org/changeset/ports/454679
Log:
This is new port containing FreeBSD specific Perl5 module Pthread::GetThreadId.
It provides Perl code with access to non-portable pthread_getthreadid_np(3)
function. It may be useful for Perl code running as hook/callback functions
in embedded threaded Perl environment when code has no direct control on thread creation.
For example, rlm_perl module of FreeRADIUS that may use multiple embedded Perl
instances, so that Perl native value of threads->tid is not unique.
Added:
head/devel/p5-Pthread-GetThreadId/
head/devel/p5-Pthread-GetThreadId/Makefile (contents, props changed)
head/devel/p5-Pthread-GetThreadId/distinfo (contents, props changed)
head/devel/p5-Pthread-GetThreadId/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Wed Nov 22 07:16:51 2017 (r454678)
+++ head/devel/Makefile Wed Nov 22 07:52:48 2017 (r454679)
@@ -3096,6 +3096,7 @@
SUBDIR += p5-POSIX-strftime-Compiler
SUBDIR += p5-POSIX-strptime
SUBDIR += p5-PPerl
+ SUBDIR += p5-Pthread-GetThreadId
SUBDIR += p5-PV
SUBDIR += p5-Package-Constants
SUBDIR += p5-Package-DeprecationManager
Added: head/devel/p5-Pthread-GetThreadId/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Pthread-GetThreadId/Makefile Wed Nov 22 07:52:48 2017 (r454679)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME= Pthread-GetThreadId
+PORTVERSION= 0.01
+CATEGORIES= devel perl5
+MASTER_SITES= LOCAL/eugen \
+ http://www.grosbein.net/freebsd/distfiles/
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= eugen at FreeBSD.org
+COMMENT= Access to kernel level POSIX thread id
+
+LICENSE= ARTPERL10
+
+USES= perl5
+USE_PERL5= configure
+
+PLIST_FILES= %%SITE_ARCH%%/Pthread/GetThreadId.pm \
+ %%SITE_ARCH%%/auto/Pthread/GetThreadId/GetThreadId.so \
+ %%PERL5_MAN3%%/Pthread::GetThreadId.3.gz
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Pthread/GetThreadId/GetThreadId.so
+
+.include <bsd.port.mk>
Added: head/devel/p5-Pthread-GetThreadId/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Pthread-GetThreadId/distinfo Wed Nov 22 07:52:48 2017 (r454679)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1511335195
+SHA256 (Pthread-GetThreadId-0.01.tar.gz) = 4d17d7c28cdda548edfe6ad112daa6df491e1411b3db43accd9dc64f172ad150
+SIZE (Pthread-GetThreadId-0.01.tar.gz) = 1145
Added: head/devel/p5-Pthread-GetThreadId/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Pthread-GetThreadId/pkg-descr Wed Nov 22 07:52:48 2017 (r454679)
@@ -0,0 +1,10 @@
+Pthread::GetThreadId is FreeBSD specific Perl module
+providing single non-portable function getthreadid_np()
+that returns kernel level POSIX thread id as integer value.
+
+It may be useful for Perl code running as hook/callback functions
+in embedded threaded Perl environment when code has no direct control
+on thread creation. For example, rlm_perl module of FreeRADIUS
+that may use multiple embedded Perl instances.
+
+WWW: http://www.grosbein.net/pthread/
More information about the svn-ports-head
mailing list