pkgsrc/mail/tmda/Makefile

101 lines
2.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.52 2014/05/09 07:37:10 wiz Exp $
DISTNAME= tmda-1.1.12
PKGREVISION= 5
CATEGORIES= mail python
2007-02-26 04:48:53 +01:00
MASTER_SITES= http://tmda.sourceforge.net/ftp/releases/
Update to 1.1.9 (approved by kim@). From the changelog: * New feature courtesy of Mark Horn. ACTION_EXPIRED_DATED has been extended to support handling multiple ages of dated messages. So you could for example 'bounce' mail to dated addresses that have been expired for more than a week, 'hold' if longer than a month, and 'drop' if over a year, while still setting the default behavior to 'confirm'. For more information and an illustrative example, see http://wiki.tmda.net/ConfigurationVariables#ACTION_EXPIRED_DATED * TMDA's internal copy of the Python email package has been upgraded to v4.0.1. * The bin/tmda-* programs have been revamped to use Python's new 'optparse' library. * TMDA can now optionally store unconfirmed messages in a "Maildir" rather than in TMDA's custom pending queue format. This allows you to use any mail reading program that supports Maildir to browse or search your pending queue, rather than the 'tmda-pending' and 'tmda-cgi' programs, though the latter will still work. * tmda-filter has a new command-line option, '-e/--environ' which you can use to add a VAR=value pair to the environment. One example use of this is to allow TMDA to be setup as a Postfix transport. Contributed by Bernard Johnson. * tmda-filter will defer incoming deliveries if the sticky bit is set on your home directory (as determined by the $HOME variable). This allows you to safely edit the contents of ~/.tmda/ on a live system if you need to. * tmda-ofmipd now has "one-session" mode through the '--one-session' command-line option, courtesy of Stephen Warren. This allows you to use xinetd or tcpserver, possibly in conjunction with stunnel, to spawn tmda-ofmipd, rather than having tmda-ofmipd bind to a port and accept connections on its own. * The new 'dot-tmda' directory in contrib contains a working ~/.tmda/ structure that can be used with only a few changes. See the README in that directory for more info. Not documented yet outside of the README, but this might help new TMDA users get started quicker. * Some of the tmda-* programs will now run on native win32 (tmda-address, tmda-check-address, tmda-pending, and tmda-keygen). * tmda-ofmipd has a new option (--pure-proxy) that can proxy mail for non-TMDA users in addition to TMDA users. This might be useful if you run a mixed environment, and want to use tmda-ofmipd for everyone. See `tmda-ofmipd --help' for more on this option. * New feature from David Bremner. Add 'shell=' and 'python=' tag actions to the outgoing filter. This allows you to add dynamic/shell escaped headers from the outgoing filter file. For example usage, see the TMDA/Hashcash HOWTO I've prepared at http://wiki.tmda.net/TmdaHashCashHowto * The template system has been reorganized to simplify things for users of multi-lingual templates among others. See http://wiki.tmda.net/TemplateHowto and the UPGRADE notes below. * Messages are now simply deleted from your pending queue once they are confirmed or released rather than being renamed with a '3,C' or '3,R' suffix. This provides simpler, more intuitive behavior and decreased storage requirements. * Fixed a bug in TMDAINJECT that caused Message-ID and Date headers to differ when sending to multiple recipients. * Fixes to the tmda.spec file that should allow RPMs to be built with Python 2.3.x. * Tilde expansion is now done automatically for variables in /etc/tmdarc and ~/.tmda/config, so you no longer have to use os.path.expanduser() to do this yourself. e.g, TEMPLATE_DIR = "~/.tmda/templates" now ``just works''. * New 'whitelist' behavior for tmda-pending and tmda-cgi, controlled by http://wiki.tmda.net/ConfigurationVariables#PENDING_WHITELIST_RELEASE * A new 'pipe-headers' incoming filter file source. Identical to 'pipe' except that it only pipes the headers to the program, instead of the headers + body. This should offer greater performance and reliability when processing the message body isn't required. * A new feature to add Mail-Followup-To headers from tmda-sendmail or tmda-ofmipd to messages. See http://wiki.tmda.net/ConfigurationVariables#MAIL_FOLLOWUP_TO
2006-11-07 08:42:09 +01:00
MASTER_SITES+= ftp://tmda.net/pub/tmda/releases/
EXTRACT_SUFX= .tgz
MAINTAINER= schmonz@NetBSD.org
Update to 0.58. Changes to the package itself: - Update MASTER_SITES and HOMEPAGE. - Change iterator variables to something other than "file" to placate pkglint. From the changelog: * 'keyword' addresses now use an identifying string like 'dated' and 'sender' addresses do. 'keyword' by default, and customizable via TAGS_KEYWORD. This means you'll need to generate new addresses using `tmda-address', as your old ones will no longer work. If you want your old keyword addresses to be accepted until you can transition to the new format, you can add entries for them in your FILTER_INCOMING. e.g, to jason-promos.8d06eu@mastaler.com ok to jason-stupid_promo.289j76@mastaler.com ok * RECIPIENT_DELIMITER is no longer allowed to be part of the keyword in a keyword address. `?' will be substituted for it when a new keyword address is created. * The format for a confirmation request address is now: RECIPIENT-confirm-TIMESTAMP.PID.HMAC, instead of RECIPIENT-confirm-accept.TIMESTAMP.PID.HMAC The new format is detailed in CRYPTO. Because of this change, it's recommended that you run tmda-pending to make sure your queue is free of legitimate messages, since the old confirmation addresses will no longer work. If you are unable to do this and need temporary backward compatibility with the old format, there is a patch against 0.56 available at: <URL:http://mla.libertine.org/tmda-users/200206/msg00193.html> * Confirmed messages are now reinjected to the original envelope recipient address (RECIPIENT) rather than to: RECIPIENT-confirm-done.TIMESTAMP.PID.HMAC See CRYPTO for more details. * TMDA now sends outgoing mail by handing it off to an SMTP server instead of the /usr/sbin/sendmail program. By default it will use the standard SMTP port (25) on the local host. You can modify this by setting the "SMTPHOST" variable in your tmdarc. See TMDA/Defaults.py for further information. * tmdarc variable SENDMAIL has been renamed SENDMAIL_PROGRAM, but is irrelevant unless OUTGOINGMAIL = "sendmail". * tmdarc variable PURGED_HEADERS now lists "Bcc:" and "Resent-Bcc" by default. If you define this variable in your tmdarc, be sure to add these two headers. * CRYPT_KEY should be removed from ~/.tmdarc or ~/.tmda/config. Your secret key is now read from CRYPT_KEY_FILE, which defaults to ~/.tmda/crypt_key. To make this conversion, move your existing CRYPT_KEY to ~/.tmda/crypt_key, but without the double-quotes. e.g, if CRYPT_KEY = "df7a18a8d95f02ff94bf6463a8ec214cf20cb9e8" ~/.tmda/crypt_key should contain: df7a18a8d95f02ff94bf6463a8ec214cf20cb9e8 * ~/.tmdarc and ~/.tmda/config are no longer checked for file permissions. Instead, make sure ~/.tmda/crypt_key is chmod 400 or 600 (or 640 if ALLOW_MODE_640 = 1). * An exception is no longer be raised if ~/.tmdarc or ~/.tmda/config is missing. However, a ~/.tmda/crypt_key file is required. * tmda-keygen now outputs an unquoted key instead of a CRYPT_KEY line. * Template variables dated_cookie_address and sender_cookie_address were replaced with dated_recipient_address and sender_recipient_address, which are based on the RECIPIENT address.
2002-07-23 22:05:47 +02:00
HOMEPAGE= http://tmda.net/
COMMENT= Python-based SPAM reduction system
REPLACE_PYTHON= ${TMDA_PROGRAMS}
PY_PATCHPLIST= yes
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 1.1.12
PKG_SYSCONFSUBDIR= ${PKGBASE}
PKG_GROUPS= tofmipd
PKG_USERS= tofmipd:tofmipd
PKG_GECOS.tofmipd= TMDA ofmipd User
RCD_SCRIPTS= tofmipd
FILES_SUBST+= PYTHONBIN=${PYTHONBIN:Q}
SHAREDIR= share/${PKGBASE}
DOCDIR= share/doc/${PKGBASE}
Update to 1.1.9 (approved by kim@). From the changelog: * New feature courtesy of Mark Horn. ACTION_EXPIRED_DATED has been extended to support handling multiple ages of dated messages. So you could for example 'bounce' mail to dated addresses that have been expired for more than a week, 'hold' if longer than a month, and 'drop' if over a year, while still setting the default behavior to 'confirm'. For more information and an illustrative example, see http://wiki.tmda.net/ConfigurationVariables#ACTION_EXPIRED_DATED * TMDA's internal copy of the Python email package has been upgraded to v4.0.1. * The bin/tmda-* programs have been revamped to use Python's new 'optparse' library. * TMDA can now optionally store unconfirmed messages in a "Maildir" rather than in TMDA's custom pending queue format. This allows you to use any mail reading program that supports Maildir to browse or search your pending queue, rather than the 'tmda-pending' and 'tmda-cgi' programs, though the latter will still work. * tmda-filter has a new command-line option, '-e/--environ' which you can use to add a VAR=value pair to the environment. One example use of this is to allow TMDA to be setup as a Postfix transport. Contributed by Bernard Johnson. * tmda-filter will defer incoming deliveries if the sticky bit is set on your home directory (as determined by the $HOME variable). This allows you to safely edit the contents of ~/.tmda/ on a live system if you need to. * tmda-ofmipd now has "one-session" mode through the '--one-session' command-line option, courtesy of Stephen Warren. This allows you to use xinetd or tcpserver, possibly in conjunction with stunnel, to spawn tmda-ofmipd, rather than having tmda-ofmipd bind to a port and accept connections on its own. * The new 'dot-tmda' directory in contrib contains a working ~/.tmda/ structure that can be used with only a few changes. See the README in that directory for more info. Not documented yet outside of the README, but this might help new TMDA users get started quicker. * Some of the tmda-* programs will now run on native win32 (tmda-address, tmda-check-address, tmda-pending, and tmda-keygen). * tmda-ofmipd has a new option (--pure-proxy) that can proxy mail for non-TMDA users in addition to TMDA users. This might be useful if you run a mixed environment, and want to use tmda-ofmipd for everyone. See `tmda-ofmipd --help' for more on this option. * New feature from David Bremner. Add 'shell=' and 'python=' tag actions to the outgoing filter. This allows you to add dynamic/shell escaped headers from the outgoing filter file. For example usage, see the TMDA/Hashcash HOWTO I've prepared at http://wiki.tmda.net/TmdaHashCashHowto * The template system has been reorganized to simplify things for users of multi-lingual templates among others. See http://wiki.tmda.net/TemplateHowto and the UPGRADE notes below. * Messages are now simply deleted from your pending queue once they are confirmed or released rather than being renamed with a '3,C' or '3,R' suffix. This provides simpler, more intuitive behavior and decreased storage requirements. * Fixed a bug in TMDAINJECT that caused Message-ID and Date headers to differ when sending to multiple recipients. * Fixes to the tmda.spec file that should allow RPMs to be built with Python 2.3.x. * Tilde expansion is now done automatically for variables in /etc/tmdarc and ~/.tmda/config, so you no longer have to use os.path.expanduser() to do this yourself. e.g, TEMPLATE_DIR = "~/.tmda/templates" now ``just works''. * New 'whitelist' behavior for tmda-pending and tmda-cgi, controlled by http://wiki.tmda.net/ConfigurationVariables#PENDING_WHITELIST_RELEASE * A new 'pipe-headers' incoming filter file source. Identical to 'pipe' except that it only pipes the headers to the program, instead of the headers + body. This should offer greater performance and reliability when processing the message body isn't required. * A new feature to add Mail-Followup-To headers from tmda-sendmail or tmda-ofmipd to messages. See http://wiki.tmda.net/ConfigurationVariables#MAIL_FOLLOWUP_TO
2006-11-07 08:42:09 +01:00
EGDIR= share/examples/${PKGBASE}
HTMLDIR= share/doc/html/${PKGBASE}
PLIST_SUBST+= SHAREDIR=${SHAREDIR:Q}
PLIST_SUBST+= DOCDIR=${DOCDIR:Q}
Update to 1.1.9 (approved by kim@). From the changelog: * New feature courtesy of Mark Horn. ACTION_EXPIRED_DATED has been extended to support handling multiple ages of dated messages. So you could for example 'bounce' mail to dated addresses that have been expired for more than a week, 'hold' if longer than a month, and 'drop' if over a year, while still setting the default behavior to 'confirm'. For more information and an illustrative example, see http://wiki.tmda.net/ConfigurationVariables#ACTION_EXPIRED_DATED * TMDA's internal copy of the Python email package has been upgraded to v4.0.1. * The bin/tmda-* programs have been revamped to use Python's new 'optparse' library. * TMDA can now optionally store unconfirmed messages in a "Maildir" rather than in TMDA's custom pending queue format. This allows you to use any mail reading program that supports Maildir to browse or search your pending queue, rather than the 'tmda-pending' and 'tmda-cgi' programs, though the latter will still work. * tmda-filter has a new command-line option, '-e/--environ' which you can use to add a VAR=value pair to the environment. One example use of this is to allow TMDA to be setup as a Postfix transport. Contributed by Bernard Johnson. * tmda-filter will defer incoming deliveries if the sticky bit is set on your home directory (as determined by the $HOME variable). This allows you to safely edit the contents of ~/.tmda/ on a live system if you need to. * tmda-ofmipd now has "one-session" mode through the '--one-session' command-line option, courtesy of Stephen Warren. This allows you to use xinetd or tcpserver, possibly in conjunction with stunnel, to spawn tmda-ofmipd, rather than having tmda-ofmipd bind to a port and accept connections on its own. * The new 'dot-tmda' directory in contrib contains a working ~/.tmda/ structure that can be used with only a few changes. See the README in that directory for more info. Not documented yet outside of the README, but this might help new TMDA users get started quicker. * Some of the tmda-* programs will now run on native win32 (tmda-address, tmda-check-address, tmda-pending, and tmda-keygen). * tmda-ofmipd has a new option (--pure-proxy) that can proxy mail for non-TMDA users in addition to TMDA users. This might be useful if you run a mixed environment, and want to use tmda-ofmipd for everyone. See `tmda-ofmipd --help' for more on this option. * New feature from David Bremner. Add 'shell=' and 'python=' tag actions to the outgoing filter. This allows you to add dynamic/shell escaped headers from the outgoing filter file. For example usage, see the TMDA/Hashcash HOWTO I've prepared at http://wiki.tmda.net/TmdaHashCashHowto * The template system has been reorganized to simplify things for users of multi-lingual templates among others. See http://wiki.tmda.net/TemplateHowto and the UPGRADE notes below. * Messages are now simply deleted from your pending queue once they are confirmed or released rather than being renamed with a '3,C' or '3,R' suffix. This provides simpler, more intuitive behavior and decreased storage requirements. * Fixed a bug in TMDAINJECT that caused Message-ID and Date headers to differ when sending to multiple recipients. * Fixes to the tmda.spec file that should allow RPMs to be built with Python 2.3.x. * Tilde expansion is now done automatically for variables in /etc/tmdarc and ~/.tmda/config, so you no longer have to use os.path.expanduser() to do this yourself. e.g, TEMPLATE_DIR = "~/.tmda/templates" now ``just works''. * New 'whitelist' behavior for tmda-pending and tmda-cgi, controlled by http://wiki.tmda.net/ConfigurationVariables#PENDING_WHITELIST_RELEASE * A new 'pipe-headers' incoming filter file source. Identical to 'pipe' except that it only pipes the headers to the program, instead of the headers + body. This should offer greater performance and reliability when processing the message body isn't required. * A new feature to add Mail-Followup-To headers from tmda-sendmail or tmda-ofmipd to messages. See http://wiki.tmda.net/ConfigurationVariables#MAIL_FOLLOWUP_TO
2006-11-07 08:42:09 +01:00
PLIST_SUBST+= EGDIR=${EGDIR:Q}
PLIST_SUBST+= HTMLDIR=${HTMLDIR:Q}
TMDA_PROGRAMS= bin/tmda-*
Update to 1.1.9 (approved by kim@). From the changelog: * New feature courtesy of Mark Horn. ACTION_EXPIRED_DATED has been extended to support handling multiple ages of dated messages. So you could for example 'bounce' mail to dated addresses that have been expired for more than a week, 'hold' if longer than a month, and 'drop' if over a year, while still setting the default behavior to 'confirm'. For more information and an illustrative example, see http://wiki.tmda.net/ConfigurationVariables#ACTION_EXPIRED_DATED * TMDA's internal copy of the Python email package has been upgraded to v4.0.1. * The bin/tmda-* programs have been revamped to use Python's new 'optparse' library. * TMDA can now optionally store unconfirmed messages in a "Maildir" rather than in TMDA's custom pending queue format. This allows you to use any mail reading program that supports Maildir to browse or search your pending queue, rather than the 'tmda-pending' and 'tmda-cgi' programs, though the latter will still work. * tmda-filter has a new command-line option, '-e/--environ' which you can use to add a VAR=value pair to the environment. One example use of this is to allow TMDA to be setup as a Postfix transport. Contributed by Bernard Johnson. * tmda-filter will defer incoming deliveries if the sticky bit is set on your home directory (as determined by the $HOME variable). This allows you to safely edit the contents of ~/.tmda/ on a live system if you need to. * tmda-ofmipd now has "one-session" mode through the '--one-session' command-line option, courtesy of Stephen Warren. This allows you to use xinetd or tcpserver, possibly in conjunction with stunnel, to spawn tmda-ofmipd, rather than having tmda-ofmipd bind to a port and accept connections on its own. * The new 'dot-tmda' directory in contrib contains a working ~/.tmda/ structure that can be used with only a few changes. See the README in that directory for more info. Not documented yet outside of the README, but this might help new TMDA users get started quicker. * Some of the tmda-* programs will now run on native win32 (tmda-address, tmda-check-address, tmda-pending, and tmda-keygen). * tmda-ofmipd has a new option (--pure-proxy) that can proxy mail for non-TMDA users in addition to TMDA users. This might be useful if you run a mixed environment, and want to use tmda-ofmipd for everyone. See `tmda-ofmipd --help' for more on this option. * New feature from David Bremner. Add 'shell=' and 'python=' tag actions to the outgoing filter. This allows you to add dynamic/shell escaped headers from the outgoing filter file. For example usage, see the TMDA/Hashcash HOWTO I've prepared at http://wiki.tmda.net/TmdaHashCashHowto * The template system has been reorganized to simplify things for users of multi-lingual templates among others. See http://wiki.tmda.net/TemplateHowto and the UPGRADE notes below. * Messages are now simply deleted from your pending queue once they are confirmed or released rather than being renamed with a '3,C' or '3,R' suffix. This provides simpler, more intuitive behavior and decreased storage requirements. * Fixed a bug in TMDAINJECT that caused Message-ID and Date headers to differ when sending to multiple recipients. * Fixes to the tmda.spec file that should allow RPMs to be built with Python 2.3.x. * Tilde expansion is now done automatically for variables in /etc/tmdarc and ~/.tmda/config, so you no longer have to use os.path.expanduser() to do this yourself. e.g, TEMPLATE_DIR = "~/.tmda/templates" now ``just works''. * New 'whitelist' behavior for tmda-pending and tmda-cgi, controlled by http://wiki.tmda.net/ConfigurationVariables#PENDING_WHITELIST_RELEASE * A new 'pipe-headers' incoming filter file source. Identical to 'pipe' except that it only pipes the headers to the program, instead of the headers + body. This should offer greater performance and reliability when processing the message body isn't required. * A new feature to add Mail-Followup-To headers from tmda-sendmail or tmda-ofmipd to messages. See http://wiki.tmda.net/ConfigurationVariables#MAIL_FOLLOWUP_TO
2006-11-07 08:42:09 +01:00
TMDA_DOCS= CODENAMES COPYING CRYPTO ChangeLog INSTALL
TMDA_DOCS+= NEWS README THANKS UPGRADE
TMDA_CONTRIB= contrib/*
SUBST_CLASSES+= etc
SUBST_STAGE.etc= do-configure
SUBST_FILES.etc= bin/tmda-ofmipd TMDA/Auth.py TMDA/Defaults.py
SUBST_SED.etc= -e 's|/etc|${PKG_SYSCONFDIR}|g'
INSTALLATION_DIRS= bin ${SHAREDIR} ${DOCDIR} ${HTMLDIR} ${EGDIR}
INSTALLATION_DIRS+= ${PYSITELIB}/TMDA/pythonlib/email/mime
INSTALLATION_DIRS+= ${PYSITELIB}/TMDA/Queue
.include "options.mk"
post-extract:
rm ${WRKSRC}/doc/html/error.log
do-build:
cd ${WRKSRC} && ${PYTHONBIN} ./compileall
pre-install:
find ${WRKSRC} -name "*.orig" -print | xargs rm -f
do-install:
Update to 0.58. Changes to the package itself: - Update MASTER_SITES and HOMEPAGE. - Change iterator variables to something other than "file" to placate pkglint. From the changelog: * 'keyword' addresses now use an identifying string like 'dated' and 'sender' addresses do. 'keyword' by default, and customizable via TAGS_KEYWORD. This means you'll need to generate new addresses using `tmda-address', as your old ones will no longer work. If you want your old keyword addresses to be accepted until you can transition to the new format, you can add entries for them in your FILTER_INCOMING. e.g, to jason-promos.8d06eu@mastaler.com ok to jason-stupid_promo.289j76@mastaler.com ok * RECIPIENT_DELIMITER is no longer allowed to be part of the keyword in a keyword address. `?' will be substituted for it when a new keyword address is created. * The format for a confirmation request address is now: RECIPIENT-confirm-TIMESTAMP.PID.HMAC, instead of RECIPIENT-confirm-accept.TIMESTAMP.PID.HMAC The new format is detailed in CRYPTO. Because of this change, it's recommended that you run tmda-pending to make sure your queue is free of legitimate messages, since the old confirmation addresses will no longer work. If you are unable to do this and need temporary backward compatibility with the old format, there is a patch against 0.56 available at: <URL:http://mla.libertine.org/tmda-users/200206/msg00193.html> * Confirmed messages are now reinjected to the original envelope recipient address (RECIPIENT) rather than to: RECIPIENT-confirm-done.TIMESTAMP.PID.HMAC See CRYPTO for more details. * TMDA now sends outgoing mail by handing it off to an SMTP server instead of the /usr/sbin/sendmail program. By default it will use the standard SMTP port (25) on the local host. You can modify this by setting the "SMTPHOST" variable in your tmdarc. See TMDA/Defaults.py for further information. * tmdarc variable SENDMAIL has been renamed SENDMAIL_PROGRAM, but is irrelevant unless OUTGOINGMAIL = "sendmail". * tmdarc variable PURGED_HEADERS now lists "Bcc:" and "Resent-Bcc" by default. If you define this variable in your tmdarc, be sure to add these two headers. * CRYPT_KEY should be removed from ~/.tmdarc or ~/.tmda/config. Your secret key is now read from CRYPT_KEY_FILE, which defaults to ~/.tmda/crypt_key. To make this conversion, move your existing CRYPT_KEY to ~/.tmda/crypt_key, but without the double-quotes. e.g, if CRYPT_KEY = "df7a18a8d95f02ff94bf6463a8ec214cf20cb9e8" ~/.tmda/crypt_key should contain: df7a18a8d95f02ff94bf6463a8ec214cf20cb9e8 * ~/.tmdarc and ~/.tmda/config are no longer checked for file permissions. Instead, make sure ~/.tmda/crypt_key is chmod 400 or 600 (or 640 if ALLOW_MODE_640 = 1). * An exception is no longer be raised if ~/.tmdarc or ~/.tmda/config is missing. However, a ~/.tmda/crypt_key file is required. * tmda-keygen now outputs an unquoted key instead of a CRYPT_KEY line. * Template variables dated_cookie_address and sender_cookie_address were replaced with dated_recipient_address and sender_recipient_address, which are based on the RECIPIENT address.
2002-07-23 22:05:47 +02:00
for f in ${TMDA_PROGRAMS}; do \
2010-02-04 03:42:23 +01:00
${INSTALL_SCRIPT} ${WRKSRC}/$${f} ${DESTDIR}${PREFIX}/bin; \
done
2010-02-04 03:42:23 +01:00
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${DESTDIR}${PREFIX}/${PYSITELIB}/TMDA
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/*.py* \
2010-02-04 03:42:23 +01:00
${DESTDIR}${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email
Update to 1.1.9 (approved by kim@). From the changelog: * New feature courtesy of Mark Horn. ACTION_EXPIRED_DATED has been extended to support handling multiple ages of dated messages. So you could for example 'bounce' mail to dated addresses that have been expired for more than a week, 'hold' if longer than a month, and 'drop' if over a year, while still setting the default behavior to 'confirm'. For more information and an illustrative example, see http://wiki.tmda.net/ConfigurationVariables#ACTION_EXPIRED_DATED * TMDA's internal copy of the Python email package has been upgraded to v4.0.1. * The bin/tmda-* programs have been revamped to use Python's new 'optparse' library. * TMDA can now optionally store unconfirmed messages in a "Maildir" rather than in TMDA's custom pending queue format. This allows you to use any mail reading program that supports Maildir to browse or search your pending queue, rather than the 'tmda-pending' and 'tmda-cgi' programs, though the latter will still work. * tmda-filter has a new command-line option, '-e/--environ' which you can use to add a VAR=value pair to the environment. One example use of this is to allow TMDA to be setup as a Postfix transport. Contributed by Bernard Johnson. * tmda-filter will defer incoming deliveries if the sticky bit is set on your home directory (as determined by the $HOME variable). This allows you to safely edit the contents of ~/.tmda/ on a live system if you need to. * tmda-ofmipd now has "one-session" mode through the '--one-session' command-line option, courtesy of Stephen Warren. This allows you to use xinetd or tcpserver, possibly in conjunction with stunnel, to spawn tmda-ofmipd, rather than having tmda-ofmipd bind to a port and accept connections on its own. * The new 'dot-tmda' directory in contrib contains a working ~/.tmda/ structure that can be used with only a few changes. See the README in that directory for more info. Not documented yet outside of the README, but this might help new TMDA users get started quicker. * Some of the tmda-* programs will now run on native win32 (tmda-address, tmda-check-address, tmda-pending, and tmda-keygen). * tmda-ofmipd has a new option (--pure-proxy) that can proxy mail for non-TMDA users in addition to TMDA users. This might be useful if you run a mixed environment, and want to use tmda-ofmipd for everyone. See `tmda-ofmipd --help' for more on this option. * New feature from David Bremner. Add 'shell=' and 'python=' tag actions to the outgoing filter. This allows you to add dynamic/shell escaped headers from the outgoing filter file. For example usage, see the TMDA/Hashcash HOWTO I've prepared at http://wiki.tmda.net/TmdaHashCashHowto * The template system has been reorganized to simplify things for users of multi-lingual templates among others. See http://wiki.tmda.net/TemplateHowto and the UPGRADE notes below. * Messages are now simply deleted from your pending queue once they are confirmed or released rather than being renamed with a '3,C' or '3,R' suffix. This provides simpler, more intuitive behavior and decreased storage requirements. * Fixed a bug in TMDAINJECT that caused Message-ID and Date headers to differ when sending to multiple recipients. * Fixes to the tmda.spec file that should allow RPMs to be built with Python 2.3.x. * Tilde expansion is now done automatically for variables in /etc/tmdarc and ~/.tmda/config, so you no longer have to use os.path.expanduser() to do this yourself. e.g, TEMPLATE_DIR = "~/.tmda/templates" now ``just works''. * New 'whitelist' behavior for tmda-pending and tmda-cgi, controlled by http://wiki.tmda.net/ConfigurationVariables#PENDING_WHITELIST_RELEASE * A new 'pipe-headers' incoming filter file source. Identical to 'pipe' except that it only pipes the headers to the program, instead of the headers + body. This should offer greater performance and reliability when processing the message body isn't required. * A new feature to add Mail-Followup-To headers from tmda-sendmail or tmda-ofmipd to messages. See http://wiki.tmda.net/ConfigurationVariables#MAIL_FOLLOWUP_TO
2006-11-07 08:42:09 +01:00
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/mime/*.py* \
2010-02-04 03:42:23 +01:00
${DESTDIR}${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email/mime
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/Queue/*.py* \
2010-02-04 03:42:23 +01:00
${DESTDIR}${PREFIX}/${PYSITELIB}/TMDA/Queue
2010-02-04 03:42:23 +01:00
${INSTALL_DATA} ${WRKSRC}/templates/*.txt ${DESTDIR}${PREFIX}/${SHAREDIR}
Update to 0.58. Changes to the package itself: - Update MASTER_SITES and HOMEPAGE. - Change iterator variables to something other than "file" to placate pkglint. From the changelog: * 'keyword' addresses now use an identifying string like 'dated' and 'sender' addresses do. 'keyword' by default, and customizable via TAGS_KEYWORD. This means you'll need to generate new addresses using `tmda-address', as your old ones will no longer work. If you want your old keyword addresses to be accepted until you can transition to the new format, you can add entries for them in your FILTER_INCOMING. e.g, to jason-promos.8d06eu@mastaler.com ok to jason-stupid_promo.289j76@mastaler.com ok * RECIPIENT_DELIMITER is no longer allowed to be part of the keyword in a keyword address. `?' will be substituted for it when a new keyword address is created. * The format for a confirmation request address is now: RECIPIENT-confirm-TIMESTAMP.PID.HMAC, instead of RECIPIENT-confirm-accept.TIMESTAMP.PID.HMAC The new format is detailed in CRYPTO. Because of this change, it's recommended that you run tmda-pending to make sure your queue is free of legitimate messages, since the old confirmation addresses will no longer work. If you are unable to do this and need temporary backward compatibility with the old format, there is a patch against 0.56 available at: <URL:http://mla.libertine.org/tmda-users/200206/msg00193.html> * Confirmed messages are now reinjected to the original envelope recipient address (RECIPIENT) rather than to: RECIPIENT-confirm-done.TIMESTAMP.PID.HMAC See CRYPTO for more details. * TMDA now sends outgoing mail by handing it off to an SMTP server instead of the /usr/sbin/sendmail program. By default it will use the standard SMTP port (25) on the local host. You can modify this by setting the "SMTPHOST" variable in your tmdarc. See TMDA/Defaults.py for further information. * tmdarc variable SENDMAIL has been renamed SENDMAIL_PROGRAM, but is irrelevant unless OUTGOINGMAIL = "sendmail". * tmdarc variable PURGED_HEADERS now lists "Bcc:" and "Resent-Bcc" by default. If you define this variable in your tmdarc, be sure to add these two headers. * CRYPT_KEY should be removed from ~/.tmdarc or ~/.tmda/config. Your secret key is now read from CRYPT_KEY_FILE, which defaults to ~/.tmda/crypt_key. To make this conversion, move your existing CRYPT_KEY to ~/.tmda/crypt_key, but without the double-quotes. e.g, if CRYPT_KEY = "df7a18a8d95f02ff94bf6463a8ec214cf20cb9e8" ~/.tmda/crypt_key should contain: df7a18a8d95f02ff94bf6463a8ec214cf20cb9e8 * ~/.tmdarc and ~/.tmda/config are no longer checked for file permissions. Instead, make sure ~/.tmda/crypt_key is chmod 400 or 600 (or 640 if ALLOW_MODE_640 = 1). * An exception is no longer be raised if ~/.tmdarc or ~/.tmda/config is missing. However, a ~/.tmda/crypt_key file is required. * tmda-keygen now outputs an unquoted key instead of a CRYPT_KEY line. * Template variables dated_cookie_address and sender_cookie_address were replaced with dated_recipient_address and sender_recipient_address, which are based on the RECIPIENT address.
2002-07-23 22:05:47 +02:00
for f in ${TMDA_DOCS}; do \
2010-02-04 03:42:23 +01:00
${INSTALL_DATA} ${WRKSRC}/$${f} ${DESTDIR}${PREFIX}/${DOCDIR}; \
done
for f in ${TMDA_CONTRIB}; do \
Update to 1.1.9 (approved by kim@). From the changelog: * New feature courtesy of Mark Horn. ACTION_EXPIRED_DATED has been extended to support handling multiple ages of dated messages. So you could for example 'bounce' mail to dated addresses that have been expired for more than a week, 'hold' if longer than a month, and 'drop' if over a year, while still setting the default behavior to 'confirm'. For more information and an illustrative example, see http://wiki.tmda.net/ConfigurationVariables#ACTION_EXPIRED_DATED * TMDA's internal copy of the Python email package has been upgraded to v4.0.1. * The bin/tmda-* programs have been revamped to use Python's new 'optparse' library. * TMDA can now optionally store unconfirmed messages in a "Maildir" rather than in TMDA's custom pending queue format. This allows you to use any mail reading program that supports Maildir to browse or search your pending queue, rather than the 'tmda-pending' and 'tmda-cgi' programs, though the latter will still work. * tmda-filter has a new command-line option, '-e/--environ' which you can use to add a VAR=value pair to the environment. One example use of this is to allow TMDA to be setup as a Postfix transport. Contributed by Bernard Johnson. * tmda-filter will defer incoming deliveries if the sticky bit is set on your home directory (as determined by the $HOME variable). This allows you to safely edit the contents of ~/.tmda/ on a live system if you need to. * tmda-ofmipd now has "one-session" mode through the '--one-session' command-line option, courtesy of Stephen Warren. This allows you to use xinetd or tcpserver, possibly in conjunction with stunnel, to spawn tmda-ofmipd, rather than having tmda-ofmipd bind to a port and accept connections on its own. * The new 'dot-tmda' directory in contrib contains a working ~/.tmda/ structure that can be used with only a few changes. See the README in that directory for more info. Not documented yet outside of the README, but this might help new TMDA users get started quicker. * Some of the tmda-* programs will now run on native win32 (tmda-address, tmda-check-address, tmda-pending, and tmda-keygen). * tmda-ofmipd has a new option (--pure-proxy) that can proxy mail for non-TMDA users in addition to TMDA users. This might be useful if you run a mixed environment, and want to use tmda-ofmipd for everyone. See `tmda-ofmipd --help' for more on this option. * New feature from David Bremner. Add 'shell=' and 'python=' tag actions to the outgoing filter. This allows you to add dynamic/shell escaped headers from the outgoing filter file. For example usage, see the TMDA/Hashcash HOWTO I've prepared at http://wiki.tmda.net/TmdaHashCashHowto * The template system has been reorganized to simplify things for users of multi-lingual templates among others. See http://wiki.tmda.net/TemplateHowto and the UPGRADE notes below. * Messages are now simply deleted from your pending queue once they are confirmed or released rather than being renamed with a '3,C' or '3,R' suffix. This provides simpler, more intuitive behavior and decreased storage requirements. * Fixed a bug in TMDAINJECT that caused Message-ID and Date headers to differ when sending to multiple recipients. * Fixes to the tmda.spec file that should allow RPMs to be built with Python 2.3.x. * Tilde expansion is now done automatically for variables in /etc/tmdarc and ~/.tmda/config, so you no longer have to use os.path.expanduser() to do this yourself. e.g, TEMPLATE_DIR = "~/.tmda/templates" now ``just works''. * New 'whitelist' behavior for tmda-pending and tmda-cgi, controlled by http://wiki.tmda.net/ConfigurationVariables#PENDING_WHITELIST_RELEASE * A new 'pipe-headers' incoming filter file source. Identical to 'pipe' except that it only pipes the headers to the program, instead of the headers + body. This should offer greater performance and reliability when processing the message body isn't required. * A new feature to add Mail-Followup-To headers from tmda-sendmail or tmda-ofmipd to messages. See http://wiki.tmda.net/ConfigurationVariables#MAIL_FOLLOWUP_TO
2006-11-07 08:42:09 +01:00
if [ -f $${f} ]; then \
${INSTALL_DATA} ${WRKSRC}/$${f} \
2010-02-04 03:42:23 +01:00
${DESTDIR}${PREFIX}/${EGDIR}; \
Update to 1.1.9 (approved by kim@). From the changelog: * New feature courtesy of Mark Horn. ACTION_EXPIRED_DATED has been extended to support handling multiple ages of dated messages. So you could for example 'bounce' mail to dated addresses that have been expired for more than a week, 'hold' if longer than a month, and 'drop' if over a year, while still setting the default behavior to 'confirm'. For more information and an illustrative example, see http://wiki.tmda.net/ConfigurationVariables#ACTION_EXPIRED_DATED * TMDA's internal copy of the Python email package has been upgraded to v4.0.1. * The bin/tmda-* programs have been revamped to use Python's new 'optparse' library. * TMDA can now optionally store unconfirmed messages in a "Maildir" rather than in TMDA's custom pending queue format. This allows you to use any mail reading program that supports Maildir to browse or search your pending queue, rather than the 'tmda-pending' and 'tmda-cgi' programs, though the latter will still work. * tmda-filter has a new command-line option, '-e/--environ' which you can use to add a VAR=value pair to the environment. One example use of this is to allow TMDA to be setup as a Postfix transport. Contributed by Bernard Johnson. * tmda-filter will defer incoming deliveries if the sticky bit is set on your home directory (as determined by the $HOME variable). This allows you to safely edit the contents of ~/.tmda/ on a live system if you need to. * tmda-ofmipd now has "one-session" mode through the '--one-session' command-line option, courtesy of Stephen Warren. This allows you to use xinetd or tcpserver, possibly in conjunction with stunnel, to spawn tmda-ofmipd, rather than having tmda-ofmipd bind to a port and accept connections on its own. * The new 'dot-tmda' directory in contrib contains a working ~/.tmda/ structure that can be used with only a few changes. See the README in that directory for more info. Not documented yet outside of the README, but this might help new TMDA users get started quicker. * Some of the tmda-* programs will now run on native win32 (tmda-address, tmda-check-address, tmda-pending, and tmda-keygen). * tmda-ofmipd has a new option (--pure-proxy) that can proxy mail for non-TMDA users in addition to TMDA users. This might be useful if you run a mixed environment, and want to use tmda-ofmipd for everyone. See `tmda-ofmipd --help' for more on this option. * New feature from David Bremner. Add 'shell=' and 'python=' tag actions to the outgoing filter. This allows you to add dynamic/shell escaped headers from the outgoing filter file. For example usage, see the TMDA/Hashcash HOWTO I've prepared at http://wiki.tmda.net/TmdaHashCashHowto * The template system has been reorganized to simplify things for users of multi-lingual templates among others. See http://wiki.tmda.net/TemplateHowto and the UPGRADE notes below. * Messages are now simply deleted from your pending queue once they are confirmed or released rather than being renamed with a '3,C' or '3,R' suffix. This provides simpler, more intuitive behavior and decreased storage requirements. * Fixed a bug in TMDAINJECT that caused Message-ID and Date headers to differ when sending to multiple recipients. * Fixes to the tmda.spec file that should allow RPMs to be built with Python 2.3.x. * Tilde expansion is now done automatically for variables in /etc/tmdarc and ~/.tmda/config, so you no longer have to use os.path.expanduser() to do this yourself. e.g, TEMPLATE_DIR = "~/.tmda/templates" now ``just works''. * New 'whitelist' behavior for tmda-pending and tmda-cgi, controlled by http://wiki.tmda.net/ConfigurationVariables#PENDING_WHITELIST_RELEASE * A new 'pipe-headers' incoming filter file source. Identical to 'pipe' except that it only pipes the headers to the program, instead of the headers + body. This should offer greater performance and reliability when processing the message body isn't required. * A new feature to add Mail-Followup-To headers from tmda-sendmail or tmda-ofmipd to messages. See http://wiki.tmda.net/ConfigurationVariables#MAIL_FOLLOWUP_TO
2006-11-07 08:42:09 +01:00
else \
2010-02-04 03:42:23 +01:00
cp -Rp ${WRKSRC}/$${f} ${DESTDIR}${PREFIX}/${EGDIR}; \
Update to 1.1.9 (approved by kim@). From the changelog: * New feature courtesy of Mark Horn. ACTION_EXPIRED_DATED has been extended to support handling multiple ages of dated messages. So you could for example 'bounce' mail to dated addresses that have been expired for more than a week, 'hold' if longer than a month, and 'drop' if over a year, while still setting the default behavior to 'confirm'. For more information and an illustrative example, see http://wiki.tmda.net/ConfigurationVariables#ACTION_EXPIRED_DATED * TMDA's internal copy of the Python email package has been upgraded to v4.0.1. * The bin/tmda-* programs have been revamped to use Python's new 'optparse' library. * TMDA can now optionally store unconfirmed messages in a "Maildir" rather than in TMDA's custom pending queue format. This allows you to use any mail reading program that supports Maildir to browse or search your pending queue, rather than the 'tmda-pending' and 'tmda-cgi' programs, though the latter will still work. * tmda-filter has a new command-line option, '-e/--environ' which you can use to add a VAR=value pair to the environment. One example use of this is to allow TMDA to be setup as a Postfix transport. Contributed by Bernard Johnson. * tmda-filter will defer incoming deliveries if the sticky bit is set on your home directory (as determined by the $HOME variable). This allows you to safely edit the contents of ~/.tmda/ on a live system if you need to. * tmda-ofmipd now has "one-session" mode through the '--one-session' command-line option, courtesy of Stephen Warren. This allows you to use xinetd or tcpserver, possibly in conjunction with stunnel, to spawn tmda-ofmipd, rather than having tmda-ofmipd bind to a port and accept connections on its own. * The new 'dot-tmda' directory in contrib contains a working ~/.tmda/ structure that can be used with only a few changes. See the README in that directory for more info. Not documented yet outside of the README, but this might help new TMDA users get started quicker. * Some of the tmda-* programs will now run on native win32 (tmda-address, tmda-check-address, tmda-pending, and tmda-keygen). * tmda-ofmipd has a new option (--pure-proxy) that can proxy mail for non-TMDA users in addition to TMDA users. This might be useful if you run a mixed environment, and want to use tmda-ofmipd for everyone. See `tmda-ofmipd --help' for more on this option. * New feature from David Bremner. Add 'shell=' and 'python=' tag actions to the outgoing filter. This allows you to add dynamic/shell escaped headers from the outgoing filter file. For example usage, see the TMDA/Hashcash HOWTO I've prepared at http://wiki.tmda.net/TmdaHashCashHowto * The template system has been reorganized to simplify things for users of multi-lingual templates among others. See http://wiki.tmda.net/TemplateHowto and the UPGRADE notes below. * Messages are now simply deleted from your pending queue once they are confirmed or released rather than being renamed with a '3,C' or '3,R' suffix. This provides simpler, more intuitive behavior and decreased storage requirements. * Fixed a bug in TMDAINJECT that caused Message-ID and Date headers to differ when sending to multiple recipients. * Fixes to the tmda.spec file that should allow RPMs to be built with Python 2.3.x. * Tilde expansion is now done automatically for variables in /etc/tmdarc and ~/.tmda/config, so you no longer have to use os.path.expanduser() to do this yourself. e.g, TEMPLATE_DIR = "~/.tmda/templates" now ``just works''. * New 'whitelist' behavior for tmda-pending and tmda-cgi, controlled by http://wiki.tmda.net/ConfigurationVariables#PENDING_WHITELIST_RELEASE * A new 'pipe-headers' incoming filter file source. Identical to 'pipe' except that it only pipes the headers to the program, instead of the headers + body. This should offer greater performance and reliability when processing the message body isn't required. * A new feature to add Mail-Followup-To headers from tmda-sendmail or tmda-ofmipd to messages. See http://wiki.tmda.net/ConfigurationVariables#MAIL_FOLLOWUP_TO
2006-11-07 08:42:09 +01:00
fi; \
done
2010-02-04 03:42:23 +01:00
cp -Rp ${WRKSRC}/doc/html/* ${DESTDIR}${PREFIX}/${HTMLDIR}
2004-01-28 01:12:53 +01:00
post-install:
2010-02-04 03:42:23 +01:00
${PY_COMPILE_ALL} ${DESTDIR}${PREFIX}/${PYSITELIB}/TMDA \
${DESTDIR}${PREFIX}/${PYSITELIB}/TMDA/Queue \
${DESTDIR}${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email \
${DESTDIR}${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email/mime
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"