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

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

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

CVSweb <webmaster@jp.NetBSD.org>