From ns88@Kolos.NS88.eu.org  Wed Jan 10 04:02:16 2001
Return-Path: <ns88@Kolos.NS88.eu.org>
Received: from Kolos.NS88.eu.org (ns88-5.arch.pan.wroc.pl [156.17.120.101])
	by hub.freebsd.org (Postfix) with ESMTP id 0056937B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 10 Jan 2001 04:02:07 -0800 (PST)
Received: (from ns88@localhost)
	by Kolos.NS88.eu.org (8.11.1/8.11.1) id f0AC21q51001;
	Wed, 10 Jan 2001 13:02:01 +0100 (CET)
	(envelope-from ns88)
Message-Id: <200101101202.f0AC21q51001@Kolos.NS88.eu.org>
Date: Wed, 10 Jan 2001 13:02:01 +0100 (CET)
From: ns88@k.pl
Reply-To: ns88@k.pl
To: FreeBSD-gnats-submit@freebsd.org
Subject: new port: ssmtp
X-Send-Pr-Version: 3.2

>Number:         24217
>Category:       ports
>Synopsis:       new port: ssmtp
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 10 04:10:01 PST 2001
>Closed-Date:    Sat May 19 04:53:55 PDT 2001
>Last-Modified:  Sat May 19 04:54:25 PDT 2001
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Submitter-Id:   current-users
 Originator:     Tomasz Paszkowski <ns88@k.pl>
 Priority:       low
 Category:       ports
 Class:          change-request
 
 Description: 
 This is sSMTP, a program that replaces sendmail on workstations that
 should send their mail via the departmental mailhub from which they pick up
 their mail (via pop, imap, rsmtp, pop_fetch, NFS... or the like).  This
 program accepts mail and sends it to the mailhub, optionally replacing the
 domain in the From: line with a different one.
 
 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:
 #
 #	ssmtp
 #	ssmtp/files
 #	ssmtp/files/patch-aa
 #	ssmtp/distinfo
 #	ssmtp/Makefile
 #	ssmtp/pkg-comment
 #	ssmtp/pkg-install
 #	ssmtp/pkg-descr
 #	ssmtp/pkg-plist
 #
 echo c - ssmtp
 mkdir -p ssmtp > /dev/null 2>&1
 echo c - ssmtp/files
 mkdir -p ssmtp/files > /dev/null 2>&1
 echo x - ssmtp/files/patch-aa
 sed 's/^X//' >ssmtp/files/patch-aa << 'END-of-ssmtp/files/patch-aa'
 X--- Makefile.orig	Tue Dec  5 23:40:45 2000
 X+++ Makefile	Tue Dec  5 23:40:32 2000
 X@@ -34,10 +34,10 @@
 X 
 X # Places to install things, used to relocate things for Ultrix kits.
 X # 	ROOT normally is the empty string...
 X-#ROOT=
 X-LOCATION=/usr
 X+ROOT=${PREFIX}
 X+#LOCATION=
 X DESTDIR=${ROOT}${LOCATION}/sbin
 X-MANDIR=${ROOT}${LOCATION}/share/man/man8
 X+MANDIR=${PREFIX}/man/man8
 X ETCDIR=${ROOT}/etc
 X SSMTPCONFDIR=${ETCDIR}/ssmtp
 X # (End of relocation section)
 X@@ -62,41 +62,15 @@
 X #FLAGS= -Wall -O6 -DDEBUG ${BASEFLAGS}
 X #FLAGS= -Wall -g ${BASEFLAGS}
 X 
 X-CFLAGS= ${FLAGS} ${BASEFLAGS}
 X+CFLAGS+= ${FLAGS} ${BASEFLAGS}
 X 
 X all: ssmtp
 X 
 X install: ssmtp
 X 	test `whoami` = root
 X-	install -d -m 755 ${DESTDIR}
 X-	install -s -m 755 ssmtp ${DESTDIR}/ssmtp
 X-	install -d -m 755 ${MANDIR}
 X-	install -m 644 ssmtp.8 ${MANDIR}/ssmtp.8
 X-	install -d -m 755 ${SSMTPCONFDIR}
 X-	install -m 644 revaliases ${INSTALLED_REVALIASES_FILE}
 X-	$(GEN_CONFIG) ${INSTALLED_CONFIGURATION_FILE}
 X-
 X-
 X-install-sendmail: ssmtp install
 X-	rm -f ${DESTDIR}/sendmail
 X-	ln -s ssmtp ${DESTDIR}/sendmail
 X-	install -d -m 755 ${DESTDIR}/../lib
 X-	rm -f ${DESTDIR}/../lib/sendmail
 X-	ln -s ../sbin/sendmail ${DESTDIR}/../lib
 X-	rm -f ${MANDIR}/sendmail.8
 X-	ln -s ssmtp.8 ${MANDIR}/sendmail.8
 X-
 X-uninstall:
 X-	test `whoami` = root
 X-	rm -f ${DESTDIR}/ssmtp
 X-	rm -f ${MANDIR}/ssmtp.8
 X-	rm -f ${CONFIGURATION_FILE} ${REVALIASES_FILE}
 X-	rmdir ${SSMTPCONFDIR}
 X-
 X-uninstall-sendmail: uninstall
 X-	rm -f ${DESTDIR}/sendmail ${DESTDIR}/../lib/sendmail
 X-	rm -f ${MANDIR}/sendmail.8
 X-
 X+	${BSD_INSTALL_PROGRAM} ssmtp ${DESTDIR}
 X+	${BSD_INSTALL_MAN} ssmtp.8 ${MANDIR}/ssmtp.8
 X+	${BSD_INSTALL_DATA} revaliases ${INSTALLED_REVALIASES_FILE}
 X clean:
 X 	rm -f ssmtp *.o core
 X 
 END-of-ssmtp/files/patch-aa
 echo x - ssmtp/distinfo
 sed 's/^X//' >ssmtp/distinfo << 'END-of-ssmtp/distinfo'
 XMD5 (ssmtp_2.38-9.tar.gz) = 3f95d07488cf5bc3b92c7eb182634d8a
 END-of-ssmtp/distinfo
 echo x - ssmtp/Makefile
 sed 's/^X//' >ssmtp/Makefile << 'END-of-ssmtp/Makefile'
 X# Date Created:	09 Jan 2001
 X# Whom:		Tomasz Paszkowski <ns88@k.pl>
 X#
 X# $FREEBSD$
 X
 XPORTNAME=	ssmtp
 XPORTVERSION=	2.38
 XDISTNAME=	ssmtp_2.38-9
 X
 XMASTER_SITES=	ftp://ftp.debian.org/debian/dists/woody/main/source/mail/ \
 X		ftp://ftp.icm.edu.pl/pub/Linux/debian/dists/woody/main/source/mail/
 X
 XWRKSRC=${WRKDIR}/ssmtp-2.38
 X
 XCATEGORIES=	mail
 X
 X
 XMAINTAINER=	ns88@k.pl
 X
 XUSE_GMAKE=	true
 X
 XMAN8=		ssmtp.8
 X
 Xpre-install:
 X	${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 0755 \
 X	${PREFIX}/etc/ssmtp
 X
 Xpost-install:
 X	@PREFIX="${PREFIX}" ${SH} ${PKGINSTALL}
 X	@${ECHO_MSG} --------------------------------------------------
 X	@${ECHO_MSG}
 X	@${ECHO_MSG} "To replace sendmail with ssmtp type make replace"
 X	@${ECHO_MSG}
 X	@${ECHO_MSG} --------------------------------------------------
 X
 X.include <bsd.port.pre.mk>
 X
 Xreplace:
 X
 X#.if ${OSVERSION} >= 400014
 X.if ${OSVERSION} >= 500014
 X	@${ECHO} backuping old /etc/mail/mailer.conf
 X	@${MV} -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old-ssmtp
 X	@${ECHO} Replacing mailwarpper config
 X	@/usr/bin/printf "sendmail\t\t%s/sbin/ssmtp\n" ${PREFIX}> /etc/mail/mailer.conf
 X	@/usr/bin/printf "send-mail\t\t%s/sbin/ssmtp\n" ${PREFIX}>> /etc/mail/mailer.conf
 X	@/usr/bin/printf "mailq\t\t\t/bin/echo\n" >> /etc/mail/mailer.conf
 X	@/usr/bin/printf "newaliases\t\t/bin/echo\n" >> /etc/mail/mailer.conf
 X.else
 X	@${ECHO} bacckuping old /usr/sbin/sendmail
 X	@${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF
 X	@${CHMOD} 000 /usr/sbin/sendmail.OFF
 X	@${LN} -s ${PREFIX}/sbin/ssmtp /usr/sbin/sendmail
 X	@${ECHO} Done !
 X.endif
 X
 X.include <bsd.port.post.mk>
 END-of-ssmtp/Makefile
 echo x - ssmtp/pkg-comment
 sed 's/^X//' >ssmtp/pkg-comment << 'END-of-ssmtp/pkg-comment'
 XSendmail alternative for small routers (only for outgoing mail).
 END-of-ssmtp/pkg-comment
 echo x - ssmtp/pkg-install
 sed 's/^X//' >ssmtp/pkg-install << 'END-of-ssmtp/pkg-install'
 X#!/bin/sh -e
 X
 X#
 X# Generate configuration file
 X#
 X
 X
 Xif [ -s ${PREFIX}/etc/ssmtp/ssmtp.conf ]; then
 X    echo Configuration file $1 already exists.
 X    exit
 Xfi
 X
 Xumask 022
 X
 Xcat >>${PREFIX}/etc/ssmtp/ssmtp.conf <<EOF
 X#
 X# ${PREFIX}/ssmtp/ssmtp.conf -- a config file for sSMTP sendmail.
 X#
 X# The person who gets all mail for userids < 10
 Xroot=postmaster
 X# The place where the mail goes. The actual machine name is required
 X# no MX records are consulted. Commonly mailhosts are named mail.domain.com
 X# The example will fit if you are in domain.com and you mailhub is so named.
 Xmailhub=mail
 X# Where will the mail seem to come from?
 X#rewriteDomain=`echo -n $mailname`
 X# The full hostname
 Xhostname=`hostname`
 XEOF
 END-of-ssmtp/pkg-install
 echo x - ssmtp/pkg-descr
 sed 's/^X//' >ssmtp/pkg-descr << 'END-of-ssmtp/pkg-descr'
 XThis is sSMTP, a program that replaces sendmail on workstations that
 Xshould send their mail via the departmental mailhub from which they pick up
 Xtheir mail (via pop, imap, rsmtp, pop_fetch, NFS... or the like).  This
 Xprogram accepts mail and sends it to the mailhub, optionally replacing the
 Xdomain in the From: line with a different one.
 END-of-ssmtp/pkg-descr
 echo x - ssmtp/pkg-plist
 sed 's/^X//' >ssmtp/pkg-plist << 'END-of-ssmtp/pkg-plist'
 Xsbin/ssmtp
 Xetc/ssmtp/ssmtp.conf
 Xetc/ssmtp/revaliases
 X@dirrm etc/ssmtp
 END-of-ssmtp/pkg-plist
 exit
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-ports 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sun Apr 22 23:31:36 PDT 2001 
Responsible-Changed-Why:  

Misfiled PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24217 
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Sat May 19 04:53:55 PDT 2001 
State-Changed-Why:  
already committed by steve 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24217 
>Unformatted:
