summaryrefslogtreecommitdiff
path: root/mail/dspam
diff options
context:
space:
mode:
authorjlam <jlam>2004-08-09 07:02:59 +0000
committerjlam <jlam>2004-08-09 07:02:59 +0000
commit5d59049bab5f11427dd926dc663745a3c885f48a (patch)
treeb825cbc05337f6831181a2cd20fab3bd6520608e /mail/dspam
parentf6f1afb120862a240853f2a01cf697ab97e9dc78 (diff)
downloadpkgsrc-5d59049bab5f11427dd926dc663745a3c885f48a.tar.gz
Support building more options:
"long-usernames" allows usernames longer than allowed by the underlying operating system. This may be needed if you use DSPAM as a Postfix content filter. "spam-subject" prepends "[SPAM]" to the Subject: of messages classified as spam.
Diffstat (limited to 'mail/dspam')
-rw-r--r--mail/dspam/options.mk57
1 files changed, 36 insertions, 21 deletions
diff --git a/mail/dspam/options.mk b/mail/dspam/options.mk
index 384386abc0a..e0364d20384 100644
--- a/mail/dspam/options.mk
+++ b/mail/dspam/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2004/08/06 21:24:13 jlam Exp $
+# $NetBSD: options.mk,v 1.2 2004/08/09 07:02:59 jlam Exp $
# Global and legacy options
.if defined(DSPAM_HOMEDIR_DOTFILES) || defined(DSPAM_USE_WEBMAIL) || \
@@ -44,7 +44,8 @@ DSPAM_DELIVERY_AGENT:= ${DSPAM_DELIVERY_AGENT_ARGS}
PKG_OPTIONS_VAR= PKG_OPTIONS.dspam
PKG_SUPPORTED_OPTIONS= compress dotfiles graphs largescale \
- sig-attachment sig-headers virtualusers webmail
+ long-usernames sig-attachment sig-headers \
+ spam-subject virtualusers webmail
.include "../../mk/bsd.options.mk"
###
@@ -122,14 +123,30 @@ CONFIGURE_ARGS+= --enable-homedir-dotfiles
.endif
###
-### This option will cause DSPAM to cease all writing of signatures
-### and DSPAM headers to the message, and deliver the message in as
-### pristine format as possible. DO NOT use this switch unless the
-### original message can be presented for retraining with the ORIGINAL
-### HEADERS and NO MODIFICATIONS.
+### Enable DSPAM's graph.cgi to produce graphs of spam statistics.
###
-.if !empty(PKG_OPTIONS:Mwebmail)
-CONFIGURE_ARGS+= --enable-webmail
+.if !empty(PKG_OPTIONS:Mgraphs)
+DEPENDS+= p5-GDGraph3d-[0-9]*:../../graphics/p5-GDGraph3d
+.endif
+
+###
+### Switch for large-scale implementation. User data will be stored as
+### $DSPAM_HOME/data/u/s/user instead of $DSPAM_HOME/data/user
+###
+.if !empty(PKG_OPTIONS:Mlargescale)
+CONFIGURE_ARGS+= --enable-large-scale
+SUBST_STAGE.large= pre-configure
+SUBST_FILES.large= cgi/dspam.cgi cgi/admin.cgi
+SUBST_SED.large= \
+ -e "s|CONFIG{'LARGE_SCALE'}.*=.*0|CONFIG{'LARGE_SCALE'} = 1|"
+SUBST_MESSAGE.large= "Enabling large-scale options in DSPAM."
+.endif
+
+###
+### Support long usernames.
+###
+.if !empty(PKG_OPTIONS:Mlong-usernames)
+CONFIGURE_ARGS+= --enable-long-usernames
.endif
###
@@ -152,16 +169,10 @@ CONFIGURE_ARGS+= --enable-signature-headers
.endif
###
-### Switch for large-scale implementation. User data will be stored as
-### $DSPAM_HOME/data/u/s/user instead of $DSPAM_HOME/data/user
+### Prepend "[SPAM]" to the Subject: header of messages classified as spam.
###
-.if !empty(PKG_OPTIONS:Mlargescale)
-CONFIGURE_ARGS+= --enable-large-scale
-SUBST_STAGE.large= pre-configure
-SUBST_FILES.large= cgi/dspam.cgi cgi/admin.cgi
-SUBST_SED.large= \
- -e "s|CONFIG{'LARGE_SCALE'}.*=.*0|CONFIG{'LARGE_SCALE'} = 1|"
-SUBST_MESSAGE.large= "Enabling large-scale options in DSPAM."
+.if !empty(PKG_OPTIONS:Mspam-subject)
+CONFIGURE_ARGS+= --enable-spam-subject
.endif
###
@@ -173,10 +184,14 @@ CONFIGURE_ARGS+= --enable-virtual-users
.endif
###
-### Enable DSPAM's graph.cgi to produce graphs of spam statistics.
+### This option will cause DSPAM to cease all writing of signatures
+### and DSPAM headers to the message, and deliver the message in as
+### pristine format as possible. DO NOT use this switch unless the
+### original message can be presented for retraining with the ORIGINAL
+### HEADERS and NO MODIFICATIONS.
###
-.if !empty(PKG_OPTIONS:Mgraphs)
-DEPENDS+= p5-GDGraph3d-[0-9]*:../../graphics/p5-GDGraph3d
+.if !empty(PKG_OPTIONS:Mwebmail)
+CONFIGURE_ARGS+= --enable-webmail
.endif
###