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

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

1.146   ! ghen        1: # $NetBSD: Makefile,v 1.145 2010/04/30 10:43:26 ghen Exp $
1.1       salo        2:
1.141     ghen        3: DOVECOT_VERSION=       1.2
1.144     ghen        4: DOVECOT_SUBVERSION=    .11
1.146   ! ghen        5: PKGREVISION=           2
1.145     ghen        6: SIEVE_VERSION=         0.1.16
1.143     ghen        7: MANAGESIEVE_VERSION=   0.11.11
1.141     ghen        8: DISTNAME=              dovecot-${DOVECOT_VERSION}${DOVECOT_SUBVERSION}
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.43      ghen       17: MAINTAINER=            ghen@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
1.76      joerg      23: PKG_DESTDIR_SUPPORT=   user-destdir
1.24      schmonz    24:
1.31      schmonz    25: USE_LIBTOOL=           yes
                     26: GNU_CONFIGURE=         yes
1.57      ghen       27: USE_TOOLS+=            pkg-config
1.117     ghen       28: USE_TOOLS+=            rpcgen
1.1       salo       29:
1.141     ghen       30: CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
                     31: CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
                     32: CONFIGURE_ARGS+=       --with-ssldir=${SSLDIR}
1.101     ghen       33: CONFIGURE_ARGS+=       --enable-header-install
1.1       salo       34:
1.4       salo       35: .include "../../mk/bsd.prefs.mk"
1.26      jlam       36: .include "options.mk"
1.1       salo       37:
1.43      ghen       38: RCD_SCRIPTS=           dovecot
1.1       salo       39:
1.43      ghen       40: DOVECOT_USER?=         dovecot
                     41: DOVECOT_GROUP?=                dovecot
                     42: PKG_GROUPS=            ${DOVECOT_GROUP}
1.50      jlam       43: PKG_USERS=             ${DOVECOT_USER}:${DOVECOT_GROUP}
1.98      jlam       44: PKG_GROUPS_VARS+=      DOVECOT_GROUP
                     45: PKG_USERS_VARS+=       DOVECOT_USER
1.50      jlam       46:
                     47: PKG_GECOS.${DOVECOT_USER}=     Dovecot IMAP/POP3 user
1.1       salo       48:
1.43      ghen       49: EGDIR=                 ${PREFIX}/share/examples/dovecot
1.106     rillig     50: CONF_FILES=            ${EGDIR}/dovecot-example.conf ${PKG_SYSCONFDIR}/dovecot.conf
1.1       salo       51:
1.26      jlam       52: INSTALLATION_DIRS=     libexec/dovecot sbin share/doc/dovecot          \
                     53:                        share/examples/dovecot
1.24      schmonz    54:
1.42      joerg      55: SUBST_CLASSES+=                paths
                     56: SUBST_FILES.paths=     dovecot-example.conf
                     57: SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
1.44      ghen       58: SUBST_STAGE.paths=     pre-configure
1.1       salo       59:
1.111     ghen       60: BUILD_DEFS+=           VARBASE
                     61:
1.64      abs        62: post-build:
                     63:        ${SED} "s|/etc/ssl/|${SSLDIR}/|" ${WRKSRC}/dovecot-example.conf \
                     64:                                                > ${WRKDIR}/dovecot-example.conf
                     65:        ${SED} "s|/etc/ssl|${SSLDIR}|" ${WRKSRC}/doc/mkcert.sh \
                     66:                                                > ${WRKDIR}/mkcert.sh
1.141     ghen       67: .if !empty(PKG_OPTIONS:Mdovecot-sieve)
                     68: # We need dovecot built in order to be able to configure sieve.
                     69:        cd ${WRKSRC.sieve} \
                     70:        && env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.sieve}
                     71:        cd ${WRKSRC.sieve} \
                     72:        && env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}
                     73: .endif
                     74: .if !empty(PKG_OPTIONS:Mdovecot-managesieve)
                     75: # Wee need sieve built in order to configure and build managesieve. Sigh.
                     76:        cd ${WRKSRC.managesieve} \
                     77:        && env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.managesieve}
                     78:        cd ${WRKSRC.managesieve} \
                     79:        && env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}
                     80: .endif
1.64      abs        81:
1.1       salo       82: post-install:
1.90      ghen       83:        ${INSTALL_DATA} ${WRKDIR}/dovecot-example.conf ${DESTDIR}${EGDIR}
1.76      joerg      84:        ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${DESTDIR}${EGDIR}
                     85:        ${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${DESTDIR}${EGDIR}
1.101     ghen       86:        ${INSTALL_DATA} ${WRKSRC}/src/lib/liblib.a ${DESTDIR}${PREFIX}/lib/dovecot
1.1       salo       87:
1.44      ghen       88: .include "../../devel/zlib/buildlink3.mk"
1.1       salo       89: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>