1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/mail/noattach/Makefile
2009-01-16 19:54:13 +00:00

60 lines
1.4 KiB
Makefile

# New ports collection makefile for: noattach
# Date created: 10. Feb 2002
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= noattach
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.rhnet.is/pub/noattach/
MAINTAINER= dinoex@FreeBSD.org
COMMENT= An attachment filter for Sendmail Milter
GNU_CONFIGURE= yes
USE_RC_SUBR= noattach.sh
CFLAGS+= ${PTHREAD_CFLAGS:S=""==}
MAN8= noattach.8
DOCSFILES= AUTHORS THANKS INSTALL NEWS README TODO ChangeLog
SAMPLEFILES= README noattach.patterns noattach.patterns.johncon
.if defined(SENDMAIL_WITH_LDAP)
CONFIGURE_ARGS+= --enable-ldap
.endif
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
.if defined(WITH_SENDMAIL_PORT)
CONFIGURE_ENV+= MILTER_INCLUDES="${MILTERINC}"
MAKE_ENV+= MILTER_INCLUDES="${MILTERINC}"
.endif
pre-configure:
${REINPLACE_CMD} -e 's=-pthread=${PTHREAD_LIBS}=' \
${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/noattach ${PREFIX}/libexec/noattach
${INSTALL_DATA} ${WRKSRC}/examples/noattach.patterns \
${PREFIX}/etc/noattach.patterns-dist
${INSTALL_MAN} ${WRKSRC}/noattach.8 ${PREFIX}/man/man8/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${DOCSFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
.for i in ${SAMPLEFILES}
${INSTALL_DATA} ${WRKSRC}/examples/${i} ${EXAMPLESDIR}/
.endfor
.endif
.include <bsd.port.post.mk>