ports/63074: New port: mail/usendmail

Thomas-Martin Seck tmseck at netcologne.de
Thu Feb 19 18:20:32 UTC 2004


>Number:         63074
>Category:       ports
>Synopsis:       New port: mail/usendmail
>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:   Thu Feb 19 10:20:04 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Thomas-Martin Seck
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
private site in Germany
>Environment:
FreeBSD ports collection as of Feb 19, 2004.
	
>Description:
usendmail is designed to replace qmail's own 'sendmail' program.
It accepts more of the original sendmail's commandline options and
does not depend on environment variables to set the envelope sender.
The project's homepage is http://www.ohse.de/uwe/usendmail/
	
>How-To-Repeat:
	
>Fix:

	

--- usendmail.shar begins here ---
# 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:
#
#	usendmail
#	usendmail/files
#	usendmail/files/src_usendmail.c.patch
#	usendmail/Makefile
#	usendmail/distinfo
#	usendmail/pkg-descr
#	usendmail/pkg-message
#
echo c - usendmail
mkdir -p usendmail > /dev/null 2>&1
echo c - usendmail/files
mkdir -p usendmail/files > /dev/null 2>&1
echo x - usendmail/files/src_usendmail.c.patch
sed 's/^X//' >usendmail/files/src_usendmail.c.patch << 'END-of-usendmail/files/src_usendmail.c.patch'
X--- src/usendmail.c.orig	Thu Feb 19 17:38:12 2004
X+++ src/usendmail.c	Thu Feb 19 17:38:37 2004
X@@ -71,7 +71,7 @@
X static void tcpto(void) { runx("bin/qmail-tcpto"); }
X static void tcpok(void) { runx("bin/qmail-tcpok"); }
X 
X-const char auto_qmail[]="/var/qmail\0PATCHSPACE------------------------END";
X+const char auto_qmail[]="%%QMAIL_PREFIX%%\0PATCHSPACE------------------------END";
X static int flag_dummyi;
X static int flag_debug;
X static char *flag_env_debug;
END-of-usendmail/files/src_usendmail.c.patch
echo x - usendmail/Makefile
sed 's/^X//' >usendmail/Makefile << 'END-of-usendmail/Makefile'
X# New ports collection makefile for:	usendmail
X# Date created:				Feb 19, 2004
X# Whom:					Thomas Seck <tmseck at netcologne.de>
X#
X# $FreeBSD$
X#
X# Tunables: QMAIL_PREFIX: Where qmail resides (default: /var/qmail)
X
XPORTNAME=	usendmail
XPORTVERSION=	0.1.6
XCATEGORIES=	mail
XMASTER_SITES=	http://www.ohse.de/uwe/usendmail/
X
XMAINTAINER=	tmseck at netcologne.de
XCOMMENT=	A replacement for qmail's sendmail drop-in
X
XQMAIL_PREFIX?=	/var/qmail
XBUILD_DEPENDS=	${QMAIL_PREFIX}/bin/qmail-send:${PORTSDIR}/mail/qmail
XRUN_DEPENDS=	${QMAIL_PREFIX}/bin/qmail-send:${PORTSDIR}/mail/qmail
X
XEXTRA_PATCHES=	${WRKDIR}/src_usendmail.c.patch
XPKGMESSAGE=	${WRKDIR}/pkg-message
XWRKSRC=		${WRKDIR}/mail/${DISTNAME}
X
XPLIST_FILES=	sbin/usendmail
XPORTDOCS=	NEWS README
X
Xpre-patch:
X	@${SED} -e 's:%%QMAIL_PREFIX%%:${QMAIL_PREFIX}:g' \
X	    <${FILESDIR}/src_usendmail.c.patch \
X	    >${WRKDIR}/src_usendmail.c.patch
X
Xpost-build:
X	cd ${WRKSRC} && ./package/check
X
Xdo-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	cd ${WRKSRC}/src && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
X.endif
X	${INSTALL_PROGRAM} ${WRKSRC}/command/usendmail ${PREFIX}/sbin/
X
Xpost-install:
X	@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
X	    -e's:%%QMAIL_PREFIX%%:${QMAIL_PREFIX}:g' <pkg-message \
X	    >${PKGMESSAGE}
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-usendmail/Makefile
echo x - usendmail/distinfo
sed 's/^X//' >usendmail/distinfo << 'END-of-usendmail/distinfo'
XMD5 (usendmail-0.1.6.tar.gz) = de4b8f1ad8eb9b24b3b8d887aa94fddc
XSIZE (usendmail-0.1.6.tar.gz) = 51071
END-of-usendmail/distinfo
echo x - usendmail/pkg-descr
sed 's/^X//' >usendmail/pkg-descr << 'END-of-usendmail/pkg-descr'
Xusendmail is a replacement for the sendmail clone of the qmail package.
X
XIt accepts more of the original sendmail's commandline options and does
Xnot depend on environment variables to set the envelope sender.
X
XWWW: http://www.ohse.de/uwe/usendmail.html
END-of-usendmail/pkg-descr
echo x - usendmail/pkg-message
sed 's/^X//' >usendmail/pkg-message << 'END-of-usendmail/pkg-message'
X
Xusendmail has been successfully installed!
X
XNow you have to change your sendmail(8) wrapping:
X
XIf you are using mailwrapper(8), do the following:
X
Xin /etc/mail/mailer.conf replace the lines
X
Xsendmail	%%QMAIL_PREFIX%%/bin/sendmail
Xsend-mail	%%QMAIL_PREFIX%%/bin/sendmail
X
Xwith
X
Xsendmail	%%PREFIX%%/sbin/usendmail
Xsend-mail	%%PREFIX%%/sbin/usendmail
X
XOtherwise replace the link from /usr/sbin/sendmail to
X%%QMAIL_PREFIX%%/bin/sendmail with one to %%PREFIX%%/sbin/usendmail.
X
END-of-usendmail/pkg-message
exit
--- usendmail.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list