add package for the sieve mail filter plugin; ok brad@

This commit is contained in:
jakob 2006-12-01 23:30:49 +00:00
parent 1259dc14cb
commit a53b3ab3cb
9 changed files with 77 additions and 25 deletions

View File

@ -1,12 +1,22 @@
# $OpenBSD: Makefile,v 1.64 2006/11/19 00:40:23 brad Exp $
# $OpenBSD: Makefile,v 1.65 2006/12/01 23:30:49 jakob Exp $
COMMENT= "compact IMAP/POP3 server"
COMMENT-server= "compact IMAP/POP3 server"
COMMENT-sieve= "sieve mail filtering for Dovecot"
DISTNAME= dovecot-1.0.rc15
V_DOVECOT= 1.0.rc15
V_SIEVE= 1.0
PKGNAME-server= dovecot-${V_DOVECOT}
PKGNAME-sieve= dovecot-sieve-${V_SIEVE}
DISTNAME= dovecot-${V_DOVECOT}
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}releases/
HOMEPAGE= http://dovecot.org/
DISTFILES= dovecot-${V_DOVECOT}.tar.gz \
sieve/dovecot-sieve-${V_SIEVE}.tar.gz
HOMEPAGE= http://www.dovecot.org/
MAINTAINER= Brad Smith <brad@openbsd.org>
@ -15,46 +25,72 @@ PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto ssl z
WANTLIB-server= c crypto ssl z
WANTLIB-sieve=
MODULES= converters/libiconv
FLAVORS+= ldap mysql postgresql
MULTI_PACKAGES= -server
SUBPACKAGE?=
PSEUDO_FLAVORS= no_sieve
FLAVORS= ldap mysql postgresql
FLAVOR?=
USE_LIBTOOL= Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
AUTOCONF_DIR= ${WRKSRC}
CONFIGURE_ARGS+= --localstatedir=/var \
--with-ioloop=kqueue \
--with-ssl=openssl \
--with-ssldir=/etc/ssl \
--without-pam \
--without-shadow \
--without-vpopmail
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if !${FLAVOR:L:Mno_sieve}
MULTI_PACKAGES+= -sieve
SIEVE_DIR= ${WRKDIR}/dovecot-sieve-${V_SIEVE}
AUTOCONF_DIR+= ${SIEVE_DIR}
RUN_DEPENDS-sieve+= ::mail/dovecot
.endif
.if ${FLAVOR:L:Mldap}
CONFIGURE_ARGS+= --with-ldap
LIB_DEPENDS+= lber,ldap::databases/openldap
WANTLIB+= sasl2 asn1 com_err gssapi krb5
LIB_DEPENDS-server+= lber,ldap::databases/openldap
WANTLIB-server+= sasl2 asn1 com_err gssapi krb5
.endif
.if ${FLAVOR:L:Mmysql}
CONFIGURE_ARGS+= --with-mysql
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
WANTLIB+= m
LIB_DEPENDS-server+= lib/mysql/mysqlclient.>=10::databases/mysql
WANTLIB-server+= m
.endif
.if ${FLAVOR:L:Mpostgresql}
CONFIGURE_ARGS+= --with-pgsql
LIB_DEPENDS+= pq.>=4::databases/postgresql
LIB_DEPENDS-server+= pq.>=4::databases/postgresql
.endif
USE_LIBTOOL= Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
CONFIGURE_ARGS+=--localstatedir=/var \
--with-ioloop=kqueue \
--with-ssl=openssl \
--with-ssldir=/etc/ssl \
--without-pam \
--without-shadow \
--without-vpopmail
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if !${FLAVOR:L:Mno_sieve}
post-configure:
(cd ${WRKSRC}; ${MAKE_PROGRAM} dovecot-config)
(cd ${SIEVE_DIR}; ${SETENV} ${CONFIGURE_ENV} \
./configure --with-dovecot=${WRKSRC})
.endif
pre-build:
@perl -pi -e s#_PREFIX_#\${PREFIX}#g ${WRKSRC}/dovecot-example.conf
.if !${FLAVOR:L:Mno_sieve}
post-build:
(cd ${SIEVE_DIR}; ${MAKE_PROGRAM} ${MAKE_FLAGS})
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dovecot
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \
@ -64,5 +100,11 @@ post-install:
${PREFIX}/share/examples/dovecot
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \
${PREFIX}/sbin/dovecot-mkcert.sh
.if !${FLAVOR:L:Mno_sieve}
${INSTALL_DATA} \
${SIEVE_DIR}/src/.libs/lib90_cmusieve_plugin.so \
${PREFIX}/lib/dovecot
ln -s ../lib90_cmusieve_plugin.so ${PREFIX}/lib/dovecot/lda
.endif
.include <bsd.port.mk>

View File

@ -1,4 +1,8 @@
MD5 (dovecot-1.0.rc15.tar.gz) = 26f3d2b075856b1b1d180146363819e6
MD5 (sieve/dovecot-sieve-1.0.tar.gz) = dabe564d2ef262a008622737ad84579f
RMD160 (dovecot-1.0.rc15.tar.gz) = 904ef7d1f0fbfe8055f13d9036f7107f498b522e
RMD160 (sieve/dovecot-sieve-1.0.tar.gz) = b56f5a7391607125184755b9bbcbe749e79e26d4
SHA1 (dovecot-1.0.rc15.tar.gz) = 9b618d0c1562aa64bd1e055ffa9fe5f2412514af
SHA1 (sieve/dovecot-sieve-1.0.tar.gz) = 6d151c4140e0cf89e3d771fb32b5da065dbbed24
SIZE (dovecot-1.0.rc15.tar.gz) = 1463069
SIZE (sieve/dovecot-sieve-1.0.tar.gz) = 442943

View File

@ -0,0 +1 @@
Sieve mail filtering for Dovecot

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PFRAG.shared,v 1.4 2006/05/12 19:10:11 brad Exp $
@comment $OpenBSD: PFRAG.shared-server,v 1.1 2006/12/01 23:30:49 jakob Exp $
lib/dovecot/imap/lib01_acl_plugin.so
lib/dovecot/imap/lib01_convert_plugin.so
lib/dovecot/imap/lib01_quota_plugin.so

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared-sieve,v 1.1 2006/12/01 23:30:49 jakob Exp $
lib/dovecot/lda/lib90_cmusieve_plugin.so
lib/dovecot/lib90_cmusieve_plugin.so

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.20 2006/07/29 00:24:46 brad Exp $
@comment $OpenBSD: PLIST-server,v 1.1 2006/12/01 23:30:49 jakob Exp $
@newgroup _dovecot:518
@newuser _dovecot:518:_dovecot:daemon:Dovecot Account:/nonexistent:/sbin/nologin
%%SHARED%%

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-sieve,v 1.1 2006/12/01 23:30:49 jakob Exp $
%%SHARED%%