2013-09-20 21:59:12 +02:00
|
|
|
# Created by: Alexander Moisseev <moiseev@mezonplus.ru>
|
2011-08-23 05:18:46 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= postfix-logwatch
|
2014-09-04 15:24:54 +02:00
|
|
|
PORTVERSION= 1.40.03
|
2011-08-23 05:18:46 +02:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= SF/logreporters/${PORTNAME}/release/${PORTVERSION}
|
|
|
|
|
2014-08-26 13:11:18 +02:00
|
|
|
MAINTAINER= danilo@FreeBSD.org
|
2011-08-23 05:18:46 +02:00
|
|
|
COMMENT= Postfix MTA log parser
|
|
|
|
|
2012-01-12 16:08:38 +01:00
|
|
|
LICENSE= MIT
|
2011-10-03 14:39:27 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2011-08-23 05:18:46 +02:00
|
|
|
|
|
|
|
PORTDOCS= Bugs Changes README
|
|
|
|
PORTEXAMPLES= ${PORTNAME}.conf ${PORTNAME}.conf-topn
|
|
|
|
|
2014-07-29 21:11:51 +02:00
|
|
|
USES= perl5 shebangfix tar:tgz
|
2013-09-04 14:28:16 +02:00
|
|
|
USE_PERL5= run
|
2011-08-23 05:18:46 +02:00
|
|
|
NO_BUILD= yes
|
2014-07-10 21:12:03 +02:00
|
|
|
SHEBANG_FILES= ${PORTNAME}
|
|
|
|
|
2014-07-15 18:14:15 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2011-08-23 05:18:46 +02:00
|
|
|
|
|
|
|
post-patch:
|
2014-07-15 18:14:15 +02:00
|
|
|
@(cd ${WRKSRC} && \
|
2014-07-17 13:21:57 +02:00
|
|
|
${REINPLACE_CMD} -e 's!/usr/local/etc!${ETCDIR}!' \
|
2014-07-15 18:14:15 +02:00
|
|
|
${PORTNAME} ${PORTNAME}.1 README)
|
2011-08-23 05:18:46 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-07-10 21:12:03 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
|
2011-08-23 05:18:46 +02:00
|
|
|
|
2016-07-19 13:04:13 +02:00
|
|
|
post-install-DOCS-on:
|
2014-07-10 21:12:03 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-07-15 18:14:15 +02:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
2016-07-19 13:04:13 +02:00
|
|
|
post-install-EXAMPLES-on:
|
2014-07-10 21:12:03 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-07-15 18:14:15 +02:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR})
|
2011-08-23 05:18:46 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|