1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Add p5-Proc-PID-File 1.24, a module to manage process id files.

PR:		ports/65545
Submitted by:	Lars Thegler <lars@thegler.dk>
This commit is contained in:
Mathieu Arnold 2004-05-06 12:25:51 +00:00
parent 74e3abdd2d
commit 00337b7217
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108544
5 changed files with 51 additions and 0 deletions

View File

@ -861,6 +861,7 @@
SUBDIR += p5-Pod-Coverage
SUBDIR += p5-Proc-Background
SUBDIR += p5-Proc-Daemon
SUBDIR += p5-Proc-PID-File
SUBDIR += p5-Proc-PIDFile
SUBDIR += p5-Proc-ProcessTable
SUBDIR += p5-Proc-Reliable

View File

@ -0,0 +1,32 @@
# New ports collection makefile for: p5-Proc-PID-File
# Date created: Apr 13 2004
# Whom: Lars Thegler <lars@thegler.dk>
#
# $FreeBSD$
PORTNAME= Proc-PID-File
PORTVERSION= 1.24
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Proc
PKGNAMEPREFIX= p5-
MAINTAINER= lars@thegler.dk
COMMENT= A module to manage process id files
PERL_CONFIGURE= yes
MAN3= Proc::PID::File.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} <= 500503
post-patch:
@${PERL} -pi -e '$$_ = "" if /no warnings/' ${WRKSRC}/File.pm
# make PREFIX-clean under perl 5.005_03
post-configure:
@${PERL} -pi -e 's,/usr/local/,\$$(PREFIX)/,g' ${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (Proc-PID-File-1.24.tar.gz) = 90b636492ae72def975a9ef9cac90fda
SIZE (Proc-PID-File-1.24.tar.gz) = 12214

View File

@ -0,0 +1,9 @@
This Perl module is useful for writers of daemons and other processes
that need to tell whether they are already running, in order to
prevent multiple process instances. The module accomplishes this
via *nix-style pidfiles, which are files that store a process
identifier.
Inspired by Proc::PID_File, but with a much simpler interface.
WWW: http://search.cpan.org/dist/Proc-PID-File/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/Proc/PID/File.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Proc/PID/File/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Proc/PID/File
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Proc/PID 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Proc 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Proc/PID 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Proc 2>/dev/null || true