freebsd-ports/security/swatch/Makefile
Jun Kuriyama 163c72876f - Use "tail -F" rather than "tail -f".
- Add rc.subr script to allow invoking multiple instance of swatch
  daemon at startup time.

Approved by:	maintainer
2004-11-17 01:42:53 +00:00

47 lines
1.1 KiB
Makefile

# New ports collection makefile for: swatch
# Date created: May 2 97
# Whom: jfitz
#
# $FreeBSD$
#
PORTNAME= swatch
PORTVERSION= 3.1.1
PORTREVISION= 1
CATEGORIES= security sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= swatch
MAINTAINER= joseph@randomnetworks.com
COMMENT= The Simple WATCHer and filter
BUILD_DEPENDS= ${BUILD_DEPENDS_56} \
${SITE_PERL}/Date/Format.pm:${PORTSDIR}/devel/p5-TimeDate \
${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \
${SITE_PERL}/${PERL_ARCH}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc
PERL_CONFIGURE= yes
CONFIGURE_ARGS= INSTALLMAN1DIR=${PREFIX}/man/man1
USE_RC_SUBR= yes
MAN1= swatch.1
MAN3= Swatch::Actions.3 Swatch::Throttle.3
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
post-patch:
${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/swatch.sh > ${WRKSRC}/swatch.sh
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/swatch.sh ${PREFIX}/etc/rc.d
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS_56= \
${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
.endif
RUN_DEPENDS= ${BUILD_DEPENDS}
.include <bsd.port.post.mk>