Skip to content

Commit

Permalink
mail/dovecot-pigeonhole: add an EXAMPLES option
Browse files Browse the repository at this point in the history
- install the example scripts from the tarball

Requested by:	mwl
  • Loading branch information
lrosenman committed Jan 24, 2024
1 parent 2f448a8 commit dde3ead
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions mail/dovecot-pigeonhole/Makefile
@@ -1,5 +1,6 @@
PORTNAME= dovecot-pigeonhole
PORTVERSION= 0.5.21
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://pigeonhole.dovecot.org/releases/${DOVECOTVERSION}/
DISTNAME= ${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${PORTVERSION}
Expand All @@ -24,8 +25,8 @@ INSTALL_TARGET= install-strip
USES= compiler:c11 libtool ssl
USE_LDCONFIG= ${PREFIX}/lib/dovecot

OPTIONS_DEFINE= DOCS LDAP MANAGESIEVE
OPTIONS_DEFAULT=MANAGESIEVE GSSAPI_NONE
OPTIONS_DEFINE= DOCS EXAMPLES LDAP MANAGESIEVE
OPTIONS_DEFAULT=EXAMPLES MANAGESIEVE GSSAPI_NONE

OPTIONS_SINGLE= GSSAPI
OPTIONS_SINGLE_GSSAPI= GSSAPI_NONE GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
Expand All @@ -52,11 +53,27 @@ LDAP_LDFLAGS= -L${LOCALBASE}/lib
LDAP_USES= ldap

PORTDOCS= sieve/extensions/* sieve/plugins/* sieve/locations/*
PORTEXAMPLES= *

post-patch:
@${REINPLACE_CMD} -E '\
s!^(install-data-am:) install-sieve_docDATA!\1!; \
s!^(uninstall-am:) uninstall-sieve_docDATA!\1!;' \
${WRKSRC}/doc/Makefile.in

post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}

${CP} ${WRKSRC}/examples/elvey.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/jerry.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/mjohnson.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/mklose.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/relational.rfc5231.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/rfc3028.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/sanjay.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/sieve_examples.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/subaddress.rfc5233.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/vacation.sieve ${STAGEDIR}${EXAMPLESDIR}
${CP} ${WRKSRC}/examples/vivil.sieve ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>

0 comments on commit dde3ead

Please sign in to comment.