freebsd-ports/devel/p5-POE-Component-Daemon/Makefile
Andrew Pantyukhin b48f298bb1 Add port: devel/p5-POE-Component-Daemon
Dealing with all the little details of a forking daemon can be annoying and
hard.  POE::Component::Daemon encapsulates all the details into one place
and (hopefully) gets them right.

WWW: http://search.cpan.org/dist/POE-Component-Daemon/

PR:		ports/93805
Submitted by:	Zach Thompson <hideo@lastamericanempire.com>
Approved by:	krion (mentor)
2006-05-21 14:41:26 +00:00

49 lines
1.2 KiB
Makefile

# New ports collection makefile for: devel/p5-POE-Component-Daemon
# Date created: 24 February 2006
# Whom: Zach Thompson <hideo@lastamericanempire.com>
#
# $FreeBSD$
#
PORTNAME= POE-Component-Daemon
PORTVERSION= 0.10
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= POE
PKGNAMEPREFIX= p5-
MAINTAINER= hideo@lastamericanempire.com
COMMENT= Handles all the housework for a daemon in POE
BUILD_DEPENDS= ${SITE_PERL}/POE/API/Peek.pm:${PORTSDIR}/devel/p5-POE-API-Peek \
${SITE_PERL}/POE.pm:${PORTSDIR}/devel/p5-POE
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= POE::Component::Daemon.3
.include <bsd.port.pre.mk>
PORTDOCS= *
.if ${PERL_LEVEL} < 500601
IGNORE= perl 5.6.1 or newer required. Install lang/perl5 or lang/perl5.8 and try again
.endif
post-install:
@${MKDIR} ${EXAMPLESDIR}
@for i in ${WRKSRC}/*forking; do \
${PERL} -pi -e '$$_ = undef if m{use FindBin}o;' \
-e 's{.FindBin::Dir(.+)$$}{/tmp$$1\nwarn "Logging to \$$logfile\\n";}o' $${i}; \
${INSTALL_SCRIPT} $${i} ${EXAMPLESDIR}; \
done
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@for i in ${WRKSRC}/*.png; do \
${INSTALL_DATA} $${i} ${DOCSDIR}; \
done
.endif
.include <bsd.port.post.mk>