2003-09-30 18:04:52 +00:00
|
|
|
# New ports collection makefile for: libhome
|
|
|
|
# Date created: Fri Aug 14 2003
|
|
|
|
# Whom: Xavier Beaudouin <kiwi@oav.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lmtpd
|
2005-09-14 18:17:14 +00:00
|
|
|
PORTVERSION= 0.10.2
|
2003-09-30 18:04:52 +00:00
|
|
|
CATEGORIES= mail
|
2005-08-30 03:30:32 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} ftp://ftp.oav.net/pll/
|
2003-09-30 18:04:52 +00:00
|
|
|
MASTER_SITE_SUBDIR= pll
|
|
|
|
|
|
|
|
MAINTAINER= kiwi@oav.net
|
2003-12-04 13:02:41 +00:00
|
|
|
COMMENT= LMTP server compliant with RFC 2033 and Maildir++
|
2003-09-30 18:04:52 +00:00
|
|
|
|
2004-05-09 20:58:23 +00:00
|
|
|
LIB_DEPENDS= home.1:${PORTSDIR}/misc/libhome
|
|
|
|
|
|
|
|
USE_ICONV= yes
|
2003-09-30 18:04:52 +00:00
|
|
|
|
2004-05-01 02:25:14 +00:00
|
|
|
OPTIONS= PCRE "Support for PCRE" on
|
|
|
|
OPTIONS+= MYSQL "Support for MySQL Queries and Logs" on
|
|
|
|
OPTIONS+= DB3 "Support for DB3" on
|
|
|
|
OPTIONS+= DB4 "Support for DB4" off
|
2004-07-12 15:36:53 +00:00
|
|
|
OPTIONS+= TRE "Support for TRE regexp (Approx regexp)" on
|
2005-08-30 03:30:32 +00:00
|
|
|
OPTIONS+= SIEVE "Support for SIEVE regexp (Approx regexp)" on
|
2004-05-02 10:01:38 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2004-05-01 02:25:14 +00:00
|
|
|
|
|
|
|
.if defined(WITH_DB3) && defined(WITH_DB4)
|
|
|
|
.error You cannot use DB3 and DB4 in the same time.
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PCRE)
|
|
|
|
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
|
|
|
|
CONFIGURE_ARGS+= --with-pcre
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pcre
|
|
|
|
.endif
|
|
|
|
|
2004-07-12 15:36:53 +00:00
|
|
|
.if defined(WITH_TRE)
|
|
|
|
LIB_DEPENDS+= tre:${PORTSDIR}/textproc/libtre/
|
|
|
|
CONFIGURE_ARGS+= --with-tre
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-tre
|
|
|
|
.endif
|
|
|
|
|
2005-08-30 03:30:32 +00:00
|
|
|
.if defined(WITH_SIEVE)
|
|
|
|
CONFIGURE_ARGS+= --with-sieve-regex
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sieve-regex
|
|
|
|
.endif
|
|
|
|
|
2004-05-01 02:25:14 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}/include/mysql --with-mysqllog
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mysql --without-mysqllog
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DB3)
|
|
|
|
LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3
|
|
|
|
CONFIGURE_ARGS+= --with-db3=${LOCALBASE}/include/db3 --without-db4
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-db3
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DB4)
|
|
|
|
LIB_DEPENDS+= db4:${PORTSDIR}/databases/db4
|
|
|
|
CONFIGURE_ARGS+= --with-db4=${LOCALBASE}/include/db4 --without-db3
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-db4
|
|
|
|
.endif
|
|
|
|
|
2003-09-30 18:04:52 +00:00
|
|
|
GNU_CONFIGURE= YES
|
2004-01-26 22:24:34 +00:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
2004-05-01 02:25:14 +00:00
|
|
|
CONFIGURE_ARGS+= --without-perl
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-09-30 18:04:52 +00:00
|
|
|
|
|
|
|
MAN8= lmtpd.8
|
2003-12-04 13:02:41 +00:00
|
|
|
DOCS= NEWS README TODO
|
2003-09-30 18:04:52 +00:00
|
|
|
|
2003-10-26 21:49:27 +00:00
|
|
|
post-install:
|
2004-01-26 22:24:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/lmtpd.conf \
|
|
|
|
${PREFIX}/etc/lmtpd.conf.dist
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lmtpdlogsum/lmtpdlogsum.pl \
|
|
|
|
${PREFIX}/bin/lmtpdlogsum
|
2004-01-29 15:35:36 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/msg
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sql/* ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/txt/* ${EXAMPLESDIR}/msg
|
2003-12-04 13:02:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2005-05-24 17:09:28 +00:00
|
|
|
${FIND} ${PREFIX}/share/nls -type d -name 'fr_*8859*' ! -name fr_FR.ISO_8859-1 -exec basename {} \; | ${XARGS} -n1 -I % echo share/nls/%/filtercheck.cat >> ${TMPPLIST}
|
|
|
|
${FIND} ${PREFIX}/share/nls -type d -name 'fr_*.UTF-8' ! -name fr_FR.UTF-8 -exec basename {} \; | ${XARGS} -n1 -I % echo share/nls/%/filtercheck.cat >> ${TMPPLIST}
|
|
|
|
${FIND} ${PREFIX}/share/nls -type d -name 'en_*' -exec basename {} \; | ${XARGS} -n1 -I % echo share/nls/%/filtercheck.cat >> ${TMPPLIST}
|
|
|
|
${FIND} ${PREFIX}/share/nls -type d -name 'fr_*8859*' -exec basename {} \; | ${XARGS} -n1 -I _ -R 2 echo "@unexec if ! grep -q _ ${MTREE_FILE} ; then rmdir %D/share/nls/_ >/dev/null || true ; fi" >> ${TMPPLIST}
|
|
|
|
${FIND} ${PREFIX}/share/nls -type d -name 'fr_*.UTF-8' -exec basename {} \; | ${XARGS} -n1 -I _ -R 2 echo "@unexec if ! grep -q _ ${MTREE_FILE} ; then rmdir %D/share/nls/_ >/dev/null || true ; fi" >> ${TMPPLIST}
|
|
|
|
${FIND} ${PREFIX}/share/nls -type d -name 'en*' -exec basename {} \; | ${XARGS} -n1 -I _ -R 2 echo "@unexec if ! grep -q _ ${MTREE_FILE} ; then rmdir %D/share/nls/_ >/dev/null || true ; fi" >> ${TMPPLIST}
|
2003-10-26 21:49:27 +00:00
|
|
|
|
2004-05-01 02:25:14 +00:00
|
|
|
.include <bsd.port.post.mk>
|