mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
741aa71483
Specifically, newer autoconf (> 2.13) has different semantic of the configure target. In short, one should use --build=CONFIGURE_TARGET instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning and the old semantic may be removed in later autoconf releases. To workaround this issue, many ports hack the CONFIGURE_TARGET variable so that it contains the ``--build='' prefix. To solve this issue, under the fact that some ports still have configure script generated by the old autoconf, we use runtime detection in the do-configure target so that the proper argument can be used. Changes to Mk/*: - Add runtime detection magic in bsd.port.mk - Remove CONFIGURE_TARGET hack in various bsd.*.mk - USE_GNOME=gnometarget is now an no-op Changes to individual ports, other than removing the CONFIGURE_TARGET hack: = pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables) - comms/gnuradio - science/abinit - science/elmer-fem - science/elmer-matc - science/elmer-meshgen2d - science/elmerfront - science/elmerpost = use x86_64 as ARCH - devel/g-wrap = other changes - print/magicfilter GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf Total # of ports modified: 1,027 Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes) PR: 126524 (obsoletes 52917) Submitted by: rafan Tested on: two pointyhat 7-amd64 exp runs (by pav) Approved by: portmgr (pav)
110 lines
3.0 KiB
Makefile
110 lines
3.0 KiB
Makefile
# New ports collection makefile for: qsheff
|
|
# Date created: 14 Jul 2005
|
|
# Whom: Ozkan KIRIK <ozkan@enderunix.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= qsheff-II
|
|
PORTVERSION= 2.1.r3
|
|
PORTREVISION= 2
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.enderunix.org/qsheff/ \
|
|
SF/qsheff
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-r/}
|
|
|
|
MAINTAINER= ozkan@enderunix.org
|
|
COMMENT= A qmail-queue replacement to filter mail traffic
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/ripmime:${PORTSDIR}/mail/ripmime
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_QMAIL= yes
|
|
|
|
DOCS= README COPYING AUTHORS ChangeLog INSTALL THANKS TODO
|
|
EXAMPLES= sample-OK.msg sample-SPAM.msg sample-VIRUS.msg
|
|
CONTRIB= README qq-custom-error-patch.diff qq-patch.diff \
|
|
qsheff-patch.diff
|
|
FILES= handbook.en.txt handbook.tr.txt spamass-qsheff.en.html
|
|
ETCFILES= install-wrapper.sh uninstall-wrapper.sh qsheff.attach-default \
|
|
qsheff.conf-default qsheff.ignore-default qsheff.rules-default
|
|
|
|
CONFIGURE_ARGS+= --with-qmaildir=${QMAIL_PREFIX}
|
|
|
|
OPTIONS= CLAMAV "Integrate with Clam AntiVirus" on \
|
|
SPAMTAG "Enable Spam Tagging" off \
|
|
VIRUSTAG "Enable Virus Tagging" off \
|
|
DISABLELOCAL "Disable Filters For Local Users" off \
|
|
SYSLOG "Enable Syslog Logging" off \
|
|
BACKUP "Enable Logging Incoming/Outgoing Mail" off \
|
|
CUSTOMERROR "Enable Custom Error Patch" off \
|
|
DEBUG "Enable Debug Messages" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_CLAMAV)
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav
|
|
CONFIGURE_ARGS+= --with-clamav
|
|
CONFIGURE_ARGS+= --with-clamd-socket=/var/run/clamav/clamd
|
|
.endif
|
|
|
|
.if defined(WITH_SPAMTAG)
|
|
CONFIGURE_ARGS+= --enable-spam-tag
|
|
.endif
|
|
|
|
.if defined(WITH_VIRUSTAG)
|
|
CONFIGURE_ARGS+= --enable-virus-tag
|
|
.endif
|
|
|
|
.if defined(WITH_SYSLOG)
|
|
CONFIGURE_ARGS+= --enable-syslog
|
|
.endif
|
|
|
|
.if defined(WITH_DISABLELOCAL)
|
|
CONFIGURE_ARGS+= --disable-local-users
|
|
.endif
|
|
|
|
.if defined(WITH_BACKUP)
|
|
CONFIGURE_ARGS+= --enable-backup
|
|
.endif
|
|
|
|
.if defined(WITH_CUSTOMERROR)
|
|
CONFIGURE_ARGS+= --enable-custom-error
|
|
.endif
|
|
|
|
.if defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|^CFLAGS =|CFLAGS +=|" ${WRKSRC}/Makefile.in
|
|
.if defined(NOPORTDOCS)
|
|
@${REINPLACE_CMD} -e 's|\(install-data-am: \)install-qsheffdocDATA|\1|g' \
|
|
-e 's| contribute$$||g' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
post-build:
|
|
.if defined(WITHOUT_CLAMAV)
|
|
@${REINPLACE_CMD} -e 's|enable_virus_prog = 1|enable_virus_prog = 0|g' \
|
|
${WRKSRC}/etc/qsheff.conf-default
|
|
.endif
|
|
|
|
do-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}/doc
|
|
@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
@${INSTALL_DATA} ${FILES:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/doc/
|
|
@${MKDIR} ${EXAMPLESDIR}/contrib
|
|
@${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/samples/,} ${EXAMPLESDIR}/
|
|
@${INSTALL_DATA} ${CONTRIB:S,^,${WRKSRC}/contrib/,} ${EXAMPLESDIR}/contrib
|
|
.endif
|
|
@${MKDIR} ${ETCDIR}
|
|
@${INSTALL_DATA} ${ETCFILES:S,^,${WRKSRC}/etc/,} ${ETCDIR}/
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/src/qsheff ${PREFIX}/bin/qsheff
|
|
|
|
.include <bsd.port.post.mk>
|