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

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

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

CVSweb <webmaster@jp.NetBSD.org>