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

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

1.24    ! schmonz     1: # $NetBSD: Makefile,v 1.23 2004/07/24 22:45:15 recht Exp $
1.1       salo        2:
1.22      xtraeme     3: DISTNAME=              dovecot-0.99.10.7
1.6       salo        4: CATEGORIES=            mail
1.22      xtraeme     5: MASTER_SITES=          http://www.dovecot.org/releases/
1.1       salo        6:
1.22      xtraeme     7: .if 0
1.11      xtraeme     8: PATCH_SITES=           http://www.roughtrade.net/dovecot/
1.22      xtraeme     9: PATCHFILES=            dovecot-crammd5-0.99.10.7.diff
1.6       salo       10: PATCH_DIST_STRIP=      -p1
1.22      xtraeme    11: .endif
1.1       salo       12:
1.6       salo       13: MAINTAINER=            tom@replic8.net
1.22      xtraeme    14: HOMEPAGE=              http://www.dovecot.org/
1.6       salo       15: COMMENT=               Secure IMAP and POP3 server
                     16:
1.24    ! schmonz    17: PKG_INSTALLATION_TYPES=        overwrite pkgviews
        !            18:
1.13      jlam       19: USE_BUILDLINK3=                YES
1.6       salo       20: USE_LIBTOOL=           YES
                     21: USE_PKGINSTALL=        YES
                     22: GNU_CONFIGURE=         YES
1.1       salo       23:
                     24: CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
1.21      xtraeme    25: CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
1.7       xtraeme    26: CONFIGURE_ARGS+=       --with-ssldir=${SSLCERTS}
1.1       salo       27:
1.16      snj        28: # Avoid an ICE in gcc2 on sparc64
                     29: CONFIGURE_ENV+=                F77=${FALSE}
                     30:
1.4       salo       31: .include "../../mk/bsd.prefs.mk"
                     32:
1.18      xtraeme    33: BUILD_DEFS+=           DOVECOT_USE_GNUTLS DOVECOT_USE_MYSQL \
                     34:                        DOVECOT_USE_PGSQL USE_INET6 USE_OPENLDAP USE_SASL2
1.1       salo       35:
                     36: .if !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss])
                     37: CONFIGURE_ARGS+=       --enable-ssl=gnutls
1.13      jlam       38: .  include "../../security/gnutls/buildlink3.mk"
1.1       salo       39: .else
                     40: CONFIGURE_ARGS+=        --enable-ssl=openssl
1.13      jlam       41: .  include "../../security/openssl/buildlink3.mk"
1.1       salo       42: .endif
                     43:
1.18      xtraeme    44: .if !empty(DOVECOT_USE_MYSQL:M[Yy][Ee][SS])
                     45: CONFIGURE_ARGS+=       --with-mysql
                     46: .  include "../../databases/mysql4-client/buildlink3.mk"
                     47: .endif
                     48:
1.1       salo       49: .if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss])
                     50: CONFIGURE_ARGS+=       --with-pgsql
                     51: CPPFLAGS=              -I${BUILDLINK_DIR}/include/pgsql
1.23      recht      52: .  include "../../mk/pgsql.buildlink3.mk"
1.9       salo       53: .endif
                     54:
                     55: .if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
                     56: CONFIGURE_ARGS+=       --enable-ipv6
                     57: .endif
                     58:
                     59: .if !empty(USE_OPENLDAP:M[Yy][Ee][Ss])
                     60: CONFIGURE_ARGS+=       --with-ldap
1.13      jlam       61: .  include "../../databases/openldap/buildlink3.mk"
1.9       salo       62: .endif
                     63:
                     64: .if defined(USE_SASL2) && !empty(USE_SASL2:M[Yy][Ee][Ss])
                     65: CONFIGURE_ARGS+=       --with-cyrus-sasl2
1.13      jlam       66: .  include "../../security/cyrus-sasl2/buildlink3.mk"
1.1       salo       67: .endif
                     68:
                     69: RCD_SCRIPTS=   dovecot
                     70:
                     71: DOVECOT_USER?= dovecot
                     72: DOVECOT_GROUP?=        dovecot
                     73: PKG_GROUPS=    ${DOVECOT_GROUP}
                     74: PKG_USERS=     ${DOVECOT_USER}:${DOVECOT_GROUP}::Dovecot\\ IMAP/POP3\\ user
                     75:
                     76: EGDIR=         ${PREFIX}/share/examples/dovecot
                     77: CONF_FILES=    ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf
                     78:
1.24    ! schmonz    79: INSTALLATION_DIRS=     libexec/dovecot sbin share/doc/dovecot share/examples/dovecot
        !            80:
1.1       salo       81: post-configure:
1.13      jlam       82:        @cd ${WRKSRC};                                                  \
1.24    ! schmonz    83:        for i in dovecot-example.conf; do                               \
        !            84:                ${SED} ${FILES_SUBST_SED} $$i > $$i.new;                \
        !            85:                ${MV} -f $$i.new $$i;                                   \
1.13      jlam       86:        done
1.1       salo       87:
                     88: post-install:
                     89:        ${INSTALL_DATA_DIR} ${EGDIR}
                     90:        ${INSTALL_DATA} ${WRKSRC}/dovecot-example.conf  \
                     91:                ${EGDIR}/dovecot.conf.default
                     92:        ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${EGDIR}
                     93:        ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${EGDIR}
                     94:
                     95: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>