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

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

1.173   ! adam        1: # $NetBSD: Makefile,v 1.172 2014/06/14 10:16:40 wiedi 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.173   ! adam        8: PKGREVISION=           14
1.6       salo        9: CATEGORIES=            mail
1.141     ghen       10: MASTER_SITES=          http://www.dovecot.org/releases/${DOVECOT_VERSION}/
                     11: DOVECOT_SIEVE_SITES=   http://www.rename-it.nl/dovecot/${DOVECOT_VERSION}/
                     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.24      schmonz    22: PKG_INSTALLATION_TYPES=        overwrite pkgviews
                     23:
1.31      schmonz    24: USE_LIBTOOL=           yes
1.155     adam       25: USE_TOOLS+=            pkg-config rpcgen
1.31      schmonz    26: GNU_CONFIGURE=         yes
1.155     adam       27: CONFIGURE_ARGS+=       --enable-header-install
                     28: CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
1.141     ghen       29: CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
                     30: CONFIGURE_ARGS+=       --with-ssldir=${SSLDIR}
1.1       salo       31:
1.4       salo       32: .include "../../mk/bsd.prefs.mk"
1.26      jlam       33: .include "options.mk"
1.1       salo       34:
1.43      ghen       35: RCD_SCRIPTS=           dovecot
1.1       salo       36:
1.43      ghen       37: DOVECOT_USER?=         dovecot
                     38: DOVECOT_GROUP?=                dovecot
                     39: PKG_GROUPS=            ${DOVECOT_GROUP}
1.50      jlam       40: PKG_USERS=             ${DOVECOT_USER}:${DOVECOT_GROUP}
1.98      jlam       41: PKG_GROUPS_VARS+=      DOVECOT_GROUP
                     42: PKG_USERS_VARS+=       DOVECOT_USER
1.50      jlam       43:
                     44: PKG_GECOS.${DOVECOT_USER}=     Dovecot IMAP/POP3 user
1.1       salo       45:
1.155     adam       46: EGDIR=         ${PREFIX}/share/examples/dovecot
                     47: CONF_FILES=    ${EGDIR}/dovecot-example.conf ${PKG_SYSCONFDIR}/dovecot.conf
1.1       salo       48:
1.172     wiedi      49: INSTALLATION_DIRS+=    libexec/dovecot sbin share/doc/dovecot          \
1.26      jlam       50:                        share/examples/dovecot
1.24      schmonz    51:
1.42      joerg      52: SUBST_CLASSES+=                paths
                     53: SUBST_FILES.paths=     dovecot-example.conf
                     54: SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
1.44      ghen       55: SUBST_STAGE.paths=     pre-configure
1.1       salo       56:
1.111     ghen       57: BUILD_DEFS+=           VARBASE
                     58:
1.64      abs        59: post-build:
                     60:        ${SED} "s|/etc/ssl/|${SSLDIR}/|" ${WRKSRC}/dovecot-example.conf \
                     61:                                                > ${WRKDIR}/dovecot-example.conf
                     62:        ${SED} "s|/etc/ssl|${SSLDIR}|" ${WRKSRC}/doc/mkcert.sh \
                     63:                                                > ${WRKDIR}/mkcert.sh
1.141     ghen       64: .if !empty(PKG_OPTIONS:Mdovecot-sieve)
                     65: # We need dovecot built in order to be able to configure sieve.
                     66:        cd ${WRKSRC.sieve} \
                     67:        && env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.sieve}
                     68:        cd ${WRKSRC.sieve} \
                     69:        && env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}
                     70: .endif
                     71: .if !empty(PKG_OPTIONS:Mdovecot-managesieve)
                     72: # Wee need sieve built in order to configure and build managesieve. Sigh.
                     73:        cd ${WRKSRC.managesieve} \
                     74:        && env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.managesieve}
                     75:        cd ${WRKSRC.managesieve} \
                     76:        && env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}
                     77: .endif
1.64      abs        78:
1.1       salo       79: post-install:
1.90      ghen       80:        ${INSTALL_DATA} ${WRKDIR}/dovecot-example.conf ${DESTDIR}${EGDIR}
1.76      joerg      81:        ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${DESTDIR}${EGDIR}
                     82:        ${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${DESTDIR}${EGDIR}
1.101     ghen       83:        ${INSTALL_DATA} ${WRKSRC}/src/lib/liblib.a ${DESTDIR}${PREFIX}/lib/dovecot
1.1       salo       84:
1.159     sbd        85: .include "../../archivers/bzip2/buildlink3.mk"
1.44      ghen       86: .include "../../devel/zlib/buildlink3.mk"
1.1       salo       87: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>