Skip to content

Commit

Permalink
devel/p5-AnyEvent-Fork: Add p5-AnyEvent-Fork 1.31
Browse files Browse the repository at this point in the history
AnyEvent::Fork allows you to create new processes, without actually forking them
from your current process (avoiding the problems of forking), but preserving
most of the advantages of fork.

It can be used to create new worker processes or new independent subprocesses
for short- and long-running jobs, process pools (e.g. for use in pre-forked
servers) but also to spawn new external processes (such as CGI scripts from a
web server), which can be faster (and more well behaved) than using fork+exec in
big processes.

WWW: https://metacpan.org/dist/AnyEvent-Fork
  • Loading branch information
sunpoet committed Sep 21, 2021
1 parent ece0c9b commit d35afbe
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -1720,6 +1720,7 @@
SUBDIR += p5-AnyEvent-DBI-Abstract
SUBDIR += p5-AnyEvent-DBus
SUBDIR += p5-AnyEvent-Filesys-Notify
SUBDIR += p5-AnyEvent-Fork
SUBDIR += p5-AnyEvent-Gearman
SUBDIR += p5-AnyEvent-Graphite
SUBDIR += p5-AnyEvent-I3
Expand Down
26 changes: 26 additions & 0 deletions devel/p5-AnyEvent-Fork/Makefile
@@ -0,0 +1,26 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>

PORTNAME= AnyEvent-Fork
PORTVERSION= 1.31
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Create new worker processes like fork()

LICENSE= ART10 GPLv1+
LICENSE_COMB= dual

BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= p5-AnyEvent>=6,1:devel/p5-AnyEvent \
p5-IO-FDPass>=0.2:devel/p5-IO-FDPass \
p5-Proc-FastSpawn>=0.1:devel/p5-Proc-FastSpawn \
p5-common-sense>=3.6:devel/p5-common-sense

USES= perl5
USE_PERL5= configure

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/p5-AnyEvent-Fork/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1632227456
SHA256 (AnyEvent-Fork-1.31.tar.gz) = 33bd326416159cfe6f2285484138932dcfca21439f0321b299400a9225e2c9a8
SIZE (AnyEvent-Fork-1.31.tar.gz) = 30817
11 changes: 11 additions & 0 deletions devel/p5-AnyEvent-Fork/pkg-descr
@@ -0,0 +1,11 @@
AnyEvent::Fork allows you to create new processes, without actually forking them
from your current process (avoiding the problems of forking), but preserving
most of the advantages of fork.

It can be used to create new worker processes or new independent subprocesses
for short- and long-running jobs, process pools (e.g. for use in pre-forked
servers) but also to spawn new external processes (such as CGI scripts from a
web server), which can be faster (and more well behaved) than using fork+exec in
big processes.

WWW: https://metacpan.org/dist/AnyEvent-Fork
7 changes: 7 additions & 0 deletions devel/p5-AnyEvent-Fork/pkg-plist
@@ -0,0 +1,7 @@
%%SITE_PERL%%/AnyEvent/Fork.pm
%%SITE_PERL%%/AnyEvent/Fork/Early.pm
%%SITE_PERL%%/AnyEvent/Fork/Serve.pm
%%SITE_PERL%%/AnyEvent/Fork/Template.pm
%%PERL5_MAN3%%/AnyEvent::Fork.3.gz
%%PERL5_MAN3%%/AnyEvent::Fork::Early.3.gz
%%PERL5_MAN3%%/AnyEvent::Fork::Template.3.gz

0 comments on commit d35afbe

Please sign in to comment.