diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-02-10 06:04:46 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-02-10 06:04:46 +0000 |
commit | a8b5fc19bbf423bd6bef98ddf32be2343f4daa12 (patch) | |
tree | d750217c66d1f075e752db38cc0353b8fddb2699 /mail/noattach/Makefile | |
parent | d4c869e236643d62e86bb0bcfd50587502f49f71 (diff) | |
download | ports-a8b5fc19bbf423bd6bef98ddf32be2343f4daa12.tar.gz ports-a8b5fc19bbf423bd6bef98ddf32be2343f4daa12.zip |
Add-Port:
A attatchment filter for Sendmail
There really isn't much to say, noattach is a milter that parses the body
of email messages from sendmail and checks if the filename of attachments
matches one of the regular expressions in a given pattern file and rejects
those emails that match.
Filenames are MIME decoded if needed.
This program needs sendmail version 8.12.1 or newer to be compiled with
libsm and libmilter.
WWW: http://freshmeat.net/projects/noattach/
Notes
Notes:
svn path=/head/; revision=54469
Diffstat (limited to 'mail/noattach/Makefile')
-rw-r--r-- | mail/noattach/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/mail/noattach/Makefile b/mail/noattach/Makefile new file mode 100644 index 000000000000..5073dab1a482 --- /dev/null +++ b/mail/noattach/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: noattach +# Date created: 10. Feb 2002 +# Whom: dirk.meyer@dinoex.sub.org +# +# $FreeBSD$ +# + +PORTNAME= noattach +PORTVERSION= 1.0beta7 +CATEGORIES= mail +MASTER_SITES= ftp://ftp.rhnet.is/pub/noattach/ + +MAINTAINER= dinoex@FreeBSD.org + +BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail + +CTARGETS+= rays-filter +CFLAGS+= -Wall -I$(LOCALBASE)/include ${PTHREAD_CFLAGS:S=""==} +FLAGS+= ${PTHREAD_LIBS} +LDFLAGS+= -L$(LOCALBASE)/lib +GNU_CONFIGURE= yes +DOCSFILES= AUTHORS COPYING INSTALL NEWS README ChangeLog +SAMPLEFILES= README noattach.patterns noattach.patterns.johncon + +.include <bsd.port.pre.mk> + +.if defined(SENDMAIL_WITHOUT_MILTER) +pre-fetch: + @${ECHO_MSG} + @${ECHO_MSG} You must unset variable SENDMAIL_WITHOUT_MILTER, + @${ECHO_MSG} and rebuild sendmail in the ports + @${FALSE} +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/noattach ${PREFIX}/libexec/noattach + ${INSTALL_SCRIPT} ${FILESDIR}/noattach.sh \ + ${PREFIX}/etc/rc.d/noattach.sh.sample + ${INSTALL_DATA} ${WRKSRC}/examples/noattach.patterns \ + ${PREFIX}/etc/noattach.patterns-dist +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${MKDIR} ${EXAMPLESDIR} +.for i in ${DOCSFILES} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/ +.endfor +.for i in ${SAMPLEFILES} + ${INSTALL_DATA} ${WRKSRC}/examples/${i} ${EXAMPLESDIR}/ +.endfor +.endif + +.include <bsd.port.post.mk> |