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

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/mail/dovecot/Makefile between version 1.9 and 1.130

version 1.9, 2003/11/02 17:24:07 version 1.130, 2009/03/19 09:04:44
Line 1 
Line 1 
 # $NetBSD$  # $NetBSD$
 #  
   
 DISTNAME=               dovecot-0.99.10  DISTNAME=               dovecot-1.1.13
 PKGREVISION=            3  
 CATEGORIES=             mail  CATEGORIES=             mail
 MASTER_SITES=           http://dovecot.procontrol.fi/  MASTER_SITES=           http://www.dovecot.org/releases/1.1/
   
 PATCH_SITES=            ${MASTER_SITES}  MAINTAINER=             ghen@NetBSD.org
 PATCHFILES=             auth-home.patch bodystructure.patch  HOMEPAGE=               http://www.dovecot.org/
 PATCH_DIST_STRIP=       -p1  
   
 MAINTAINER=             tom@replic8.net  
 HOMEPAGE=               http://dovecot.procontrol.fi/  
 COMMENT=                Secure IMAP and POP3 server  COMMENT=                Secure IMAP and POP3 server
   
 USE_BUILDLINK2=         YES  PKG_INSTALLATION_TYPES= overwrite pkgviews
 USE_LIBTOOL=            YES  PKG_DESTDIR_SUPPORT=    user-destdir
 USE_PKGINSTALL=         YES  
 GNU_CONFIGURE=          YES  USE_LIBTOOL=            yes
   GNU_CONFIGURE=          yes
 LIBTOOL_OVERRIDE=       ${WRKSRC}/libtool  USE_TOOLS+=             pkg-config
   USE_TOOLS+=             rpcgen
 CONFIGURE_ARGS+=        --sysconfdir=${PKG_SYSCONFDIR}  
 CONFIGURE_ARGS+=        --localstatedir=/var  CONFIGURE_ARGS+=        --sysconfdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS+=        --with-ssldir=${SSLCERTS}  CONFIGURE_ARGS+=        --localstatedir=${VARBASE:Q}
   CONFIGURE_ARGS+=        --with-ssldir=${SSLDIR:Q}
   CONFIGURE_ARGS+=        --enable-header-install
   
 .include "../../mk/bsd.prefs.mk"  .include "../../mk/bsd.prefs.mk"
   .include "options.mk"
   
   RCD_SCRIPTS=            dovecot
   
   DOVECOT_USER?=          dovecot
   DOVECOT_GROUP?=         dovecot
   PKG_GROUPS=             ${DOVECOT_GROUP}
   PKG_USERS=              ${DOVECOT_USER}:${DOVECOT_GROUP}
   PKG_GROUPS_VARS+=       DOVECOT_GROUP
   PKG_USERS_VARS+=        DOVECOT_USER
   
   PKG_GECOS.${DOVECOT_USER}=      Dovecot IMAP/POP3 user
   
   EGDIR=                  ${PREFIX}/share/examples/dovecot
   CONF_FILES=             ${EGDIR}/dovecot-example.conf ${PKG_SYSCONFDIR}/dovecot.conf
   
   INSTALLATION_DIRS=      libexec/dovecot sbin share/doc/dovecot          \
                           share/examples/dovecot
   
   SUBST_CLASSES+=         paths
   SUBST_FILES.paths=      dovecot-example.conf
   SUBST_SED.paths+=       -e 's,@PREFIX@,${PREFIX},g'
   SUBST_STAGE.paths=      pre-configure
   
 BUILD_DEFS+=            DOVECOT_USE_GNUTLS DOVECOT_USE_PGSQL    \  BUILD_DEFS+=            VARBASE
                         USE_INET6 USE_OPENLDAP USE_SASL2  
   
 .if !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss])  post-build:
 CONFIGURE_ARGS+=        --enable-ssl=gnutls          ${SED} "s|/etc/ssl/|${SSLDIR}/|" ${WRKSRC}/dovecot-example.conf \
 .include "../../security/gnutls/buildlink2.mk"                                                  > ${WRKDIR}/dovecot-example.conf
 .else          ${SED} "s|/etc/ssl|${SSLDIR}|" ${WRKSRC}/doc/mkcert.sh \
 CONFIGURE_ARGS+=        --enable-ssl=openssl                                                  > ${WRKDIR}/mkcert.sh
 .include "../../security/openssl/buildlink2.mk"  
 .endif  
   
 .if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss])  
 CONFIGURE_ARGS+=        --with-pgsql  
 CPPFLAGS=               -I${BUILDLINK_DIR}/include/pgsql  
 .include "../../databases/postgresql-lib/buildlink2.mk"  
 .endif  
   
 .if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])  
 CONFIGURE_ARGS+=        --enable-ipv6  
 .endif  
   
 .if !empty(USE_OPENLDAP:M[Yy][Ee][Ss])  
 CONFIGURE_ARGS+=        --with-ldap  
 .include "../../databases/openldap/buildlink2.mk"  
 .endif  
   
 .if defined(USE_SASL2) && !empty(USE_SASL2:M[Yy][Ee][Ss])  
 CONFIGURE_ARGS+=        --with-cyrus-sasl2  
 .include "../../security/cyrus-sasl2/buildlink2.mk"  
 .endif  
   
 RCD_SCRIPTS=    dovecot  
   
 DOVECOT_USER?=  dovecot  
 DOVECOT_GROUP?= dovecot  
 PKG_GROUPS=     ${DOVECOT_GROUP}  
 PKG_USERS=      ${DOVECOT_USER}:${DOVECOT_GROUP}::Dovecot\\ IMAP/POP3\\ user  
   
 EGDIR=          ${PREFIX}/share/examples/dovecot  
 CONF_FILES=     ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf  
   
 post-configure:  
         @cd ${WRKSRC} &&                                                \  
         (                                                               \  
                 ${MV} dovecot-example.conf dovecot-example.conf.orig;   \  
                 ${SED} ${FILES_SUBST_SED} dovecot-example.conf.orig >   \  
                         dovecot-example.conf;                           \  
         )  
   
 post-install:  post-install:
         ${INSTALL_DATA_DIR} ${EGDIR}          ${INSTALL_DATA} ${WRKDIR}/dovecot-example.conf ${DESTDIR}${EGDIR}
         ${INSTALL_DATA} ${WRKSRC}/dovecot-example.conf  \          ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${DESTDIR}${EGDIR}
                 ${EGDIR}/dovecot.conf.default          ${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${DESTDIR}${EGDIR}
         ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${EGDIR}          ${INSTALL_DATA} ${WRKSRC}/src/lib/liblib.a ${DESTDIR}${PREFIX}/lib/dovecot
         ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${EGDIR}  
   
   .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"  .include "../../mk/bsd.pkg.mk"

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.130

CVSweb <webmaster@jp.NetBSD.org>