1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/mail/amavis-logwatch/Makefile

52 lines
1.3 KiB
Makefile

# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
# $FreeBSD$
PORTNAME= amavis-logwatch
PORTVERSION= 1.51.02
CATEGORIES= mail
MASTER_SITES= SF/logreporters/${PORTNAME}/release/${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= masaki@club.kyutech.ac.jp
COMMENT= Amavisd-new log parser
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
PORTDOCS= Bugs Changes README
PORTEXAMPLES= ${PORTNAME}.conf
MAN1= ${PORTNAME}.1
USES= perl5
USE_PERL5= run
NO_BUILD= yes
NO_STAGE= yes
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e '\
s!/usr/local/etc!${ETCDIR}! \
' ${PORTNAME} ${PORTNAME}.1 README
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
@${CP} ${WRKSRC}/${PORTNAME}.conf ${WRKSRC}/${PORTNAME}.conf.sample
@${MKDIR} ${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${ETCDIR}
post-install:
@if [ ! -f ${ETCDIR}/${PORTNAME}.conf ]; then \
${CP} -p ${ETCDIR}/${PORTNAME}.conf.sample ${ETCDIR}/${PORTNAME}.conf; \
fi
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>