pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/dspam Support building more options:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/04a353153fc8
branches:  trunk
changeset: 479229:04a353153fc8
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Aug 09 07:02:59 2004 +0000

description:
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:

 mail/dspam/options.mk |  57 ++++++++++++++++++++++++++++++++------------------
 1 files changed, 36 insertions(+), 21 deletions(-)

diffs (95 lines):

diff -r 6358898be670 -r 04a353153fc8 mail/dspam/options.mk
--- a/mail/dspam/options.mk     Mon Aug 09 06:21:24 2004 +0000
+++ b/mail/dspam/options.mk     Mon Aug 09 07:02:59 2004 +0000
@@ -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 @@
 
 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 @@
 .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: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:Mwebmail)
-CONFIGURE_ARGS+=       --enable-webmail
+.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 @@
 .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 @@
 .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
 
 ###



Home | Main Index | Thread Index | Old Index