37f54e0f66
- Convert to USES=libtool and bump dependent ports - Avoid USE_AUTOTOOLS - Don't use PTHREAD_LIBS - Use MAKE_CMD databases/glom: - Drop :keepla - Add INSTALL_TARGET=install-strip databases/libgda4* databases/libgda5*: - Convert to USES=libtool and bump dependent ports - USES=tar:xz - Use INSTALL_TARGET=install-strip - Use @sample databases/libgdamm: - Drop :keepla - USES=tar:bzip2 - Use INSTALL_TARGET=install-strip databases/libgdamm5: - Add INSTALL_TARGET=install-strip - Drop --enable-static (inherited from old repocopy) devel/anjuta x11-toolkits/py-gnome-extras: - Drop :keepla dns/powerdns dns/powerdns-devel: - Convert to USES=libtool - Add INSTALL_TARGET=install-strip - Disable static modules - Stop creating library symlinks with .0 suffix, not needed for dynamically opened modules mail/dovecot2: - Add USES=libtool mail/dovecot2-pigeonhole: - Drop CONFIGURE_TARGET (incorrect for Dragonfly) - Add USES=libtool and INSTALL_TARGET=install-strip math/gnumeric: - USES=libtool tar:xz Approved by: portmgr (implicit, bump unstaged ports)
120 lines
3.6 KiB
Makefile
120 lines
3.6 KiB
Makefile
# Created by: Cyril Guibourg
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= milter-greylist
|
|
PORTVERSION= 4.5.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ftp://ftp.espci.fr/pub/milter-greylist/ \
|
|
http://fossies.org/unix/privat/
|
|
PKGNAMESUFFIX= -devel
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Easy-to-use greylist milter for sendmail and postfix (development)
|
|
|
|
LICENSE= BSD
|
|
|
|
CONFLICTS= milter-greylist-4.2.* milter-greylist-4.4.*
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
OPTIONS_DEFINE= LIBSPF2 GEOIP CURL LDAP POSTFIX
|
|
LIBSPF2_DESC= Include SPF support
|
|
POSTFIX_DESC= Use Postfix instead of Sendmail
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
##
|
|
# Use the following quirks to choose which sendmail to use (ports or system):
|
|
#
|
|
# WITH_SENDMAIL_BASE=yes
|
|
# or
|
|
# WITH_SENDMAIL_PORT=yes
|
|
#
|
|
# If unspecified, check for an up-to-date system version but give an
|
|
# installed port preference over it.
|
|
##
|
|
|
|
MAN5= greylist.conf.5
|
|
MAN8= milter-greylist.8
|
|
|
|
##
|
|
# If you have a reentrant resolver (starting with RELENG_5_2) you can use SPF
|
|
##
|
|
.if ${PORT_OPTIONS:MLIBSPF2}
|
|
BUILD_DEPENDS+= libspf2>=1.2.5:${PORTSDIR}/mail/libspf2
|
|
CONFIGURE_ARGS+= --with-libspf2=${LOCALBASE}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MGEOIP}
|
|
BUILD_DEPENDS+= GeoIP>=1.4.4:${PORTSDIR}/net/GeoIP
|
|
CONFIGURE_ARGS+= --with-libGeoIP=${LOCALBASE}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MCURL}
|
|
BUILD_DEPENDS+= curl>=7.18:${PORTSDIR}/ftp/curl
|
|
CONFIGURE_ARGS+= --with-libcurl=${LOCALBASE}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
USE_OPENLDAP=yes
|
|
CONFIGURE_ARGS+= --with-openldap
|
|
.endif
|
|
.if ${PORT_OPTIONS:MPOSTFIX}
|
|
CONFIGURE_ARGS+= --enable-postfix
|
|
.else
|
|
LDFLAGS+= ${SENDMAIL_LDFLAGS}
|
|
LIBS+= ${SENDMAIL_LDADD}
|
|
.endif
|
|
RUN_DEPENDS+= ${BUILD_DEPENDS}
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
LIBS+= ${PTHREAD_LIBS}
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-user=mailnull --with-libmilter=${MILTERBASE} \
|
|
--enable-dnsrbl --with-thread-safe-resolver
|
|
|
|
ALL_TARGET= milter-greylist
|
|
SUB_FILES+= pkg-message
|
|
|
|
USE_RC_SUBR= milter-greylist
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/etc/mail
|
|
@${INSTALL_MAN} ${WRKSRC}/greylist.conf.5 ${PREFIX}/man/man5
|
|
@${INSTALL_MAN} ${WRKSRC}/milter-greylist.8 ${PREFIX}/man/man8
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/milter-greylist ${PREFIX}/libexec
|
|
@${INSTALL_DATA} ${WRKSRC}/greylist.conf \
|
|
${PREFIX}/etc/mail/greylist.conf.sample
|
|
|
|
post-install:
|
|
@${MKDIR} /var/milter-greylist
|
|
@${CHOWN} -R mailnull /var/milter-greylist
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/greylist.conf ${EXAMPLESDIR}
|
|
.endif
|
|
@${TEST} -f /var/db/milter-greylist/greylist.db && ( \
|
|
${ECHO} "************************************************************"; \
|
|
${ECHO} "************************************************************"; \
|
|
${ECHO} "** **"; \
|
|
${ECHO} "** WARNING **"; \
|
|
${ECHO} "** **"; \
|
|
${ECHO} "** The default dump file location has changed. **"; \
|
|
${ECHO} "** Please move greylist.db from /var/db/milter-greylist/ **"; \
|
|
${ECHO} "** to /var/milter-greylist/ and update your greylist.conf **"; \
|
|
${ECHO} "** accordingly. **"; \
|
|
${ECHO} "** **"; \
|
|
${ECHO} "************************************************************"; \
|
|
${ECHO} "************************************************************"; \
|
|
) || ${TRUE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
|
|
|
.include <bsd.port.post.mk>
|