1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/sysutils/logwatch/Makefile
Pawel Pekala f2b3f09421 Update to version 7.4.3
PR:		212824
Submitted by:	Trix Farrar (maintainer)
2016-09-30 19:08:22 +00:00

51 lines
1.4 KiB
Makefile

# Created by: John D. "Trix" Farrar <trix@basement.net>
# $FreeBSD$
PORTNAME= logwatch
PORTVERSION= 7.4.3
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= trix@basement.net
COMMENT= Log file analysis program
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= p5-MIME-Base64>=0:converters/p5-MIME-Base64
USES= perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= scripts/logwatch.pl
PORTDOCS= HOWTO-Customize-LogWatch README
NO_BUILD= yes
NO_ARCH= yes
MAKE_ENV+= SITE_PERL_REL=${SITE_PERL_REL}
OPTIONS_DEFINE= DOCS
pre-configure:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
post-patch:
${REINPLACE_CMD} -E \
-e "s,/usr/share/logwatch,${LOCALBASE}," \
-e "s,/etc/logwatch,${ETCDIR}," \
-e 's,^eval "use lib.*,,' \
-e "s,.BaseDir/lib,${LIBEXECDIR}," \
-e 's,BaseDir/dist.conf,ConfigDir/defaults,' \
-e 's,BaseDir/default.conf,ConfigDir/defaults,' \
-e 's,ConfigDir/conf,ConfigDir,' \
-e "s,BaseDir/scripts/([^/]*)/,BaseDir/libexec/${PORTNAME}/defaults/\1/," \
-e "s,ConfigDir/scripts/([^/]*)/,BaseDir/libexec/${PORTNAME}/\1/," \
${WRKSRC}/scripts/logwatch.pl
${REINPLACE_CMD} -E \
-e "s,/var/cache/logwatch,${LOCALBASE}/var/${PORTNAME}," \
${WRKSRC}/conf/logwatch.conf
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/HOWTO-Customize-LogWatch ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>