# $Id: Portfile,v 1.20 2004/12/22 18:31:01 toby Exp $

PortSystem 1.0
name		ssmtp
version		2.60.4
distname	${name}_${version}
categories	mail
maintainers	olaf@foellinger.de
description	Sendmail alternative for small routers (outgoing mail only)
long_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.
platforms	darwin freebsd
master_sites	http://ftp.debian.org/debian/pool/main/s/${portname}/ \
		ftp://ftp.icm.edu.pl/pub/Linux/debian/pool/main/s/${portname}/
checksums	md5 88fff70f14a001e09b713aa6326162cf
worksrcdir	${portname}-2.60
patchfiles	patch-ssmtp.c patch-generate_config patch-Makefile.in
build.type	gnu

pre-patch       {file delete -force ${worksrcpath}/RCS
                system "chmod u+w ${worksrcpath}/Makefile.in"}

destroot.destdir prefix=${destroot}${prefix} \
                 mandir=${destroot}${prefix}/share/man/man8
