[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.1.1.1 and 1.76.2.1

version 1.1.1.1, 2003/05/14 04:17:31 version 1.76.2.1, 2007/04/03 16:58:21
Line 1 
Line 1 
 # $NetBSD$  # $NetBSD$
 #  
   
 DISTNAME=       dovecot-0.99.9.1  DISTNAME=               dovecot-1.0.rc15
 CATEGORIES=     mail  PKGNAME=                ${DISTNAME:S/.rc/rc/}
 MASTER_SITES=   http://dovecot.procontrol.fi/  PKGREVISION=            1
   CATEGORIES=             mail
 PATCH_SITES=    ${MASTER_SITES}  MASTER_SITES=           http://www.dovecot.org/releases/
 PATCHFILES=     freebsd.patch fetch.patch  
   MAINTAINER=             ghen@NetBSD.org
 MAINTAINER=     packages@netbsd.org  HOMEPAGE=               http://www.dovecot.org/
 HOMEPAGE=       http://dovecot.procontrol.fi/  COMMENT=                Secure IMAP and POP3 server
 COMMENT=        Secure IMAP and POP3 server  
   PKG_INSTALLATION_TYPES= overwrite pkgviews
 USE_BUILDLINK2= YES  PKG_DESTDIR_SUPPORT=    user-destdir
 USE_LIBTOOL=    YES  
 USE_PKGINSTALL= YES  USE_LIBTOOL=            yes
 GNU_CONFIGURE=  YES  GNU_CONFIGURE=          yes
   USE_TOOLS+=             pkg-config
 LIBTOOL_OVERRIDE=       ${WRKSRC}/libtool  
   CONFIGURE_ARGS+=        --sysconfdir=${PKG_SYSCONFDIR:Q}
 CONFIGURE_ARGS+=        --sysconfdir=${PKG_SYSCONFDIR}  CONFIGURE_ARGS+=        --localstatedir=${VARBASE:Q}
 CONFIGURE_ARGS+=        --localstatedir=/var  CONFIGURE_ARGS+=        --with-ssldir=${SSLDIR:Q}
 CONFIGURE_ARGS+=        --with-ssldir=/etc/openssl  
   .include "../../mk/bsd.prefs.mk"
 DOVECOT_USE_GNUTLS?=    NO  .include "options.mk"
   
 .if !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss])  RCD_SCRIPTS=            dovecot
 CONFIGURE_ARGS+=        --enable-ssl=gnutls  
 .include "../../security/gnutls/buildlink2.mk"  DOVECOT_USER?=          dovecot
 .else  DOVECOT_GROUP?=         dovecot
 CONFIGURE_ARGS+=        --enable-ssl=openssl  PKG_GROUPS=             ${DOVECOT_GROUP}
 .include "../../security/openssl/buildlink2.mk"  PKG_USERS=              ${DOVECOT_USER}:${DOVECOT_GROUP}
 .endif  
   PKG_GECOS.${DOVECOT_USER}=      Dovecot IMAP/POP3 user
 DOVECOT_USE_LDAP?=      NO  
   EGDIR=                  ${PREFIX}/share/examples/dovecot
 .if !empty(DOVECOT_USE_LDAP:M[Yy][Ee][Ss])  CONF_FILES=             ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf
 CONFIGURE_ARGS+=        --with-ldap  
 .include "../../databases/openldap/buildlink2.mk"  INSTALLATION_DIRS=      libexec/dovecot sbin share/doc/dovecot          \
 .endif                          share/examples/dovecot
   
 DOVECOT_USE_PGSQL?=     NO  SUBST_CLASSES+=         paths
   SUBST_FILES.paths=      dovecot-example.conf
 .if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss])  SUBST_SED.paths+=       -e 's,@PREFIX@,${PREFIX},g'
 CONFIGURE_ARGS+=        --with-pgsql  SUBST_STAGE.paths=      pre-configure
 CPPFLAGS=               -I${BUILDLINK_DIR}/include/pgsql  
 .include "../../databases/postgresql-lib/buildlink2.mk"  post-build:
 .endif          ${SED} "s|/etc/ssl/|${SSLDIR}/|" ${WRKSRC}/dovecot-example.conf \
                                                   > ${WRKDIR}/dovecot-example.conf
 .if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])          ${SED} "s|/etc/ssl|${SSLDIR}|" ${WRKSRC}/doc/mkcert.sh \
 BUILD_DEFS+=            USE_INET6                                                  > ${WRKDIR}/mkcert.sh
 CONFIGURE_ARGS+=        --enable-ipv6  
 .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  \
         ${INSTALL_DATA} ${WRKSRC}/dovecot-example.conf  \                  ${DESTDIR}${EGDIR}/dovecot.conf.default
                 ${EGDIR}/dovecot.conf.default          ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${DESTDIR}${EGDIR}
         ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${EGDIR}          ${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${DESTDIR}${EGDIR}
         ${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.1.1.1  
changed lines
  Added in v.1.76.2.1

CVSweb <webmaster@jp.NetBSD.org>