2012-10-08 14:19:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2012/10/08 12:19:02 asau Exp $
|
2010-12-24 08:19:35 +01:00
|
|
|
|
|
|
|
DISTNAME= amavisd-new-${VERSION}${PATCHLEVEL}
|
|
|
|
PKGNAME= amavisd-new-${VERSION}${PATCHLEVEL:S/-//}
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 1
|
2010-12-24 08:19:35 +01:00
|
|
|
CATEGORIES= mail security
|
|
|
|
MASTER_SITES= http://www.ijs.si/software/amavisd/ \
|
|
|
|
http://mirrors.catpipe.net/amavisd-new/ \
|
|
|
|
http://mirror.mainloop.se/amavisd/ \
|
|
|
|
http://mirror.cedratnet.com/amavisd-new/ \
|
|
|
|
http://mirror.omroep.nl/amavisd-new/
|
|
|
|
|
change maintainer (with ack from the previous one)
update to 2.7.0. Excerpt from the release notes:
NEW FEATURES SUMMARY
- significant improvements affecting a pre-queue content filtering setup
(time limiting, warm/flying restart, ...) - requires Postfix 2.7.0 and
SpamAssassin 3.3.0, or later;
- new daemon amavisd-signer makes it possible to sign mail with DKIM
signatures without requiring amavisd process to have access to private
signing keys;
- added support for the Sophos-SSSP, Avira SAVAPI and ClamAV clamd streaming
protocols allows amavisd to communicate with these antivirus solutions;
- allow specifying multiple (fail-over) back-end mailers for resubmission
of messages from amavisd back to MTA;
- support for Postfix 2.8.0 XFORWARD IDENT, passes a local message identifier
(queue id) downstream to a post-queue content filter and back to Postfix;
- speedup in data transfer rate on receiving large mail via SMTP/LMTP
sessions by a factor of 3.9 for plain text sessions, and by a factor
of 11 for encrypted (TLS) sessions;
- recognize and insert header fields as prepared by SpamAssassin 3.3.0
or later through its 'add_header' configuration option;
- a new setting allows a forward_method to be chosen based on a message
content type and/or recipient address; this may be useful for outgoing
mail routing purposes or to implement sender reputation schemes;
- per-recipient (or per- policy bank) SpamAssassin configuration files or
SQL configuration sets are supported (@sa_userconf_maps), and per-recipient
SQL Bayes database usernames (@sa_username_maps);
- new macros: client_helo, client_addr, client_port, client_addr_port,
mime2utf8, rusage, ADDEDHEADERHAM, ADDEDHEADERSPAM, banned_parts_as_attr,
actions_performed, new arguments to macros dkim, header_field, HEADER,
YESNO and YESNOCAPS;
- @listen_sockets setting offers a unified configuration of listening
sockets; it may be configured directly, or the traditional way: the
$inet_socket_port, $unix_socketname and $inet_socket_bind just add their
entries to the @listen_sockets list;
- lists of lookup tables (the @*_maps variables) can now contain
explicit SQL and LDAP lookup objects as their elements, instead of
(or in addition to) the implied SQL and LDAP lookups;
- a new configuration variable @virus_name_to_policy_bank_maps allows
loading of policy banks based on a virus name;
- a new configuration variable $mail_id_size_bits allows setting the size
of randomly generated mail_id and secret_id codes;
- a new configuration variable $sql_store_info_for_all_msgs allows storing
information on mail messages selectively just for quarantined messages;
- added SNMP counters InMsgsStatus* which combine the final mail checking
status with a direction of a mail flow;
- optional transparent archival quarantine, retaining envelope recipient
addresses on delivery to a dedicated SMTP server;
2011-10-25 22:33:07 +02:00
|
|
|
MAINTAINER= spz@NetBSD.org
|
2010-12-24 08:19:35 +01:00
|
|
|
HOMEPAGE= http://www.ijs.si/software/amavisd/
|
|
|
|
COMMENT= Daemonized interface between MTA and content checkers
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
change maintainer (with ack from the previous one)
update to 2.7.0. Excerpt from the release notes:
NEW FEATURES SUMMARY
- significant improvements affecting a pre-queue content filtering setup
(time limiting, warm/flying restart, ...) - requires Postfix 2.7.0 and
SpamAssassin 3.3.0, or later;
- new daemon amavisd-signer makes it possible to sign mail with DKIM
signatures without requiring amavisd process to have access to private
signing keys;
- added support for the Sophos-SSSP, Avira SAVAPI and ClamAV clamd streaming
protocols allows amavisd to communicate with these antivirus solutions;
- allow specifying multiple (fail-over) back-end mailers for resubmission
of messages from amavisd back to MTA;
- support for Postfix 2.8.0 XFORWARD IDENT, passes a local message identifier
(queue id) downstream to a post-queue content filter and back to Postfix;
- speedup in data transfer rate on receiving large mail via SMTP/LMTP
sessions by a factor of 3.9 for plain text sessions, and by a factor
of 11 for encrypted (TLS) sessions;
- recognize and insert header fields as prepared by SpamAssassin 3.3.0
or later through its 'add_header' configuration option;
- a new setting allows a forward_method to be chosen based on a message
content type and/or recipient address; this may be useful for outgoing
mail routing purposes or to implement sender reputation schemes;
- per-recipient (or per- policy bank) SpamAssassin configuration files or
SQL configuration sets are supported (@sa_userconf_maps), and per-recipient
SQL Bayes database usernames (@sa_username_maps);
- new macros: client_helo, client_addr, client_port, client_addr_port,
mime2utf8, rusage, ADDEDHEADERHAM, ADDEDHEADERSPAM, banned_parts_as_attr,
actions_performed, new arguments to macros dkim, header_field, HEADER,
YESNO and YESNOCAPS;
- @listen_sockets setting offers a unified configuration of listening
sockets; it may be configured directly, or the traditional way: the
$inet_socket_port, $unix_socketname and $inet_socket_bind just add their
entries to the @listen_sockets list;
- lists of lookup tables (the @*_maps variables) can now contain
explicit SQL and LDAP lookup objects as their elements, instead of
(or in addition to) the implied SQL and LDAP lookups;
- a new configuration variable @virus_name_to_policy_bank_maps allows
loading of policy banks based on a virus name;
- a new configuration variable $mail_id_size_bits allows setting the size
of randomly generated mail_id and secret_id codes;
- a new configuration variable $sql_store_info_for_all_msgs allows storing
information on mail messages selectively just for quarantined messages;
- added SNMP counters InMsgsStatus* which combine the final mail checking
status with a direction of a mail flow;
- optional transparent archival quarantine, retaining envelope recipient
addresses on delivery to a dedicated SMTP server;
2011-10-25 22:33:07 +02:00
|
|
|
VERSION= 2.7.0
|
2010-12-24 08:19:35 +01:00
|
|
|
PATCHLEVEL= # empty
|
|
|
|
|
|
|
|
DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar
|
|
|
|
DEPENDS+= p5-Archive-Zip>=1.14:../../archivers/p5-Archive-Zip
|
|
|
|
DEPENDS+= p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB
|
|
|
|
DEPENDS+= p5-IO-Compress>=2.017:../../devel/p5-IO-Compress
|
|
|
|
DEPENDS+= p5-Convert-TNEF-[0-9]*:../../converters/p5-Convert-TNEF
|
|
|
|
DEPENDS+= p5-Convert-UUlib>=1.05:../../converters/p5-Convert-UUlib
|
|
|
|
DEPENDS+= p5-Digest-MD5>=2.22:../../security/p5-Digest-MD5
|
|
|
|
DEPENDS+= p5-Mail-DKIM>=0.31:../../mail/p5-Mail-DKIM
|
|
|
|
DEPENDS+= p5-MIME-tools>=5.417:../../mail/p5-MIME-tools
|
|
|
|
DEPENDS+= p5-MailTools>=1.58:../../mail/p5-MailTools
|
|
|
|
DEPENDS+= p5-IO-stringy-[0-9]*:../../devel/p5-IO-stringy
|
|
|
|
DEPENDS+= p5-Net-Server>=0.88:../../net/p5-Net-Server
|
|
|
|
DEPENDS+= p5-Time-HiRes>=1.49:../../time/p5-Time-HiRes
|
|
|
|
DEPENDS+= p5-Unix-Syslog-[0-9]*:../../sysutils/p5-Unix-Syslog
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/amavisd-new-${VERSION}
|
|
|
|
|
|
|
|
CONFLICTS+= amavis-[0-9]*
|
|
|
|
CONFLICTS+= amavis-perl-[0-9]*
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
USE_TOOLS+= perl:run
|
|
|
|
REPLACE_PERL+= amavisd amavisd-nanny amavisd-release amavisd-agent
|
|
|
|
|
|
|
|
AMAVIS_USER?= vscan
|
|
|
|
AMAVIS_GROUP?= vscan
|
|
|
|
AMAVIS_DIR?= ${VARBASE}/amavis
|
|
|
|
AMAVIS_QUARANTINE?= ${VARBASE}/virusmails
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/amavisd-new
|
|
|
|
EGDIR= ${PREFIX}/share/examples/amavisd-new
|
|
|
|
MESSAGE_SRC= ${PKGDIR}/MESSAGE
|
|
|
|
|
|
|
|
PKG_GROUPS_VARS+= AMAVIS_GROUP
|
|
|
|
PKG_USERS_VARS+= AMAVIS_USER
|
change maintainer (with ack from the previous one)
update to 2.7.0. Excerpt from the release notes:
NEW FEATURES SUMMARY
- significant improvements affecting a pre-queue content filtering setup
(time limiting, warm/flying restart, ...) - requires Postfix 2.7.0 and
SpamAssassin 3.3.0, or later;
- new daemon amavisd-signer makes it possible to sign mail with DKIM
signatures without requiring amavisd process to have access to private
signing keys;
- added support for the Sophos-SSSP, Avira SAVAPI and ClamAV clamd streaming
protocols allows amavisd to communicate with these antivirus solutions;
- allow specifying multiple (fail-over) back-end mailers for resubmission
of messages from amavisd back to MTA;
- support for Postfix 2.8.0 XFORWARD IDENT, passes a local message identifier
(queue id) downstream to a post-queue content filter and back to Postfix;
- speedup in data transfer rate on receiving large mail via SMTP/LMTP
sessions by a factor of 3.9 for plain text sessions, and by a factor
of 11 for encrypted (TLS) sessions;
- recognize and insert header fields as prepared by SpamAssassin 3.3.0
or later through its 'add_header' configuration option;
- a new setting allows a forward_method to be chosen based on a message
content type and/or recipient address; this may be useful for outgoing
mail routing purposes or to implement sender reputation schemes;
- per-recipient (or per- policy bank) SpamAssassin configuration files or
SQL configuration sets are supported (@sa_userconf_maps), and per-recipient
SQL Bayes database usernames (@sa_username_maps);
- new macros: client_helo, client_addr, client_port, client_addr_port,
mime2utf8, rusage, ADDEDHEADERHAM, ADDEDHEADERSPAM, banned_parts_as_attr,
actions_performed, new arguments to macros dkim, header_field, HEADER,
YESNO and YESNOCAPS;
- @listen_sockets setting offers a unified configuration of listening
sockets; it may be configured directly, or the traditional way: the
$inet_socket_port, $unix_socketname and $inet_socket_bind just add their
entries to the @listen_sockets list;
- lists of lookup tables (the @*_maps variables) can now contain
explicit SQL and LDAP lookup objects as their elements, instead of
(or in addition to) the implied SQL and LDAP lookups;
- a new configuration variable @virus_name_to_policy_bank_maps allows
loading of policy banks based on a virus name;
- a new configuration variable $mail_id_size_bits allows setting the size
of randomly generated mail_id and secret_id codes;
- a new configuration variable $sql_store_info_for_all_msgs allows storing
information on mail messages selectively just for quarantined messages;
- added SNMP counters InMsgsStatus* which combine the final mail checking
status with a direction of a mail flow;
- optional transparent archival quarantine, retaining envelope recipient
addresses on delivery to a dedicated SMTP server;
2011-10-25 22:33:07 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
2010-12-24 08:19:35 +01:00
|
|
|
BUILD_DEFS+= AMAVIS_DIR AMAVIS_QUARANTINE
|
|
|
|
FILES_SUBST+= AMAVIS_USER=${AMAVIS_USER}
|
|
|
|
FILES_SUBST+= AMAVIS_GROUP=${AMAVIS_GROUP}
|
|
|
|
FILES_SUBST+= AMAVIS_DIR=${AMAVIS_DIR}
|
|
|
|
FILES_SUBST+= AMAVIS_QUARANTINE=${AMAVIS_QUARANTINE:Q}
|
|
|
|
|
|
|
|
PKG_GROUPS= ${AMAVIS_GROUP}
|
|
|
|
PKG_USERS= ${AMAVIS_USER}:${AMAVIS_GROUP}
|
|
|
|
|
|
|
|
PKG_GECOS.${AMAVIS_USER}= AMaViS Virus Scanning Account
|
|
|
|
PKG_HOME.${AMAVIS_USER}= ${AMAVIS_DIR}
|
|
|
|
PKG_SHELL.${AMAVIS_USER}= ${SH}
|
|
|
|
|
2012-06-08 14:01:23 +02:00
|
|
|
OWN_DIRS+= ${AMAVIS_DIR} ${AMAVIS_DIR}/db ${AMAVIS_DIR}/tmp
|
|
|
|
OWN_DIRS+= ${AMAVIS_QUARANTINE}
|
|
|
|
OWN_DIRS_PERMS+= ${AMAVIS_DIR} ${AMAVIS_USER} ${AMAVIS_GROUP} 750
|
|
|
|
OWN_DIRS_PERMS+= ${AMAVIS_DIR}/db ${AMAVIS_USER} ${AMAVIS_GROUP} 750
|
|
|
|
OWN_DIRS_PERMS+= ${AMAVIS_DIR}/tmp ${AMAVIS_USER} ${AMAVIS_GROUP} 750
|
|
|
|
OWN_DIRS_PERMS+= ${AMAVIS_QUARANTINE} ${AMAVIS_USER} ${AMAVIS_GROUP} 750
|
|
|
|
|
2010-12-24 08:19:35 +01:00
|
|
|
RCD_SCRIPTS= amavisd
|
|
|
|
CONF_FILES= ${EGDIR}/amavisd.conf-minimal ${PKG_SYSCONFDIR}/amavisd.conf
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.amavisd-new
|
|
|
|
PKG_SUPPORTED_OPTIONS= milter
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
PLIST_VARS+= milter
|
|
|
|
.if !empty(PKG_OPTIONS:Mmilter)
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --with-runtime-dir=${AMAVIS_DIR}
|
|
|
|
CONFIGURE_ARGS+= --with-sockname=${AMAVIS_DIR}/amavisd.sock
|
|
|
|
CONFIGURE_ARGS+= --with-user=${AMAVIS_USER}
|
|
|
|
CONFIGURE_ARGS+= --with-milterinc=${BUILDLINK_PREFIX.libmilter}/include
|
|
|
|
CONFIGURE_ARGS+= --with-milterlib=${BUILDLINK_PREFIX.libmilter}/lib
|
|
|
|
CONFIGURE_DIRS= helper-progs
|
|
|
|
BUILD_DIRS= helper-progs
|
|
|
|
RCD_SCRIPTS+= amavismilter
|
|
|
|
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.milter
|
|
|
|
PLIST.milter= yes
|
|
|
|
|
|
|
|
PTHREAD_OPTS+= require native # doesn't work with pth
|
|
|
|
. include "../../mail/libmilter/buildlink3.mk"
|
|
|
|
. include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.else
|
|
|
|
USE_LANGUAGES= # none, not even C
|
|
|
|
|
|
|
|
do-build: replace-interpreter
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SUBST_CLASSES+= amavisd
|
|
|
|
SUBST_STAGE.amavisd= pre-build
|
|
|
|
SUBST_FILES.amavisd= amavisd amavisd.conf
|
|
|
|
SUBST_SED.amavisd= \
|
|
|
|
-e "s|/etc/amavisd.conf|${PKG_SYSCONFDIR}/amavisd.conf|" \
|
|
|
|
-e "s|@AMAVIS_DIR@|${AMAVIS_DIR}|g" \
|
|
|
|
-e "s|@AMAVIS_USER@|${AMAVIS_USER}|g" \
|
|
|
|
-e "s|@AMAVIS_GROUP@|${AMAVIS_GROUP}|g" \
|
|
|
|
-e "s|@AMAVIS_QUARANTINE@|${AMAVIS_QUARANTINE}|g" \
|
|
|
|
-e "s|@LOCALBASE@|${LOCALBASE}|g" \
|
|
|
|
-e "s|@PREFIX@|${PREFIX}|g"
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= sbin ${DOCDIR} ${EGDIR}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.if !empty(PKG_OPTIONS:Mmilter)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis-milter ${DESTDIR}${PREFIX}/sbin
|
|
|
|
.endif
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/amavisd ${DESTDIR}${PREFIX}/sbin/amavisd
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/amavisd-nanny ${DESTDIR}${PREFIX}/sbin/amavisd-nanny
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/amavisd-release ${DESTDIR}${PREFIX}/sbin/amavisd-release
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/amavisd-agent ${DESTDIR}${PREFIX}/sbin/amavisd-agent
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/AAAREADME.first ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LDAP.schema ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/MANIFEST ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/RELEASE_NOTES ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README_FILES/amavisd-new-docs.html ${DESTDIR}${DOCDIR}
|
|
|
|
for file in README_FILES/README.*; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${DESTDIR}${DOCDIR}; \
|
|
|
|
done
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/amavisd.conf ${DESTDIR}${EGDIR}/amavisd.conf-minimal
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/amavisd.conf-default ${DESTDIR}${EGDIR}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|