1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Mail Avenger is a highly-configurable, MTA-independent SMTP server

daemon. It lets users run messages through filters like ClamAV and
SpamAssassin during SMTP transactions, so the server can reject mail
before assuming responsibility for its delivery. Other unique features
include TCP SYN fingerprint and network route recording, verification
of sender addresses through SMTP callbacks, SPF (sender policy
framework) as a general policy language, qmail-style control over both
SMTP-level behavior and local delivery of extension addresses,
mail-bomb protection, integration with kernel firewalls, and more.

WWW: http://www.mailavenger.org/

PR:		ports/80800
Submitted by:	David Mazieres <dm+bugs+avenger@mailavenger.org>
This commit is contained in:
Jean-Yves Lefort 2005-05-09 23:19:58 +00:00
parent 54b3c9320d
commit 88edf9ec08
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134961
7 changed files with 159 additions and 0 deletions

View File

@ -19,6 +19,7 @@
SUBDIR += asmail
SUBDIR += autorespond
SUBDIR += autosig
SUBDIR += avenger
SUBDIR += balsa
SUBDIR += bayespam
SUBDIR += bbmail

38
mail/avenger/Makefile Normal file
View File

@ -0,0 +1,38 @@
# New ports collection makefile for: avenger
# Date created: 8 May 2005
# Whom: dm
#
# $FreeBSD$
#
PORTNAME= avenger
PORTVERSION= 0.6.2
CATEGORIES= mail
MASTER_SITES= http://www.mailavenger.org/dist/
MAINTAINER= dm+bug+avenger@mailavenger.org
COMMENT= An anti-spam SMTP server
LIB_DEPENDS= db-4.3:${PORTSDIR}/databases/db43
GNU_CONFIGURE= yes
USE_REINPLACE= yes
MAN1= aliascheck.1 avenger.1 dbutil.1 deliver.1 dotlock.1 \
edinplace.1 macutil.1 mailexec.1 match.1 smtpdcheck.1 synos.1
MAN5= asmtpd.conf.5
MAN8= asmtpd.8 avenger.local.8
CONFIGURE_ARGS= --with-db=${LOCALBASE}
post-patch:
@${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e \
's|\(/etc/avenger\)|${PREFIX}\1|g' {} \;
pre-install:
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
post-install:
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>

2
mail/avenger/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (avenger-0.6.2.tar.gz) = 40d81f693192d79c1c1a3070f6df54d7
SIZE (avenger-0.6.2.tar.gz) = 756450

View File

@ -0,0 +1,32 @@
#!/bin/sh
if [ -n "${PACKAGE_BUILDING}" ]; then
exit 0
fi
if [ "$2" != "POST-DEINSTALL" ]; then
exit 0
fi
USER=avenger
GROUP=avenger
AVDIR=/var/spool/avenger
AVETC=${PKG_PREFIX}/etc/avenger
PW=/usr/sbin/pw
if ${PW} groupshow "${GROUP}" >/dev/null 2>&1; then
echo "If you're done with Mail Avenger permanently, delete the $GROUP group manually: pw groupdel ${GROUP}" | fmt
fi
if ${PW} usershow "${USER}" >/dev/null 2>&1; then
echo
echo "If you're done with Mail Avenger permanently, delete the $USER user manually: pw userdel ${USER}" | fmt
fi
for dir in "$AVETC" "$AVDIR"; do
if [ -d "$dir" ] && ! rmdir $dir 2>/dev/null; then
echo
echo "You may wish to investigate the contents of $dir and delete the directory if you're done with Mail Avenger permanently." | fmt
fi
done

11
mail/avenger/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
Mail Avenger is a highly-configurable, MTA-independent SMTP server
daemon. It lets users run messages through filters like ClamAV and
SpamAssassin during SMTP transactions, so the server can reject mail
before assuming responsibility for its delivery. Other unique features
include TCP SYN fingerprint and network route recording, verification
of sender addresses through SMTP callbacks, SPF (sender policy
framework) as a general policy language, qmail-style control over both
SMTP-level behavior and local delivery of extension addresses,
mail-bomb protection, integration with kernel firewalls, and more.
WWW: http://www.mailavenger.org/

61
mail/avenger/pkg-install Normal file
View File

@ -0,0 +1,61 @@
#!/bin/sh
if [ -n "${PACKAGE_BUILDING}" ]; then
exit 0
fi
USER=avenger
GROUP=avenger
UID=172
GID=172
AVDIR=/var/spool/avenger
AVETC=${PKG_PREFIX}/etc/avenger
PW=/usr/sbin/pw
if [ "$2" = "PRE-INSTALL" ]; then
echo -n "Checking for group '$GROUP'... "
if ! ${PW} groupshow $GROUP >/dev/null 2>&1; then
echo -n "doesn't exist, adding... "
if ${PW} groupadd $GROUP -g ${GID}; then
echo "success."
else
echo "FAILED!"
exit 1
fi
else
echo "exists."
fi
echo -n "Checking for user '$USER'... "
if ! ${PW} usershow $USER >/dev/null 2>&1; then
echo -n "doesn't exist, adding... "
if ${PW} useradd $USER -u ${UID} -c 'Mail Avenger' -d "$AVDIR" -g $GROUP -s /sbin/nologin -h -; then
echo "success."
else
echo "FAILED!"
exit 1
fi
else
echo "exists."
fi
elif [ "$2" = "POST-INSTALL" ]; then
echo -n "Checking for config directory ($AVETC)... "
if [ -d "$AVETC" ]; then
echo "already exists."
else
echo -n "creating... "
if mkdir $AVETC; then
echo "success."
else
echo "FAILED!"
exit 1
fi
fi
fi
exit 0

14
mail/avenger/pkg-plist Normal file
View File

@ -0,0 +1,14 @@
bin/aliascheck
bin/dbutil
bin/deliver
bin/dotlock
bin/edinplace
bin/macutil
bin/mailexec
bin/match
bin/smtpdcheck
bin/synos
libexec/avenger
libexec/avenger.local
sbin/asmtpd
share/pf.os