aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2013-01-29 19:38:30 +0000
committerChris Rees <crees@FreeBSD.org>2013-01-29 19:38:30 +0000
commit323ceaa494949540a7bcd6e5ed3b40a2e675c488 (patch)
tree0edf0188c1685b85a389f97bfb640d114b21d614 /mail
parentb978b03bf61014e531b64c1af10ed4bf469aa4d7 (diff)
downloadports-323ceaa494949540a7bcd6e5ed3b40a2e675c488.tar.gz
ports-323ceaa494949540a7bcd6e5ed3b40a2e675c488.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/mailscanner/Makefile63
-rw-r--r--mail/mailscanner/files/CHANGES.port7
2 files changed, 36 insertions, 34 deletions
diff --git a/mail/mailscanner/Makefile b/mail/mailscanner/Makefile
index 0d03f71d1113..551158dee933 100644
--- a/mail/mailscanner/Makefile
+++ b/mail/mailscanner/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: MailScanner
-# Date created: 17 March 2003
-# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
-#
+# Created by: Jan-Peter Koopmann <j.koopmann@seceidos.de>
# $FreeBSD$
-#
PORTNAME= MailScanner
PORTVERSION= 4.84.5
@@ -40,11 +36,6 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} \
tnef:${PORTSDIR}/converters/tnef \
wget:${PORTSDIR}/ftp/wget
-OPTIONS= SPAMASSASSIN "Install SpamAssassin" on \
- CLAMAV "Install ClamAV" on \
- CLAMAVMODULE "Install ClamAV Module" off \
- BDC "Install BitDefender" off
-
CONFLICTS= MailScanner-devel-[0-9]*
PATCHLEVEL= 2
@@ -63,41 +54,32 @@ SUB_LIST= DATADIR=${DATADIR} \
MAN8= MailScanner.8
MLINKS= MailScanner.8 mailscanner.8
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= SPAMASSASSIN CLAMAV CLAMAVMODULE BDC
+SPAMASSASSIN_DESC= Install SpamAssassin
+CLAMAV_DESC= Install ClamAV
+CLAMAVMODULE_DESC= Install ClamAV Module
+BDC_DESC= Install BitDefender
-.if ${PERL_LEVEL} < 500903
-BUILD_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
-.endif
+OPTIONS_DEFAULT= SPAMASSASSIN CLAMAV
-.if defined(WITH_SPAMASSASSIN)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSPAMASSASSIN}
RUN_DEPENDS+= spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin
PLIST_SUB+= SPAMASSASSIN=""
.else
PLIST_SUB+= SPAMASSASSIN="@comment "
.endif
-# backwards compatibility
-.if defined(NO_SPAMASSASSIN_SYMLINK)
-WITHOUT_SPAMASSASSIN_SYMLINK=${NO_SPAMASSASSIN_SYMLINK}
-.endif
-
-.if defined(WITHOUT_SPAMASSASSIN_SYMLINK) || defined(WITHOUT_SPAMASSASSIN)
-PLIST_SUB+= SPAMASSASSIN_SYMLINK="@comment "
-SUB_LIST+= WITHOUT_SPAMASSASSIN_SYMLINK=yes
-.else
-PLIST_SUB+= SPAMASSASSIN_SYMLINK=""
-SUB_LIST+= WITHOUT_SPAMASSASSIN_SYMLINK=no
-.endif
-
-.if !defined(WITHOUT_CLAMAV)
+.if ${PORT_OPTIONS:MCLAMAV}
RUN_DEPENDS+= clamscan:${PORTSDIR}/security/clamav
.endif
-.if defined(WITH_CLAMAVMODULE)
+.if ${PORT_OPTIONS:MCLAMAVMODULE}
RUN_DEPENDS+= p5-Mail-ClamAV>=0:${PORTSDIR}/mail/p5-Mail-ClamAV
.endif
-.if defined(WITH_CLAMAV)||defined(WITH_CLAMAVMODULE)
+.if ${PORT_OPTIONS:MCLAMAV} || ${PORT_OPTIONS:MCLAMAVMODULE}
RUN_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip \
unrar:${PORTSDIR}/archivers/unrar \
zoo:${PORTSDIR}/archivers/zoo \
@@ -106,10 +88,23 @@ RUN_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip \
lha:${PORTSDIR}/archivers/lha
.endif
-.if defined(WITH_BDC)
+.if ${PORT_OPTIONS:MBDC}
RUN_DEPENDS+= bdc:${PORTSDIR}/security/bdc
.endif
+# backwards compatibility
+.if defined(NO_SPAMASSASSIN_SYMLINK)
+WITHOUT_SPAMASSASSIN_SYMLINK=${NO_SPAMASSASSIN_SYMLINK}
+.endif
+
+.if defined(WITHOUT_SPAMASSASSIN_SYMLINK) || ! ${PORT_OPTIONS:MSPAMASSASSIN}
+PLIST_SUB+= SPAMASSASSIN_SYMLINK="@comment "
+SUB_LIST+= WITHOUT_SPAMASSASSIN_SYMLINK=yes
+.else
+PLIST_SUB+= SPAMASSASSIN_SYMLINK=""
+SUB_LIST+= WITHOUT_SPAMASSASSIN_SYMLINK=no
+.endif
+
DOC_FILES= INSTALL.FreeBSD README
ETC_FILES= MailScanner.conf filename.rules.conf \
archives.filename.rules.conf archives.filetype.rules.conf \
@@ -270,7 +265,7 @@ do-install:
&& ${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_SCRIPT} {} ${PREFIX}/lib/MailScanner/MailScanner/{} \;
@${ECHO_MSG} " [DONE]"
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing docs and manpage..."
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${DOCSDIR}
@@ -293,4 +288,4 @@ post-install:
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/mail/mailscanner/files/CHANGES.port b/mail/mailscanner/files/CHANGES.port
index 2613fa18af80..19cc7d10af8a 100644
--- a/mail/mailscanner/files/CHANGES.port
+++ b/mail/mailscanner/files/CHANGES.port
@@ -1,3 +1,10 @@
+Version 4.84.5_3 (not bumped)
+================
+- Use OptionsNG
+- Remove deprecated header information
+- Removed check for perl versions that are deprecated to install and
+ scheduled for removal from the ports tree.
+
Version 4.84.5_3
================
- Added FreeBSD required mktemp options