# New ports collection makefile for:	proxsmtp
# Date created:		2005-05-03
# Whom:			Dario Freni <saturnero@gufi.org>
#
# $FreeBSD: ports/mail/proxsmtp/Makefile,v 1.7 2007/07/23 22:20:32 beech Exp $
#

PORTNAME=	proxsmtp
PORTVERSION=	1.7
CATEGORIES=	mail security
MASTER_SITES=	http://memberwebs.com/stef/software/proxsmtp/

MAINTAINER=	saturnero@gufi.org
COMMENT=	A flexible SMTP filter which can act also as transparent proxy

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=	PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"

USE_RC_SUBR=	proxsmtpd.sh
SUB_FILES=	pkg-message

MAN5=		proxsmtpd.conf.5
MAN8=		proxsmtpd.8

PORTDOCS=	*

post-install:
	@${INSTALL_DATA} ${WRKSRC}/doc/proxsmtpd.conf ${PREFIX}/etc/proxsmtpd.conf-sample
	@if [ ! -f ${PREFIX}/etc/proxsmtpd.conf ]; then \
	${CP} -p ${PREFIX}/etc/proxsmtpd.conf-sample ${PREFIX}/etc/proxsmtpd.conf ; fi
.if !defined(NOPORTDOCS)
	@${INSTALL} -d ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>


syntax highlighted by Code2HTML, v. 0.9.1