1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/mail/qmail-spamcontrol/Makefile
Bryan Drewery eea86e0ade Fix patch application in mail/qmail-spamcontrol:
The spamcontrol patch is applied through a script, install_spamcontrol.sh. This
script does not return a non-zero status when patch failures are encountered.
So I missed many failures when updating this port.

To fix this, move the spamcontrol patch application to pre-patch so that the
PATCHFILES->DISTFILES (and manual patch application with PATCH) is not needed
for most patches. This ensures that the spamcontrol patch is always applied
before PATCHFILES. Some PATCHFILES were applying before the spamcontrol patch
causing it to fail to patch properly.

Bump revision as the build had been fine but some files were not being
generated in the package.

Also add my mirror as distcache does not have the updated patches yet.

Reported by:	Oleg Strizhak
MFH:		2014Q3
2014-07-03 02:20:07 +00:00

36 lines
1.0 KiB
Makefile

# $FreeBSD$
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${SPAMCONTROL_VERSION}
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES+= http://www.fehcom.de/qmail/spamcontrol/:spamcontrol \
${MASTER_SITE_LOCAL:S/$/:spamcontrol/}
MASTER_SITE_SUBDIR= bdrewery/qmail/:spamcontrol
PKGNAMESUFFIX= -spamcontrol
DISTFILES= ${QMAIL_DIST} ${SPAMCONTROL_DIST}:spamcontrol
EXTRACT_ONLY= ${QMAIL_DIST}
COMMENT= Qmail MTA with SpamControl patches
CONFLICTS= *qmail-[0-9]* qmail-ldap-[0-9]* *qmail-mysql-[0-9]* *qmail-tls-[0-9]*
EXTRA_PATCHES+= ${MASTERDIR}/files/patch-install.c \
${MASTERDIR}/files/patch-Makefile \
${MASTERDIR}/files/patch-auto_uids-c-dist
# Distfiles
QMAIL_DIST= ${PORTNAME}-${QMAIL_VERSION}${EXTRACT_SUFX}
SPAMCONTROL_DIST= spamcontrol-${SPAMCONTROL_VERSION}.tgz
SPAMCONTROL_VERSION= 2731
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
SLAVE_SPAMCONTROL= yes
# Local overrides
MASTERDIR= ${.CURDIR}/../qmail
PATCHDIR= ${.CURDIR}/files
DESCR= ${.CURDIR}/pkg-descr
.include "${MASTERDIR}/Makefile"