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

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

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

CVSweb <webmaster@jp.NetBSD.org>