[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mail / dovecot

Annotation of pkgsrc/mail/dovecot/Makefile, Revision 1.192

1.192   ! adam        1: # $NetBSD: Makefile,v 1.191 2018/07/20 03:34:19 ryoon Exp $
1.1       salo        2:
1.141     ghen        3: DOVECOT_VERSION=       1.2
1.155     adam        4: DOVECOT_SUBVERSION=    .17
1.156     obache      5: SIEVE_VERSION=         0.1.19
                      6: MANAGESIEVE_VERSION=   0.11.13
1.141     ghen        7: DISTNAME=              dovecot-${DOVECOT_VERSION}${DOVECOT_SUBVERSION}
1.192   ! adam        8: PKGREVISION=           30
1.6       salo        9: CATEGORIES=            mail
1.141     ghen       10: MASTER_SITES=          http://www.dovecot.org/releases/${DOVECOT_VERSION}/
1.176     tron       11: DOVECOT_SIEVE_SITES=   http://pigeonhole.dovecot.org/releases/${DOVECOT_VERSION}/
1.141     ghen       12:
                     13: MANAGESIEVE_PATCH=                     dovecot-${DOVECOT_VERSION}${DOVECOT_SUBVERSION}-managesieve-${MANAGESIEVE_VERSION}.diff.gz
                     14: SITES.${MANAGESIEVE_PATCH}=    ${DOVECOT_SIEVE_SITES}
                     15: PATCH_DIST_STRIP.${MANAGESIEVE_PATCH}= -p1
1.1       salo       16:
1.166     ghen       17: MAINTAINER=            pkgsrc-users@NetBSD.org
1.22      xtraeme    18: HOMEPAGE=              http://www.dovecot.org/
1.6       salo       19: COMMENT=               Secure IMAP and POP3 server
1.137     tron       20: LICENSE=               mit AND gnu-lgpl-v2.1 AND modified-bsd
1.6       salo       21:
1.185     gdt        22: # This package is eol as of May, 2011.  As of April, 2017, it remains
                     23: # because at least one user reported still using it.
                     24:
1.31      schmonz    25: USE_LIBTOOL=           yes
1.155     adam       26: USE_TOOLS+=            pkg-config rpcgen
1.31      schmonz    27: GNU_CONFIGURE=         yes
1.155     adam       28: CONFIGURE_ARGS+=       --enable-header-install
                     29: CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
1.141     ghen       30: CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
                     31: CONFIGURE_ARGS+=       --with-ssldir=${SSLDIR}
1.1       salo       32:
1.4       salo       33: .include "../../mk/bsd.prefs.mk"
1.26      jlam       34: .include "options.mk"
1.1       salo       35:
1.43      ghen       36: RCD_SCRIPTS=           dovecot
1.1       salo       37:
1.43      ghen       38: DOVECOT_USER?=         dovecot
                     39: DOVECOT_GROUP?=                dovecot
                     40: PKG_GROUPS=            ${DOVECOT_GROUP}
1.50      jlam       41: PKG_USERS=             ${DOVECOT_USER}:${DOVECOT_GROUP}
1.98      jlam       42: PKG_GROUPS_VARS+=      DOVECOT_GROUP
                     43: PKG_USERS_VARS+=       DOVECOT_USER
1.50      jlam       44:
                     45: PKG_GECOS.${DOVECOT_USER}=     Dovecot IMAP/POP3 user
1.1       salo       46:
1.155     adam       47: EGDIR=         ${PREFIX}/share/examples/dovecot
                     48: CONF_FILES=    ${EGDIR}/dovecot-example.conf ${PKG_SYSCONFDIR}/dovecot.conf
1.1       salo       49:
1.172     wiedi      50: INSTALLATION_DIRS+=    libexec/dovecot sbin share/doc/dovecot          \
1.26      jlam       51:                        share/examples/dovecot
1.24      schmonz    52:
1.42      joerg      53: SUBST_CLASSES+=                paths
                     54: SUBST_FILES.paths=     dovecot-example.conf
                     55: SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
1.44      ghen       56: SUBST_STAGE.paths=     pre-configure
1.1       salo       57:
1.111     ghen       58: BUILD_DEFS+=           VARBASE
                     59:
1.64      abs        60: post-build:
                     61:        ${SED} "s|/etc/ssl/|${SSLDIR}/|" ${WRKSRC}/dovecot-example.conf \
                     62:                                                > ${WRKDIR}/dovecot-example.conf
                     63:        ${SED} "s|/etc/ssl|${SSLDIR}|" ${WRKSRC}/doc/mkcert.sh \
                     64:                                                > ${WRKDIR}/mkcert.sh
1.141     ghen       65: .if !empty(PKG_OPTIONS:Mdovecot-sieve)
                     66: # We need dovecot built in order to be able to configure sieve.
                     67:        cd ${WRKSRC.sieve} \
                     68:        && env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.sieve}
                     69:        cd ${WRKSRC.sieve} \
                     70:        && env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}
                     71: .endif
                     72: .if !empty(PKG_OPTIONS:Mdovecot-managesieve)
                     73: # Wee need sieve built in order to configure and build managesieve. Sigh.
                     74:        cd ${WRKSRC.managesieve} \
                     75:        && env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.managesieve}
                     76:        cd ${WRKSRC.managesieve} \
                     77:        && env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}
                     78: .endif
1.64      abs        79:
1.1       salo       80: post-install:
1.90      ghen       81:        ${INSTALL_DATA} ${WRKDIR}/dovecot-example.conf ${DESTDIR}${EGDIR}
1.76      joerg      82:        ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${DESTDIR}${EGDIR}
                     83:        ${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${DESTDIR}${EGDIR}
1.101     ghen       84:        ${INSTALL_DATA} ${WRKSRC}/src/lib/liblib.a ${DESTDIR}${PREFIX}/lib/dovecot
1.1       salo       85:
1.159     sbd        86: .include "../../archivers/bzip2/buildlink3.mk"
1.44      ghen       87: .include "../../devel/zlib/buildlink3.mk"
1.1       salo       88: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>