6ef422d1bd
beck's shiny new validator found its first victim. bluhm saw warnings from fetchmail's verify callback and once we investigated, it was quick to segfault since it doesn't bother to check return values. Failures are more visible to the callback than they previously were. Fixing this mess is more work than it's worth, so let it use the old garbage. with & ok beck, tested & ok bluhm
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.159 2020/09/14 15:14:55 tb Exp $
|
|
|
|
COMMENT= mail retrieval utility for POP2, POP3, KPOP, IMAP and more
|
|
|
|
DISTNAME= fetchmail-6.4.12
|
|
EXTRACT_SUFX= .tar.xz
|
|
REVISION= 0
|
|
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fetchmail/}
|
|
|
|
HOMEPAGE= https://www.fetchmail.info/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB = c crypto iconv intl ssl
|
|
|
|
MODULES= lang/python
|
|
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
|
|
|
|
# used for fetchmailconf only (which has a wrapper telling people to install
|
|
# python if necessary); don't force it
|
|
MODPY_RUNDEP= No
|
|
|
|
MODPY_ADJ_FILES= fetchmailconf.py
|
|
SUBST_VARS+= MODPY_LIBDIR
|
|
BUILD_DEPENDS= devel/bison
|
|
LIB_DEPENDS= devel/gettext,-runtime
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
SEPARATE_BUILD= Yes
|
|
CFLAGS= -I${LOCALBASE}/include
|
|
PORTHOME= ${WRKDIR}
|
|
CONFIGURE_ENV= PYTHON=: YACC="bison -y"
|
|
CONFIGURE_ARGS= --with-ssl \
|
|
--enable-NTLM
|
|
|
|
USE_GROFF= Yes# uses www.tmac for .URL tags
|
|
|
|
DOCS= FAQ NOTES FEATURES README COPYING fetchmail-FAQ.html \
|
|
fetchmail-features.html design-notes.html todo.html
|
|
|
|
# Remove those so they get rebuild. Fixes problems with gcc2.
|
|
post-extract:
|
|
rm ${WRKSRC}/rcfile_y.[ch]
|
|
|
|
pre-patch:
|
|
${SUBST_CMD} -m 555 -c ${FILESDIR}/fetchmailconf ${WRKDIR}/fetchmailconf
|
|
@tbl ${WRKSRC}/fetchmail.man > ${WRKSRC}/fetchmail.tbl && \
|
|
cp -f ${WRKSRC}/fetchmail.tbl ${WRKSRC}/fetchmail.man
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fetchmail
|
|
@cd ${PREFIX}/man/man1 && ln -sf fetchmail.1 fetchmailconf.1
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/fetchmail
|
|
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py \
|
|
${PREFIX}/libexec/fetchmailconf.bin
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|