Date: Wed, 6 Jul 2005 21:57:08 -0400 (EDT) From: David Mazieres <dm+bugs+avenger@mailavenger.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: dm+bugs+avenger@mailavenger.org Subject: ports/83077: Update port: mail/avenger to version 0.6.5 Message-ID: <200507070157.j671v8fg063518@amsterdam.lcs.mit.edu> Resent-Message-ID: <200507070200.j6720T0i063832@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83077 >Category: ports >Synopsis: Update port: mail/avenger to version 0.6.5 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jul 07 02:00:28 GMT 2005 >Closed-Date: >Last-Modified: >Originator: David Mazieres >Release: FreeBSD 4.9-RELEASE-p11 i386 >Organization: NYU >Environment: System: FreeBSD amsterdam.lcs.mit.edu 4.9-RELEASE-p11 FreeBSD 4.9-RELEASE-p11 #3: Wed Feb 23 10:03:41 EST 2005 rtm@toil.lcs.mit.edu:/usr/src/sys/compile/PDOS i386 >Description: This is an update of the Mail Avenger port. The version in the ports tree is 0.6.2, while this port is for version 0.6.5. In addition, I fixed a few other things: - Corrected my email address in the Makefile (oops... sorry about that) - Removed the patches in files/, as these problems are now fixed in the mail avenger distribution. - Changed the configure arguments rather than running REINPLACE_CMD, as this is cleaner. - Removed the hard-coding of UID and GID for avenger, since these can be anything, there is no point in tying down particular numbers in the pkg-install script. >How-To-Repeat: Just unshar the attached file into /usr/ports/mail/avenger. Also, delete /usr/ports/mail/avenger/files/, as these are no longer needed. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # mail/avenger/Makefile # mail/avenger/distinfo # mail/avenger/pkg-deinstall # mail/avenger/pkg-descr # mail/avenger/pkg-install # mail/avenger/pkg-plist # echo x - mail/avenger/Makefile sed 's/^X//' >mail/avenger/Makefile << 'END-of-mail/avenger/Makefile' X# New ports collection makefile for: avenger X# Date created: 8 May 2005 X# Whom: dm X# X# $FreeBSD: ports/mail/avenger/Makefile,v 1.3 2005/07/02 01:16:59 kris Exp $ X# X XPORTNAME= avenger XPORTVERSION= 0.6.5 XCATEGORIES= mail XMASTER_SITES= http://www.mailavenger.org/dist/ X XMAINTAINER= dm+bugs+avenger@mailavenger.org XCOMMENT= An anti-spam SMTP server X XLIB_DEPENDS= db-4.3:${PORTSDIR}/databases/db43 X XGNU_CONFIGURE= yes XUSE_REINPLACE= yes X XMAN1= aliascheck.1 avenger.1 dbutil.1 deliver.1 dotlock.1 \ X edinplace.1 macutil.1 mailexec.1 match.1 smtpdcheck.1 synos.1 XMAN5= asmtpd.conf.5 XMAN8= asmtpd.8 avenger.local.8 X XAVETC= ${PREFIX}/etc XCONFIGURE_ENV= WFLAGS='-Wall' XCONFIGURE_ARGS= --with-db=${LOCALBASE} --with-etcdir=${AVETC} X Xpost-patch: X rm -f ${WRKSRC}/doc/*.[158] X Xpre-install: X PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL X Xpost-install: X PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL X X.include <bsd.port.mk> END-of-mail/avenger/Makefile echo x - mail/avenger/distinfo sed 's/^X//' >mail/avenger/distinfo << 'END-of-mail/avenger/distinfo' XMD5 (avenger-0.6.5.tar.gz) = cb546fd4872496441c329ff479c488c9 XSIZE (avenger-0.6.5.tar.gz) = 759989 END-of-mail/avenger/distinfo echo x - mail/avenger/pkg-deinstall sed 's/^X//' >mail/avenger/pkg-deinstall << 'END-of-mail/avenger/pkg-deinstall' X#!/bin/sh X Xif [ -n "${PACKAGE_BUILDING}" ]; then X exit 0 Xfi X Xif [ "$2" != "POST-DEINSTALL" ]; then X exit 0 Xfi X XUSER=avenger XGROUP=avenger XAVDIR=/var/spool/avenger XAVETC=${PKG_PREFIX}/etc/avenger X XPW=/usr/sbin/pw X Xif ${PW} groupshow "${GROUP}" >/dev/null 2>&1; then X echo "If you're done with Mail Avenger permanently, delete the $GROUP group manually: pw groupdel ${GROUP}" | fmt Xfi X Xif ${PW} usershow "${USER}" >/dev/null 2>&1; then X echo X echo "If you're done with Mail Avenger permanently, delete the $USER user manually: pw userdel ${USER}" | fmt Xfi X Xfor dir in "$AVETC" "$AVDIR"; do X if [ -d "$dir" ] && ! rmdir $dir 2>/dev/null; then X echo X echo "You may wish to investigate the contents of $dir and delete the directory if you're done with Mail Avenger permanently." | fmt X fi Xdone END-of-mail/avenger/pkg-deinstall echo x - mail/avenger/pkg-descr sed 's/^X//' >mail/avenger/pkg-descr << 'END-of-mail/avenger/pkg-descr' XMail Avenger is a highly-configurable, MTA-independent SMTP server Xdaemon. It lets users run messages through filters like ClamAV and XSpamAssassin during SMTP transactions, so the server can reject mail Xbefore assuming responsibility for its delivery. Other unique features Xinclude TCP SYN fingerprint and network route recording, verification Xof sender addresses through SMTP callbacks, SPF (sender policy Xframework) as a general policy language, qmail-style control over both XSMTP-level behavior and local delivery of extension addresses, Xmail-bomb protection, integration with kernel firewalls, and more. X XWWW: http://www.mailavenger.org/ END-of-mail/avenger/pkg-descr echo x - mail/avenger/pkg-install sed 's/^X//' >mail/avenger/pkg-install << 'END-of-mail/avenger/pkg-install' X#!/bin/sh X Xif [ -n "${PACKAGE_BUILDING}" ]; then X exit 0 Xfi X XUSER=avenger XGROUP=avenger XAVDIR=/var/spool/avenger XAVETC=${PKG_PREFIX}/etc/avenger X XPW=/usr/sbin/pw X X Xif [ "$2" = "PRE-INSTALL" ]; then X echo -n "Checking for group '$GROUP'... " X X if ! ${PW} groupshow $GROUP >/dev/null 2>&1; then X echo -n "doesn't exist, adding... " X if ${PW} groupadd $GROUP; then X echo "success." X else X echo "FAILED!" X exit 1 X fi X else X echo "exists." X fi X X echo -n "Checking for user '$USER'... " X X if ! ${PW} usershow $USER >/dev/null 2>&1; then X echo -n "doesn't exist, adding... " X if ${PW} useradd $USER -c 'Mail Avenger' -d "$AVDIR" -g $GROUP -s /sbin/nologin -h -; then X echo "success." X else X echo "FAILED!" X exit 1 X fi X else X echo "exists." X fi Xelif [ "$2" = "POST-INSTALL" ]; then X echo -n "Checking for config directory ($AVETC)... " X X if [ -d "$AVETC" ]; then X echo "already exists." X else X echo -n "creating... " X if mkdir $AVETC; then X echo "success." X else X echo "FAILED!" X exit 1 X fi X fi Xfi X Xexit 0 END-of-mail/avenger/pkg-install echo x - mail/avenger/pkg-plist sed 's/^X//' >mail/avenger/pkg-plist << 'END-of-mail/avenger/pkg-plist' Xbin/aliascheck Xbin/dbutil Xbin/deliver Xbin/dotlock Xbin/edinplace Xbin/macutil Xbin/mailexec Xbin/match Xbin/smtpdcheck Xbin/synos Xlibexec/avenger Xlibexec/avenger.local Xsbin/asmtpd Xshare/pf.os END-of-mail/avenger/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507070157.j671v8fg063518>