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

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

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

CVSweb <webmaster@jp.NetBSD.org>