freebsd-ports/sysutils/tenshi/Makefile
Renato Botelho 8c2d01e97b - Update to 0.4. This version adds several features and fixes a few bugs: [1]
* added uid, gid options for setting effective UID, GID
   * added colourization of debug messages
   * added filter, filterargs options for report pre-processing
   * added [pager:]<mail_to> syntax for sending pager friendly reports
   * added mailtimeout option
   * fixed tail, tailargs incorrectly being treated as dynamic options
- Use USE_RC_SUBR=script and remove 2 lines pkg-plist [2]

PR:		ports/95332 [1]
Submitted by:	maintainer [1], garga [2]
Approved by:	maintainer [2]
2006-04-05 19:37:00 +00:00

58 lines
1.4 KiB
Makefile

# New ports collection makefile for: tenshi
# Date created: 21 Jul 2004
# Whom: Oliver Eikemeier
#
# $FreeBSD$
#
PORTNAME= tenshi
PORTVERSION= 0.4
CATEGORIES= sysutils
MASTER_SITES= http://dev.gentoo.org/~lcars/%SUBDIR%/
MASTER_SITE_SUBDIR= tenshi
MAINTAINER= laszlof@vonostingroup.com
COMMENT= Tenshi is a log monitoring program, designed to watch multiple logs
RUN_DEPENDS= ${LOCALBASE}/bin/gtail:${PORTSDIR}/sysutils/coreutils
MAN8= tenshi.8
USE_PERL5= yes
NO_BUILD= yes
USE_RC_SUBR= tenshi.sh
SUB_LIST= PERL=${PERL}
PLIST_FILES= bin/tenshi etc/tenshi.conf.sample
PORTDOCS= README Changelog
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires are least Perl 5.6
.endif
.if ${PERL_LEVEL} < 500800
RUN_DEPENDS+= ${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net
.endif
post-patch:
@${PERL5} -pi.bak -e ' \
s"/usr/bin/perl"${PERL}" if $$. == 1; \
s"/etc/tenshi/tenshi\.conf"${PREFIX}/etc/tenshi.conf"; \
s"/usr/bin/tail"${LOCALBASE}/bin/gtail"; \
' ${WRKSRC}/tenshi
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/tenshi ${DESTDIR}${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/tenshi.conf ${DESTDIR}${PREFIX}/etc/tenshi.conf.sample
@${INSTALL_MAN} ${WRKSRC}/tenshi.8 ${DESTDIR}${MAN8PREFIX}/man/man8
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@for doc in ${PORTDOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$$doc ${DESTDIR}${DOCSDIR}; \
done
.endif
.include <bsd.port.post.mk>