Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  4 May 2005 02:06:08 +0200 (CEST)
From:      Dario Freni <saturnero@gufi.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/80596: New port: mail/proxsmtp A flexible SMTP filter which can act also as trasparent proxy
Message-ID:  <20050504000608.B87515A1E@jail1-fbsd4.consiagnet.it>
Resent-Message-ID: <200505040000.j4400G5S079849@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         80596
>Category:       ports
>Synopsis:       New port: mail/proxsmtp A flexible SMTP filter which can act also as trasparent proxy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 04 00:00:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dario Freni
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
>Description:
	
ProxSMTP is a flexible tool that allows you to reject, change or log
email based on arbitrary critera. It accepts SMTP connections and
forwards the SMTP commands and responses to another SMTP server. You
need to be able to write the filtering scripts that integrate it with
your particular needs.

This port is an adapted version of security/clamsmtp one, as the two
programs are from the same author and quite similar in functionality.

>How-To-Repeat:
>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/proxsmtp
#	mail/proxsmtp/files
#	mail/proxsmtp/files/patch-configure
#	mail/proxsmtp/files/proxsmtpd.sh.tmpl
#	mail/proxsmtp/Makefile
#	mail/proxsmtp/distinfo
#	mail/proxsmtp/pkg-descr
#	mail/proxsmtp/pkg-message
#	mail/proxsmtp/pkg-plist
#
echo c - mail/proxsmtp
mkdir -p mail/proxsmtp > /dev/null 2>&1
echo c - mail/proxsmtp/files
mkdir -p mail/proxsmtp/files > /dev/null 2>&1
echo x - mail/proxsmtp/files/patch-configure
sed 's/^X//' >mail/proxsmtp/files/patch-configure << 'END-of-mail/proxsmtp/files/patch-configure'
X--- configure.orig	Fri Apr 15 07:18:10 2005
X+++ configure	Wed Apr 20 15:45:54 2005
X@@ -3156,7 +3156,7 @@
X # which indicates that we try without any flags at all, and "pthread-config"
X # which is a program returning the flags for the Pth emulation library.
X 
X-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
X+acx_pthread_flags="pthreads none -Kthread -kthread %%PTHREAD_LIBS%% -pthreads lthread -mthreads pthread --thread-safe -mt pthread-config"
X 
X # The ordering *is* (sometimes) important.  Some notes on the
X # individual items follow:
END-of-mail/proxsmtp/files/patch-configure
echo x - mail/proxsmtp/files/proxsmtpd.sh.tmpl
sed 's/^X//' >mail/proxsmtp/files/proxsmtpd.sh.tmpl << 'END-of-mail/proxsmtp/files/proxsmtpd.sh.tmpl'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: proxsmtpd
X# REQUIRE: DAEMON
X# KEYWORD: FreeBSD
X#
X# Add the fellowing line to /etc/rc.conf to enable proxsmtpd:
X#
X# proxsmtpd_enable="YES"
X#
X
X. %%RC_SUBR%%
X
Xname=proxsmtpd
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/sbin/${name}
Xsig_stop=-KILL
X
Xload_rc_config ${name}
X
Xproxsmtpd_enable=${proxsmtpd_enable-"NO"}
Xproxsmtpd_conf=${proxsmtpd_conf-"%%PREFIX%%/etc/proxsmtpd.conf"}
Xproxsmtpd_debug=${proxsmtpd_debug-"0"}
X
Xcommand_args="-f ${proxsmtpd_conf}"
X
Xrun_rc_command "$1"
END-of-mail/proxsmtp/files/proxsmtpd.sh.tmpl
echo x - mail/proxsmtp/Makefile
sed 's/^X//' >mail/proxsmtp/Makefile << 'END-of-mail/proxsmtp/Makefile'
X# New ports collection makefile for:	proxsmtp
X# Date created:		2005-05-03
X# Whom:			Dario Freni <saturnero@gufi.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	proxsmtp
XPORTVERSION=	1.2.1
XCATEGORIES=	mail security
XMASTER_SITES=	http://memberwebs.com/nielsen/software/proxsmtp/
X
XMAINTAINER=	saturnero@gufi.org
XCOMMENT=	A flexible SMTP filter which can act also as trasparent proxy
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
XUSE_RC_SUBR=	yes
XRC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
XSTARTUP_FILE=	${PREFIX}/etc/rc.d/proxsmtpd.sh
X
XMAN5=		proxsmtpd.conf.5
XMAN8=		proxsmtpd.8
X
X.if !defined(NOPORTDOCS)
XPORTDOCS=	*
X.endif
X
Xpost-install:
X	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
X		${FILESDIR}/proxsmtpd.sh.tmpl > ${STARTUP_FILE}
X	@${INSTALL_DATA} ${WRKSRC}/doc/proxsmtpd.conf ${PREFIX}/etc/proxsmtpd.conf-sample
X	@${CHMOD} 755 ${STARTUP_FILE}
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X#	${INSTALL_DATA} ${WRKSRC}/scripts/virus_action.sh ${DOCSDIR}
X.endif
X	@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
X
Xpost-patch:
X	@${REINPLACE_CMD} -e "s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS}," ${WRKSRC}/configure
X
X.include <bsd.port.mk>
END-of-mail/proxsmtp/Makefile
echo x - mail/proxsmtp/distinfo
sed 's/^X//' >mail/proxsmtp/distinfo << 'END-of-mail/proxsmtp/distinfo'
XMD5 (proxsmtp-1.2.1.tar.gz) = 7af2d5feafb1386934d347a5f5dc827e
XSIZE (proxsmtp-1.2.1.tar.gz) = 156525
END-of-mail/proxsmtp/distinfo
echo x - mail/proxsmtp/pkg-descr
sed 's/^X//' >mail/proxsmtp/pkg-descr << 'END-of-mail/proxsmtp/pkg-descr'
XProxSMTP is a flexible tool that allows you to reject, change or log
Xemail based on arbitrary critera. It accepts SMTP connections and
Xforwards the SMTP commands and responses to another SMTP server. You
Xneed to be able to write the filtering scripts that integrate it with
Xyour particular needs.
X
XAuthor:	Nielsen <nielsen at memberwebs.com>
XWWW:	http://memberwebs.com/nielsen/software/proxsmtp/
END-of-mail/proxsmtp/pkg-descr
echo x - mail/proxsmtp/pkg-message
sed 's/^X//' >mail/proxsmtp/pkg-message << 'END-of-mail/proxsmtp/pkg-message'
X/* ================================================================= */
XEdit /etc/rc.conf and set
X
Xproxsmtpd_enable="YES"
X
Xto enable proxsmtpd. 
X
XAlso, there is a proxsmtpd.conf-sample in %%PREFIX%%/etc/, 
Xrename to proxsmtpd.conf, otherwise specify -f option to your
Xconfig file. 
X
XTo work with postfix, See also
Xhttp://memberwebs.com/nielsen/software/proxsmtp/postfix.html
X/* ================================================================= */
END-of-mail/proxsmtp/pkg-message
echo x - mail/proxsmtp/pkg-plist
sed 's/^X//' >mail/proxsmtp/pkg-plist << 'END-of-mail/proxsmtp/pkg-plist'
X@comment $FreeBSD$
X@unexec [ ! -f /var/run/proxsmtpd.pid ] || %%PREFIX%%/etc/rc.d/proxsmtpd.sh stop || true
Xsbin/proxsmtpd
Xetc/rc.d/proxsmtpd.sh
Xetc/proxsmtpd.conf-sample
END-of-mail/proxsmtp/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:
 
 	<machine, os, target, libraries (multiple lines)>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050504000608.B87515A1E>