ports/mail/mailfromd/Makefile
Alexey Dokuchaev af10f61845 mail/mailfromd: drop useless option, install Emacs Lisp files
- Obsolete features, legacy GeoIP and DSPAM, were removed on
  the next day after 8.14 release back in August 2022
- Install and bytecode-compile two provided Emacs Lisp files,
  subject to the EMACS option (off by default for now)
- While here, change the word order in BDB_DESC to clarify
  that the phrase "last working one" applies to version 4.8,
  not the Berkeley DB support in general

Requested by:	maintainer
2025-11-06 16:42:50 +00:00

81 lines
2.1 KiB
Makefile

PORTNAME= mailfromd
PORTVERSION= 9.0
CATEGORIES= mail
MASTER_SITES= http://download.gnu.org.ua/pub/release/${PORTNAME}/ \
http://download.gnu.org.ua/pub/alpha/${PORTNAME}/
MAINTAINER= zeus@gnu.org.ua
COMMENT= Mail filtering daemon for Sendmail, Postfix, and MeTA1
WWW= https://puszcza.gnu.org.ua/software/mailfromd/
LICENSE= GPLv3+
LIB_DEPENDS= libmailutils.so:mail/mailutils \
libadns.so:dns/adns \
libgmp.so:math/gmp \
libgnutls.so:security/gnutls \
libnettle.so:security/nettle
USES= gmake localbase readline tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-syslog-async
CONFIGURE_ENV= DEFAULT_STATE_DIR="${DATABASEDIR}" \
DEFAULT_SOCKET="unix:${MFD_RUN_DIR}/${PORTNAME}.sock" \
DEFAULT_USER=mailnull
USE_RC_SUBR= calloutd ${PORTNAME}
TEST_TARGET= check
DATABASEDIR?= /var/db/${PORTNAME}
MFD_RUN_DIR?= /var/run/${PORTNAME}
PLIST_SUB+= DATABASEDIR=${DATABASEDIR} \
MFD_RUN_DIR=${MFD_RUN_DIR} \
VERSION=${PORTVERSION}
SUB_LIST+= MFD_RUN_DIR=${MFD_RUN_DIR}
INFO= ${PORTNAME}
PORTDOCS= AUTHORS ChangeLog NEWS README THANKS TODO
OPTIONS_DEFINE= DOCS EMACS NLS
OPTIONS_DEFAULT= GDBM
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= BDB GDBM
OPTIONS_SUB= yes
BDB_DESC= Berkeley DB v4.8 (last working one) support
DB_DESC= Database configuration
EMACS_DESC= Install Emacs Lisp *-mode files
EMACS_CONFIGURE_ENV_OFF=ac_cv_prog_EMACS=no
EMACS_USES= emacs:build
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
BDB_USES= bdb
BDB_CONFIGURE_WITH= berkeley-db
BDB_CPPFLAGS= -I${BDB_INCLUDE_DIR}
BDB_LDFLAGS= -L${BDB_LIB_DIR}
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm
GDBM_CONFIGURE_WITH= gdbm
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
post-patch:
@${REINPLACE_CMD} -e '/^install-lispLISP:/s,lisp_LISP,&) $$(&:.el=.elc,' \
${WRKSRC}/elisp/Makefile.in
@${REINPLACE_CMD} -e '/^mfmodnew_LDADD =/s,),& $$(INTLLIBS),' \
${WRKSRC}/mfmod/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${DATABASEDIR} ${STAGEDIR}${MFD_RUN_DIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>