mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
597afc47ba
With hat: portmgr Sponsored by: Absolight
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
# Created by: Oliver Eikemeier
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tenshi
|
|
PORTVERSION= 0.15
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://dev.inversepath.com/tenshi/
|
|
|
|
MAINTAINER= jadawin@FreeBSD.org
|
|
COMMENT= Tenshi is a log monitoring program, designed to watch multiple logs
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/gtail:sysutils/coreutils \
|
|
p5-IO-BufferedSelect>=0:devel/p5-IO-BufferedSelect
|
|
|
|
USES= perl5
|
|
USE_PERL5= run build patch
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
USE_RC_SUBR= tenshi
|
|
SUB_LIST= PERL=${PERL}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PLIST_FILES= bin/tenshi etc/tenshi.conf.sample man/man8/tenshi.8.gz
|
|
|
|
PORTDOCS= README Changelog
|
|
|
|
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 ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/tenshi.conf ${STAGEDIR}${PREFIX}/etc/tenshi.conf.sample
|
|
${INSTALL_MAN} ${WRKSRC}/tenshi.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|