aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2010-08-11 08:23:31 +0800
committergarga <garga@FreeBSD.org>2010-08-11 08:23:31 +0800
commit837b55722ce6bd46e4712743c9afe03084484900 (patch)
treed70b0bbc7f64b1ff01f50f9f8d151d7716496abb /mail
parent12f903ff88cece0233173974ab0e3e3af010cd78 (diff)
downloadfreebsd-ports-gnome-837b55722ce6bd46e4712743c9afe03084484900.tar.gz
freebsd-ports-gnome-837b55722ce6bd46e4712743c9afe03084484900.tar.zst
freebsd-ports-gnome-837b55722ce6bd46e4712743c9afe03084484900.zip
- Really fix qmail-spamcontrol build now, i was building ucspi-ssl after
install_spamcontrol.sh and it must run before since this script need to copy ssl.a to correct place - Bump PORTREVISION
Diffstat (limited to 'mail')
-rw-r--r--mail/qmail-spamcontrol/Makefile2
-rw-r--r--mail/qmail/Makefile32
2 files changed, 12 insertions, 22 deletions
diff --git a/mail/qmail-spamcontrol/Makefile b/mail/qmail-spamcontrol/Makefile
index d4d09be038db..96eacb1460e7 100644
--- a/mail/qmail-spamcontrol/Makefile
+++ b/mail/qmail-spamcontrol/Makefile
@@ -7,7 +7,7 @@
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${SPAMCONTROL_VERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES+= http://www.fehcom.de/qmail/spamcontrol/:spamcontrol \
${MASTER_SITE_LOCAL:S/$/:spamcontrol/}
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index 30806eec4b73..6e08eea8200a 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -180,7 +180,7 @@ LDAP_PARAMS= ALTQUEUE BIGBROTHER BIGTODO BIND_8_COMPAT\
QMQP_COMPRESS QUOTATRASH SMTPEXECCHECK
.elif defined(SLAVE_SPAMCONTROL)
-OPTIONS+= TLSREMOTE "TLS support (requires ucspi-ssl)" on \
+OPTIONS+= TLSREMOTE "TLS support" on \
MOREIPME "Add control files (more|not)ipme" off \
BIGTODO "Bruce Guenter's BigToDo patch" off \
NEWLINE "smtpd accept bare line feeds" off \
@@ -511,7 +511,7 @@ PATCH_SITE_SUBDIR+= garga/qmail/:ldapenhacelog
PATCHFILES+= enhacelogging-ldap-${LDAP_PATCH_DATE}_4.patch:ldapenhacelog
.endif
-.if defined(SLAVE_SPAMCONTROL) && defined(WITH_TLSREMOTE)
+.if defined(SLAVE_SPAMCONTROL)
MASTER_SITES+= http://www.superscript.com/ucspi-ssl/:ucspi_ssl \
http://dev.qmailrocks.org/downloads/qmailrocks_3.0-beta/:ucspi_ssl \
${MASTER_SITE_GENTOO:S/$/:ucspi_ssl/}
@@ -598,9 +598,7 @@ pre-everything::
post-extract:
.if defined(SLAVE_SPAMCONTROL)
@cd ${WRKSRC} && ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${SPAMCONTROL_DIST}
-. if defined(WITH_TLSREMOTE)
@cd ${WRKDIR} && ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/ucspi-ssl-0.70.tar.gz
-. endif
.endif
post-patch:
@@ -633,6 +631,15 @@ post-patch:
. for option in ${SELECTED_OPTIONS}
@${ECHO_CMD} ${option} >> ${WRKSRC}/conf-spamcontrol
. endfor
+ @cd ${UCSPISRC}/src && patch -p0 < ${DISTDIR}/${DIST_SUBDIR}/ucspi-ssl-0.70_ucspitls-0.6.patch_
+ @${ECHO_CMD} "${UCSPISRC}/compile" > ${WRKSRC}/conf-ucspissl
+ ${ECHO_CMD} "${CC} ${CFLAGS}" > ${UCSPISRC}/src/conf-cc
+ ${ECHO_CMD} "${PREFIX}" > ${UCSPISRC}/src/conf-home
+ ${ECHO_CMD} "${PREFIX}/bin" > ${UCSPISRC}/src/conf-tcpbin
+ ${ECHO_CMD} "/etc/ssl" > ${UCSPISRC}/src/conf-cadir
+ ${ECHO_CMD} "/etc/ssl/cert.pem" > ${UCSPISRC}/src/conf-cafile
+ ${ECHO_CMD} "/etc/ssl/dh1024.pem" > ${UCSPISRC}/src/conf-dhfile
+ @cd ${UCSPISRC} && package/compile
@cd ${WRKSRC} && ./install_spamcontrol.sh
@${PATCH} -d ${WRKSRC} < ${FILESDIR}/extra-patch-spamcontrol-qmail-smtpd.c
. if defined(WITH_SPF_PATCH) && defined(SPF_SPAMCONTROL_PATCH)
@@ -648,10 +655,6 @@ post-patch:
${WRKSRC}/qmail-smtpd.c
. endif
. endif
-. if defined(WITH_TLSREMOTE)
- @cd ${UCSPISRC}/src && patch -p0 < ${DISTDIR}/${DIST_SUBDIR}/ucspi-ssl-0.70_ucspitls-0.6.patch_
- @${ECHO_CMD} "${UCSPISRC}/compile" > ${WRKSRC}/conf-ucspissl
-. endif
@${REINPLACE_CMD} -E "/qhpsi *= *\"unknown\"/d; s/(\*qqx *== *'D')/qhpsi \&\& \1/g" \
${WRKSRC}/qmail-smtpd.c
.elif defined(SLAVE_TLS)
@@ -733,19 +736,6 @@ do-configure:
> ${WRKSRC}/conf-spawn ; \
fi
.endif
-.if defined(SLAVE_SPAMCONTROL) && defined(WITH_TLSREMOTE)
- ${ECHO_CMD} "${CC} ${CFLAGS}" > ${UCSPISRC}/src/conf-cc
- ${ECHO_CMD} "${PREFIX}" > ${UCSPISRC}/src/conf-home
- ${ECHO_CMD} "${PREFIX}/bin" > ${UCSPISRC}/src/conf-tcpbin
- ${ECHO_CMD} "/etc/ssl" > ${UCSPISRC}/src/conf-cadir
- ${ECHO_CMD} "/etc/ssl/cert.pem" > ${UCSPISRC}/src/conf-cafile
- ${ECHO_CMD} "/etc/ssl/dh1024.pem" > ${UCSPISRC}/src/conf-dhfile
-.endif
-
-pre-build:
-.if defined(SLAVE_SPAMCONTROL) && defined(WITH_TLSREMOTE)
- @cd ${UCSPISRC} && package/compile
-.endif
do-install:
.for i in ${BOOTFILES}