freebsd-ports/mail/amavis-logwatch/Makefile
Jason Helfman 0ab316553c - Update to 1.51.01
- Add LICENSE_FILE

PR:	ports/164133
Submitted by: maintainer ( Masaki TAGAWA <masaki at club.kyutech.ac.jp>	)
Approved by:	crees, rene (mentors, implicit)
2012-01-15 22:34:13 +00:00

53 lines
1.3 KiB
Makefile

# New ports collection makefile for: amavis-logwatch
# Date created: 2011-11-01
# Whom: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
#
# $FreeBSD$
#
PORTNAME= amavis-logwatch
PORTVERSION= 1.51.01
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
USE_PERL5_RUN= yes
NO_BUILD= 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>