2020-03-08 17:47:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.25 2020/03/08 16:50:23 wiz Exp $
|
2005-07-20 05:30:19 +02:00
|
|
|
#
|
|
|
|
|
2018-09-29 00:45:39 +02:00
|
|
|
DISTNAME= mailfront-2.22
|
2020-03-08 17:47:24 +01:00
|
|
|
PKGREVISION= 3
|
2005-07-20 05:30:19 +02:00
|
|
|
CATEGORIES= mail
|
2008-03-17 12:41:46 +01:00
|
|
|
MASTER_SITES= ${HOMEPAGE}archive/
|
2005-07-20 05:30:19 +02:00
|
|
|
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://untroubled.org/mailfront/
|
2005-07-20 05:30:19 +02:00
|
|
|
COMMENT= Mail server network protocol front-ends
|
2017-01-02 03:19:46 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
2005-07-20 05:30:19 +02:00
|
|
|
|
|
|
|
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
|
2019-06-19 19:42:25 +02:00
|
|
|
DEPENDS+= qmail>=1.03nb8:../../mail/qmail
|
2005-07-20 05:30:19 +02:00
|
|
|
|
|
|
|
DJB_RESTRICTED= NO
|
2005-08-24 06:47:10 +02:00
|
|
|
DJB_MAKE_TARGETS= NO
|
2017-07-31 22:38:51 +02:00
|
|
|
BUILD_TARGET= all
|
Update to 1.12, addressing PR pkg/34765. From the changelog:
1.12:
- Fixed problem with overwriting existing session data items.
- Fixed several problems with handling of databytes in rules.
- Fixed crash in plugin cvm-validate when the lookup secret was unset.
- pop3front-auth now supports a no-argument variant on the AUTH command,
used by KMail to test for authentication modes, and documented
in http://www.tools.ietf.org/html/draft-myers-sasl-pop3-05
Thanks Bernhard Graf for the initial patch
- pop3front-auth and -maildir now support the CAPA command.
Thanks Bernhard Graf for the initial patch
- Made imapfront-auth more compatible with Courier IMAP by adding extra
bits to the CAPABILITY command. Thanks Bernhard Graf.
- plugin-cvm-validate handles modules that provide an "out of scope"
fact by passing to the next plugin.
- Fixed handling of addresses without a domain in @file rules.
Thanks Jorge Valdes
1.11:
- Fixed the main mailfront program to clean up temporary files properly.
- Modified the SMTP protocol module to export the SASL authentication
information internally.
- Modified the check-fqdn plugin to append $DEFAULTHOST and
$DEFAULTDOMAIN to addresses if necessary.
- Added separate connect and send timeouts and a maximum message size to
the ClamAV plugin, and fixed a bug with handling port numbers
when using multiple IPs.
- Modified the ClamAV plugin to prefer $CLAMAV_* settings over $CLAMD_*
- Added plugin API documentation.
1.10:
- Added a ClamAV virus scanner plugin. Note: Using this plugin will
cause mailfront to save messages to temporary files. See
mailfront.html for details.
- Modified the plugin API to add a version code, a flags word, and to
(optionally) save messages to a temporary file.
- Fixed a few cases where the UCSPI-TCP protocol was assumed.
- Fixed pop3front-maildir breakage on dietlibc/uClibc and empty
maildirs. Thanks Wayne Marshall.
1.01:
- Fixed a bug in the counters plugin that triggered a problem in the
SMTP protocol when handling the SIZE=# parameter.
- Reversed the order of cvm-validate and qmail-validate in the wrapper
scripts (and documentation) due to the semantics of the two plugins.
- Added a list of built-in plugins. The list currently contains the
three accept* plugins, which are extremely trivial.
1.0:
Mailfront has been rewritten to be totally modular. The core mailfront
program loads the protocol, backend, and all plugin behaviors at run
time from shared objects.
The previous commands, such as smtpfront-qmail, are now shell script
wrappers for the main "mailfront" command, and as such are depricated in
favor of using "mailfront" directly. The *front-qmail wrappers preload
all the plugins that were previously compiled into the corresponding
programs:
check-fqdn counters mailrules relayclient cvm-validate
qmail-validate add-received patterns accept-sender
NOTE: The *front-reject backends have been dropped in favor of a plugin.
In addition, the $REQUIRE_AUTH feature has been moved to another plugin.
If you used this backend or feature you will need to adjust your
configuration accordingly.
2009-04-08 03:44:04 +02:00
|
|
|
DJB_CONFIG_CMDS+= ${ECHO} ${PREFIX}/include > conf-include; \
|
2017-01-02 03:19:46 +01:00
|
|
|
${ECHO} ${PREFIX}/lib/${PKGBASE} > conf-modules;
|
2005-07-20 05:30:19 +02:00
|
|
|
|
2017-04-27 22:18:44 +02:00
|
|
|
FILES_SUBST+= QMAIL_DAEMON_USER=${QMAIL_DAEMON_USER:Q}
|
|
|
|
FILES_SUBST+= QMAIL_LOG_USER=${QMAIL_LOG_USER:Q}
|
2005-07-20 05:30:19 +02:00
|
|
|
RCD_SCRIPTS= smtpfront
|
Update to 1.12, addressing PR pkg/34765. From the changelog:
1.12:
- Fixed problem with overwriting existing session data items.
- Fixed several problems with handling of databytes in rules.
- Fixed crash in plugin cvm-validate when the lookup secret was unset.
- pop3front-auth now supports a no-argument variant on the AUTH command,
used by KMail to test for authentication modes, and documented
in http://www.tools.ietf.org/html/draft-myers-sasl-pop3-05
Thanks Bernhard Graf for the initial patch
- pop3front-auth and -maildir now support the CAPA command.
Thanks Bernhard Graf for the initial patch
- Made imapfront-auth more compatible with Courier IMAP by adding extra
bits to the CAPABILITY command. Thanks Bernhard Graf.
- plugin-cvm-validate handles modules that provide an "out of scope"
fact by passing to the next plugin.
- Fixed handling of addresses without a domain in @file rules.
Thanks Jorge Valdes
1.11:
- Fixed the main mailfront program to clean up temporary files properly.
- Modified the SMTP protocol module to export the SASL authentication
information internally.
- Modified the check-fqdn plugin to append $DEFAULTHOST and
$DEFAULTDOMAIN to addresses if necessary.
- Added separate connect and send timeouts and a maximum message size to
the ClamAV plugin, and fixed a bug with handling port numbers
when using multiple IPs.
- Modified the ClamAV plugin to prefer $CLAMAV_* settings over $CLAMD_*
- Added plugin API documentation.
1.10:
- Added a ClamAV virus scanner plugin. Note: Using this plugin will
cause mailfront to save messages to temporary files. See
mailfront.html for details.
- Modified the plugin API to add a version code, a flags word, and to
(optionally) save messages to a temporary file.
- Fixed a few cases where the UCSPI-TCP protocol was assumed.
- Fixed pop3front-maildir breakage on dietlibc/uClibc and empty
maildirs. Thanks Wayne Marshall.
1.01:
- Fixed a bug in the counters plugin that triggered a problem in the
SMTP protocol when handling the SIZE=# parameter.
- Reversed the order of cvm-validate and qmail-validate in the wrapper
scripts (and documentation) due to the semantics of the two plugins.
- Added a list of built-in plugins. The list currently contains the
three accept* plugins, which are extremely trivial.
1.0:
Mailfront has been rewritten to be totally modular. The core mailfront
program loads the protocol, backend, and all plugin behaviors at run
time from shared objects.
The previous commands, such as smtpfront-qmail, are now shell script
wrappers for the main "mailfront" command, and as such are depricated in
favor of using "mailfront" directly. The *front-qmail wrappers preload
all the plugins that were previously compiled into the corresponding
programs:
check-fqdn counters mailrules relayclient cvm-validate
qmail-validate add-received patterns accept-sender
NOTE: The *front-reject backends have been dropped in favor of a plugin.
In addition, the $REQUIRE_AUTH feature has been moved to another plugin.
If you used this backend or feature you will need to adjust your
configuration accordingly.
2009-04-08 03:44:04 +02:00
|
|
|
INSTALLATION_DIRS= share/doc/mailfront
|
2010-03-15 03:51:24 +01:00
|
|
|
INSTALL_ENV+= install_prefix=${DESTDIR:Q}
|
2005-07-20 05:30:19 +02:00
|
|
|
|
2017-04-27 22:18:44 +02:00
|
|
|
BUILD_DEFS+= QMAIL_DAEMON_USER QMAIL_LOG_USER
|
|
|
|
|
2017-02-21 17:04:04 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
|
2017-01-02 03:19:46 +01:00
|
|
|
MAKE_JOBS_SAFE= no # due to hacky libtoolization
|
|
|
|
|
2019-06-19 19:42:25 +02:00
|
|
|
PKG_SYSCONFSUBDIR= qmail
|
2017-07-31 22:38:51 +02:00
|
|
|
|
2019-06-19 19:42:25 +02:00
|
|
|
.include "options.mk"
|
2005-07-20 05:30:19 +02:00
|
|
|
|
Update to 1.12, addressing PR pkg/34765. From the changelog:
1.12:
- Fixed problem with overwriting existing session data items.
- Fixed several problems with handling of databytes in rules.
- Fixed crash in plugin cvm-validate when the lookup secret was unset.
- pop3front-auth now supports a no-argument variant on the AUTH command,
used by KMail to test for authentication modes, and documented
in http://www.tools.ietf.org/html/draft-myers-sasl-pop3-05
Thanks Bernhard Graf for the initial patch
- pop3front-auth and -maildir now support the CAPA command.
Thanks Bernhard Graf for the initial patch
- Made imapfront-auth more compatible with Courier IMAP by adding extra
bits to the CAPABILITY command. Thanks Bernhard Graf.
- plugin-cvm-validate handles modules that provide an "out of scope"
fact by passing to the next plugin.
- Fixed handling of addresses without a domain in @file rules.
Thanks Jorge Valdes
1.11:
- Fixed the main mailfront program to clean up temporary files properly.
- Modified the SMTP protocol module to export the SASL authentication
information internally.
- Modified the check-fqdn plugin to append $DEFAULTHOST and
$DEFAULTDOMAIN to addresses if necessary.
- Added separate connect and send timeouts and a maximum message size to
the ClamAV plugin, and fixed a bug with handling port numbers
when using multiple IPs.
- Modified the ClamAV plugin to prefer $CLAMAV_* settings over $CLAMD_*
- Added plugin API documentation.
1.10:
- Added a ClamAV virus scanner plugin. Note: Using this plugin will
cause mailfront to save messages to temporary files. See
mailfront.html for details.
- Modified the plugin API to add a version code, a flags word, and to
(optionally) save messages to a temporary file.
- Fixed a few cases where the UCSPI-TCP protocol was assumed.
- Fixed pop3front-maildir breakage on dietlibc/uClibc and empty
maildirs. Thanks Wayne Marshall.
1.01:
- Fixed a bug in the counters plugin that triggered a problem in the
SMTP protocol when handling the SIZE=# parameter.
- Reversed the order of cvm-validate and qmail-validate in the wrapper
scripts (and documentation) due to the semantics of the two plugins.
- Added a list of built-in plugins. The list currently contains the
three accept* plugins, which are extremely trivial.
1.0:
Mailfront has been rewritten to be totally modular. The core mailfront
program loads the protocol, backend, and all plugin behaviors at run
time from shared objects.
The previous commands, such as smtpfront-qmail, are now shell script
wrappers for the main "mailfront" command, and as such are depricated in
favor of using "mailfront" directly. The *front-qmail wrappers preload
all the plugins that were previously compiled into the corresponding
programs:
check-fqdn counters mailrules relayclient cvm-validate
qmail-validate add-received patterns accept-sender
NOTE: The *front-reject backends have been dropped in favor of a plugin.
In addition, the $REQUIRE_AUTH feature has been moved to another plugin.
If you used this backend or feature you will need to adjust your
configuration accordingly.
2009-04-08 03:44:04 +02:00
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC}; \
|
2010-03-15 03:51:24 +01:00
|
|
|
for f in ANNOUNCEMENT NEWS README *.html; do \
|
|
|
|
${INSTALL_DATA} $${f} \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/mailfront; \
|
Update to 1.12, addressing PR pkg/34765. From the changelog:
1.12:
- Fixed problem with overwriting existing session data items.
- Fixed several problems with handling of databytes in rules.
- Fixed crash in plugin cvm-validate when the lookup secret was unset.
- pop3front-auth now supports a no-argument variant on the AUTH command,
used by KMail to test for authentication modes, and documented
in http://www.tools.ietf.org/html/draft-myers-sasl-pop3-05
Thanks Bernhard Graf for the initial patch
- pop3front-auth and -maildir now support the CAPA command.
Thanks Bernhard Graf for the initial patch
- Made imapfront-auth more compatible with Courier IMAP by adding extra
bits to the CAPABILITY command. Thanks Bernhard Graf.
- plugin-cvm-validate handles modules that provide an "out of scope"
fact by passing to the next plugin.
- Fixed handling of addresses without a domain in @file rules.
Thanks Jorge Valdes
1.11:
- Fixed the main mailfront program to clean up temporary files properly.
- Modified the SMTP protocol module to export the SASL authentication
information internally.
- Modified the check-fqdn plugin to append $DEFAULTHOST and
$DEFAULTDOMAIN to addresses if necessary.
- Added separate connect and send timeouts and a maximum message size to
the ClamAV plugin, and fixed a bug with handling port numbers
when using multiple IPs.
- Modified the ClamAV plugin to prefer $CLAMAV_* settings over $CLAMD_*
- Added plugin API documentation.
1.10:
- Added a ClamAV virus scanner plugin. Note: Using this plugin will
cause mailfront to save messages to temporary files. See
mailfront.html for details.
- Modified the plugin API to add a version code, a flags word, and to
(optionally) save messages to a temporary file.
- Fixed a few cases where the UCSPI-TCP protocol was assumed.
- Fixed pop3front-maildir breakage on dietlibc/uClibc and empty
maildirs. Thanks Wayne Marshall.
1.01:
- Fixed a bug in the counters plugin that triggered a problem in the
SMTP protocol when handling the SIZE=# parameter.
- Reversed the order of cvm-validate and qmail-validate in the wrapper
scripts (and documentation) due to the semantics of the two plugins.
- Added a list of built-in plugins. The list currently contains the
three accept* plugins, which are extremely trivial.
1.0:
Mailfront has been rewritten to be totally modular. The core mailfront
program loads the protocol, backend, and all plugin behaviors at run
time from shared objects.
The previous commands, such as smtpfront-qmail, are now shell script
wrappers for the main "mailfront" command, and as such are depricated in
favor of using "mailfront" directly. The *front-qmail wrappers preload
all the plugins that were previously compiled into the corresponding
programs:
check-fqdn counters mailrules relayclient cvm-validate
qmail-validate add-received patterns accept-sender
NOTE: The *front-reject backends have been dropped in favor of a plugin.
In addition, the $REQUIRE_AUTH feature has been moved to another plugin.
If you used this backend or feature you will need to adjust your
configuration accordingly.
2009-04-08 03:44:04 +02:00
|
|
|
done
|
|
|
|
|
2017-01-02 03:19:46 +01:00
|
|
|
BUILDLINK_API_DEPENDS.bglibs+= bglibs>=2.01
|
2005-07-20 05:30:19 +02:00
|
|
|
.include "../../devel/bglibs/buildlink3.mk"
|
2017-01-02 03:19:46 +01:00
|
|
|
BUILDLINK_API_DEPENDS.cvm+= cvm>=0.97
|
2005-07-20 05:30:19 +02:00
|
|
|
.include "../../security/cvm/buildlink3.mk"
|
|
|
|
.include "../../mk/djbware.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|