diff options
author | miwi <miwi@FreeBSD.org> | 2006-11-21 05:12:01 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-11-21 05:12:01 +0800 |
commit | c735328688eb300eaa61a20305c173978c038d17 (patch) | |
tree | 02ded3329cce3f01f2664d2be15292b6699dd12b /mail | |
parent | ce62ed9da299fb771156a73ed37aee9786cec39b (diff) | |
download | freebsd-ports-gnome-c735328688eb300eaa61a20305c173978c038d17.tar.gz freebsd-ports-gnome-c735328688eb300eaa61a20305c173978c038d17.tar.zst freebsd-ports-gnome-c735328688eb300eaa61a20305c173978c038d17.zip |
- respect WITH_SENDMAIL_BASE
PR: ports/105688
Submitted by: thomas@goodking.ca
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamass-milter/Makefile | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/mail/spamass-milter/Makefile b/mail/spamass-milter/Makefile index 9c535633d30d..5471f882ec24 100644 --- a/mail/spamass-milter/Makefile +++ b/mail/spamass-milter/Makefile @@ -7,7 +7,7 @@ PORTNAME= spamass-milter PORTVERSION= 0.3.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SAVANNAH} MASTER_SITE_SUBDIR= spamass-milt @@ -25,8 +25,7 @@ RUN_DEPENDS= ${BUILD_DEPENDS} # or # WITH_SENDMAIL_PORT=yes # -# If unspecified, check for an up-to-date system version but give an -# installed port preference over it. +# If unspecified, give base precedence. # .include <bsd.port.pre.mk> @@ -47,17 +46,18 @@ LDFLAGS+= -L${LOCALBASE}/lib .if !defined(WITH_SENDMAIL_BASE) && \ !defined(WITH_SENDMAIL_PORT) && \ - !exists(${LOCALBASE}/lib/libmilter.a) WITH_SENDMAIL_BASE=yes .endif -.if defined(WITH_SENDMAIL_BASE) -.if exists(/usr/lib/libmilter.a) +.if defined(WITH_SENDMAIL_BASE) && exists(/usr/lib/libmilter.a) MILTERBASE= /usr .else +.if !exists(/usr/lib/libmilter.a) BROKEN= Base system sendmail not found or too old, rebuild with WITH_SENDMAIL_PORT=yes .endif -.else +.endif + +.if defined(WITH_SENDMAIL_PORT) BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail MILTERBASE?= ${LOCALBASE} .endif @@ -81,11 +81,22 @@ PKGMESSAGE= ${WRKDIR}/pkg-message MAN1= spamass-milter.1 -pre-fetch: +pre-patch: + +.if !defined(WITH_SENDMAIL_PORT) + @${ECHO_CMD} "" + @${ECHO_CMD} "By default, ${PORTNAME} builds against the base system." + @${ECHO_CMD} "If you want to use the sendmail port please set the environment" + @${ECHO_CMD} "variable WITH_SENDMAIL_PORT" + @${ECHO_CMD} "" +.endif + +.if !defined(WITH_ADDAUTH_PATCH) @${ECHO_CMD} "" @${ECHO_CMD} "You may set environment variable WITH_ADDAUTH_PATCH to bypass" @${ECHO_CMD} "checks if a connection authenticated via SMTP." @${ECHO_CMD} "" +.endif post-patch: @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ |