pkgsrc/mail/tmda/Makefile

80 lines
2.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.16 2003/09/27 08:22:29 recht Exp $
#
DISTNAME= tmda-0.84
CATEGORIES= mail python
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
MASTER_SITES= http://tmda.net/releases/ \
http://tmda.net/releases/old/
EXTRACT_SUFX= .tgz
MAINTAINER= kim@tac.nyc.ny.us
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
2003-09-26 02:20:32 +02:00
PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth 21 21pth
USE_BUILDLINK2= yes
PY_PATCHPLIST= # defined
PYTHON_PATCH_SCRIPTS= ${TMDA_PROGRAMS}
SHAREDIR= share/${PKGBASE}
DOCDIR= share/doc/${PKGBASE}
CONTRIBDIR= share/doc/${PKGBASE}/contrib
HTMLDIR= share/doc/html/${PKGBASE}
PLIST_SUBST+= SHAREDIR="${SHAREDIR}"
PLIST_SUBST+= DOCDIR="${DOCDIR}"
PLIST_SUBST+= CONTRIBDIR="${CONTRIBDIR}"
PLIST_SUBST+= HTMLDIR="${HTMLDIR}"
TMDA_PROGRAMS= bin/tmda-address
TMDA_PROGRAMS+= bin/tmda-check-address
TMDA_PROGRAMS+= bin/tmda-filter
TMDA_PROGRAMS+= bin/tmda-inject
TMDA_PROGRAMS+= bin/tmda-keygen
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
TMDA_PROGRAMS+= bin/tmda-ofmipd
TMDA_PROGRAMS+= bin/tmda-pending
TMDA_PROGRAMS+= bin/tmda-rfilter
TMDA_PROGRAMS+= bin/tmda-sendmail
TMDA_DOCS= CODENAMES
TMDA_DOCS+= COPYING
TMDA_DOCS+= CRYPTO
TMDA_DOCS+= ChangeLog
TMDA_DOCS+= INSTALL
TMDA_DOCS+= README
TMDA_DOCS+= THANKS
TMDA_DOCS+= UPGRADE
do-build:
cd ${WRKSRC}; ${PYTHONBIN} ./compileall
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 \
${INSTALL_SCRIPT} ${WRKSRC}/$${f} ${PREFIX}/bin; \
done
${INSTALL_SCRIPT_DIR} ${PREFIX}/${PYSITELIB}/TMDA
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${PREFIX}/${PYSITELIB}/TMDA
${INSTALL_SCRIPT_DIR} ${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/*.py* \
${PREFIX}/${PYSITELIB}/TMDA/pythonlib/email
${INSTALL_DATA_DIR} ${PREFIX}/${SHAREDIR}
${INSTALL_DATA} ${WRKSRC}/templates/*.txt ${PREFIX}/${SHAREDIR}
${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
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 \
${INSTALL_DATA} ${WRKSRC}/$${f} ${PREFIX}/${DOCDIR}; \
done
${INSTALL_DATA_DIR} ${PREFIX}/${CONTRIBDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/* ${PREFIX}/${CONTRIBDIR}
${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}
${INSTALL_DATA} ${WRKSRC}/htdocs/*.html ${PREFIX}/${HTMLDIR}
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"