2012-09-27 00:51:03 +02:00
|
|
|
# Created by: Nils Vogels <nivo+kw+ports.bfa274@is-root.com>
|
2010-11-27 07:01:33 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dovecot-pigeonhole
|
2013-05-23 19:58:48 +02:00
|
|
|
PORTVERSION= 0.4.0
|
2013-06-25 14:36:58 +02:00
|
|
|
PORTREVISION= 1
|
2010-11-27 07:01:33 +01:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= http://www.rename-it.nl/dovecot/${DOVECOTVERSION}/
|
|
|
|
DISTNAME= ${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= bra@fsn.hu
|
2012-12-02 13:11:34 +01:00
|
|
|
COMMENT= Sieve plugin for the Dovecot 'deliver' LDA and LMTP
|
2010-11-27 07:01:33 +01:00
|
|
|
|
2012-05-29 10:51:15 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
|
|
|
BUILD_DEPENDS:= dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot${DOVECOTVERSION:R}
|
|
|
|
RUN_DEPENDS:= dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot${DOVECOTVERSION:R}
|
2010-11-27 07:01:33 +01:00
|
|
|
|
2013-05-23 19:58:48 +02:00
|
|
|
DOVECOTVERSION= 2.2
|
2010-11-27 07:01:33 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2011-02-05 17:49:13 +01:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2010-11-27 07:01:33 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
|
|
--docdir=${DOCSDIR} \
|
|
|
|
--with-dovecot="${LOCALBASE}/lib/dovecot"
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/dovecot
|
|
|
|
|
2012-04-08 18:56:16 +02:00
|
|
|
MAN1= sieve-dump.1 sieve-filter.1 sieve-test.1 sievec.1 sieved.1
|
2010-11-27 07:01:33 +01:00
|
|
|
MAN7= pigeonhole.7
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/-/\//}
|
|
|
|
|
2012-07-07 18:28:11 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-05-29 10:51:15 +02:00
|
|
|
EXTENSIONDOCS= editheader.txt include.txt spamtest-virustest.txt \
|
|
|
|
vacation.txt vnd.dovecot.duplicate.txt
|
|
|
|
PORTDOCS= AUTHORS COPYING COPYING.LGPL INSTALL NEWS README TODO \
|
|
|
|
script-location-dict.txt ${EXTENSIONDOCS}
|
|
|
|
.endif
|
|
|
|
|
2012-07-07 18:28:11 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2012-05-29 10:51:15 +02:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:S/-/\//}
|
|
|
|
PORTEXAMPLES= *.sieve
|
2010-11-27 07:01:33 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2012-05-29 10:51:15 +02:00
|
|
|
@${REINPLACE_CMD} -E '\
|
|
|
|
s!^(install-data-am:) install-sieve_docDATA!\1!; \
|
|
|
|
s!^(uninstall-am:) uninstall-sieve_docDATA!\1!;' \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
2012-07-07 18:28:11 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-05-29 10:51:15 +02:00
|
|
|
.for f in ${EXTENSIONDOCS}
|
|
|
|
@${LN} -f ${WRKSRC}/doc/extensions/${f} ${WRKSRC}/
|
|
|
|
.endfor
|
|
|
|
@${LN} -f ${WRKSRC}/doc/script-location-dict.txt ${WRKSRC}/
|
|
|
|
.endif
|
2010-11-27 07:01:33 +01:00
|
|
|
|
|
|
|
post-install:
|
2012-07-07 18:28:11 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-05-29 10:51:15 +02:00
|
|
|
@${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${DOCSDIR}
|
2010-11-27 07:01:33 +01:00
|
|
|
.for f in ${PORTDOCS}
|
2012-05-29 10:51:15 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
2010-11-27 07:01:33 +01:00
|
|
|
.endfor
|
2012-05-29 10:51:15 +02:00
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
|
|
|
|
.endif
|
2012-07-07 18:28:11 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2012-05-29 10:51:15 +02:00
|
|
|
@${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/*.sieve ${EXAMPLESDIR}
|
|
|
|
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}"
|
2010-11-27 07:01:33 +01:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|