aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/spamstats/Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/mail/spamstats/Makefile b/mail/spamstats/Makefile
index a8c0a8c3f1cf..8a0546119ee5 100644
--- a/mail/spamstats/Makefile
+++ b/mail/spamstats/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: spamstats
-# Date created: 14 March 2003
-# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
-#
+# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= spamstats
PORTVERSION= 0.6c
@@ -27,19 +23,15 @@ PLIST_FILES= bin/spamstats.pl
post-patch:
@${PERL} -pi.bak -e 's,/mail.log,/maillog,g' ${WRKSRC}/${PORTNAME}${PORTVERSION}.pl
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}${PORTVERSION}.pl ${PREFIX}/bin/${PORTNAME}.pl
-.ifndef (NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
-.include <bsd.port.pre.mk>
-
-.if ${PERL_LEVEL} < 500903
-RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>