1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/mail/dbmail/Makefile
Stefan Eßer 819f25b36d */*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".

Approved by:	portmgr (blanket)
2021-10-29 11:50:18 +02:00

74 lines
1.9 KiB
Makefile

# Created by: Clement Laforet <sheepkiller@cultdeadsheep.org>
PORTNAME= dbmail
PORTVERSION= 3.2.5
DISTVERSIONPREFIX= v
CATEGORIES= mail
MAINTAINER= bofh@FreeBSD.org
COMMENT= SQL database-based mail system (POP3 and IMAP)
LICENSE= GPLv2
BROKEN_aarch64= Fails to link: missing sbrk
LIB_DEPENDS= libgmime-2.6.so:mail/gmime26 \
libzdb.so:databases/libzdb \
libmhash.so:security/mhash \
libevent.so:devel/libevent
BUILD_DEPENDS= asciidoc:textproc/asciidoc \
xmlto:textproc/xmlto \
docbook-sgml>0:textproc/docbook-sgml
USES= autoreconf gmake gnome libtool localbase pkgconfig \
shebangfix ssl
USE_GITHUB= yes
USE_GNOME= glib20
USE_LDCONFIG= ${PREFIX}/lib/dbmail
USE_RC_SUBR= dbmail-pop3d dbmail-lmtpd dbmail-imapd dbmail-timsieved
CONFLICTS= dbmail22
OPTIONS_DEFINE= DOCS LDAP SIEVE
OPTIONS_DEFAULT= SIEVE
OPTIONS_SUB= yes
SIEVE_DESC= Sieve mail sorting language support
INSTALL_TARGET= install-strip
GNU_CONFIGURE= yes
SHEBANG_FILES= man/fixsp.pl
CONFIGURE_ARGS+= --with-zdb=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc --enable-manpages
MAKE_ARGS+= mandir=${MANPREFIX}/man
DOCS= AUTHORS CHANGELOG.md INSTALL README THANKS UPGRADING
SIEVE_CONFIGURE_WITH= sieve
SIEVE_LIB_DEPENDS= libsieve.so:mail/libsieve
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= gettext-runtime
DBMAIL_USER?= mailnull
DBMAIL_GROUP?= mail
PIDDIR?= /var/run/dbmail
PLIST_SUB+= DBMAIL_USER="${DBMAIL_USER}" \
DBMAIL_GROUP="${DBMAIL_GROUP}" \
PIDDIR="${PIDDIR}"
post-install:
${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${STAGEDIR}${PREFIX}/etc/dbmail.conf.sample
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/dbmail.schema ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/sql && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}${PIDDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>