diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2010-11-27 06:01:33 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2010-11-27 06:01:33 +0000 |
commit | f40ff1b561a6c66519759754338bc5220ba9582d (patch) | |
tree | 53abd2011810311a518708c802f73864cbac475e /mail/dovecot2-pigeonhole/Makefile | |
parent | be03d28886a687418b2143487bb123d34ef0c361 (diff) |
Notes
Diffstat (limited to 'mail/dovecot2-pigeonhole/Makefile')
-rw-r--r-- | mail/dovecot2-pigeonhole/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/mail/dovecot2-pigeonhole/Makefile b/mail/dovecot2-pigeonhole/Makefile new file mode 100644 index 000000000000..4fa402785f43 --- /dev/null +++ b/mail/dovecot2-pigeonhole/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: dovecot-pigeonhole +# Date created: 2006-12-29 +# Whom: Nils Vogels <nivo+kw+ports.bfa274@is-root.com> +# +# $FreeBSD$ +# + +PORTNAME= dovecot-pigeonhole +PORTVERSION= 0.2.1 +CATEGORIES= mail +MASTER_SITES= http://www.rename-it.nl/dovecot/${DOVECOTVERSION}/ +DISTNAME= ${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${PORTVERSION} + +MAINTAINER= bra@fsn.hu +COMMENT= A Sieve plugin for the Dovecot 'deliver' LDA and LMTP + +RUN_DEPENDS= dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot${DOVECOTVER} + +DOVECOTVERSION= 2.0 +DOVECOTVER:= ${DOVECOTVERSION:C/\.[0-9]//} + +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ARGS= --prefix=${PREFIX} \ + --docdir=${DOCSDIR} \ + --with-dovecot="${LOCALBASE}/lib/dovecot" +CONFIGURE_ENV= LDFLAGS='${LDFLAGS}' +LDFLAGS+= -L${LOCALBASE}/lib +USE_LDCONFIG= ${PREFIX}/lib/dovecot + +MAN1= sieve-dump.1 sieve-test.1 sievec.1 sieved.1 +MAN7= pigeonhole.7 + +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/-/\//} + +.if !defined(NOPORTDOCS) +PORTDOCS= AUTHORS COPYING COPYING.LGPL INSTALL NEWS README TODO spamtest-virustest.txt +.endif + +post-patch: + @${REINPLACE_CMD} -e '\ + s!/doc/$${PACKAGE_TARNAME}!/doc/${PORTNAME:S/-/\//}!g;\ + s!$${docdir}/dovecot/sieve!$${docdir}!g;\ + ' ${WRKSRC}/configure + @${REINPLACE_CMD} -E -e '\ + /^docfiles = spamtest-virustest.txt$$/D;\ + /^[[:space:]]+test -z "\$$\(sieve_docdir\)" \|\| \$$\(MKDIR_P\) "\$$\(DESTDIR\)\$$\(sieve_docdir\)"$$/D;\ + ' ${WRKSRC}/doc/Makefile.in + @${LN} -f ${WRKSRC}/doc/spamtest-virustest.txt ${WRKSRC}/ + +post-install: +.if !defined(NOPORTDOCS) + ${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> |