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

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

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

CVSweb <webmaster@jp.NetBSD.org>