1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/sysutils/tenshi/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

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
MAINTAINER= jadawin@FreeBSD.org
2004-07-21 20:03:52 +00:00
COMMENT= Tenshi is a log monitoring program, designed to watch multiple logs
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
USES= perl5
USE_PERL5= run build patch
2004-07-21 20:03:52 +00:00
NO_BUILD= yes
USE_RC_SUBR= tenshi
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
.include <bsd.port.mk>