2012-11-16 11:37:02 +00:00
|
|
|
# Created by: Oliver Eikemeier
|
2004-07-21 20:03:52 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tenshi
|
2012-11-16 11:37:02 +00:00
|
|
|
PORTVERSION= 0.14
|
2004-07-21 20:03:52 +00:00
|
|
|
CATEGORIES= sysutils
|
2008-04-16 22:41:35 +00:00
|
|
|
MASTER_SITES= http://dev.inversepath.com/tenshi/
|
2004-07-21 20:03:52 +00:00
|
|
|
|
2008-03-12 13:27:28 +00:00
|
|
|
MAINTAINER= jadawin@FreeBSD.org
|
2004-07-21 20:03:52 +00:00
|
|
|
COMMENT= Tenshi is a log monitoring program, designed to watch multiple logs
|
|
|
|
|
2008-11-21 13:56:25 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/gtail:${PORTSDIR}/sysutils/coreutils \
|
|
|
|
p5-IO-BufferedSelect>=0:${PORTSDIR}/devel/p5-IO-BufferedSelect
|
2004-07-21 20:03:52 +00:00
|
|
|
|
2013-07-31 10:17:10 +00:00
|
|
|
USES= perl5
|
|
|
|
USE_PERL5= run build patch
|
2004-07-21 20:03:52 +00:00
|
|
|
NO_BUILD= yes
|
2012-08-05 23:19:36 +00:00
|
|
|
USE_RC_SUBR= tenshi
|
2006-04-05 19:37:00 +00:00
|
|
|
SUB_LIST= PERL=${PERL}
|
2004-07-21 20:03:52 +00:00
|
|
|
|
2013-11-08 13:35:39 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
PLIST_FILES= bin/tenshi etc/tenshi.conf.sample man/man8/tenshi.8.gz
|
2004-07-21 20:03:52 +00:00
|
|
|
|
|
|
|
PORTDOCS= README Changelog
|
|
|
|
|
2013-11-08 13:35:39 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2004-07-21 20:03:52 +00:00
|
|
|
post-patch:
|
|
|
|
@${PERL5} -pi.bak -e ' \
|
|
|
|
s"/usr/bin/perl"${PERL}" if $$. == 1; \
|
2013-11-08 13:35:39 +00:00
|
|
|
s"/etc/tenshi/tenshi\.conf"${STAGEDIR}${PREFIX}/etc/tenshi.conf"; \
|
2004-07-21 20:03:52 +00:00
|
|
|
s"/usr/bin/tail"${LOCALBASE}/bin/gtail"; \
|
|
|
|
' ${WRKSRC}/tenshi
|
|
|
|
|
|
|
|
do-install:
|
2013-11-08 13:35:39 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tenshi ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tenshi.conf ${STAGEDIR}${PREFIX}/etc/tenshi.conf.sample
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tenshi.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2004-07-21 20:03:52 +00:00
|
|
|
.endif
|
|
|
|
|
2009-07-22 16:27:08 +00:00
|
|
|
.include <bsd.port.mk>
|