summaryrefslogtreecommitdiffstats
path: root/mail/smtpd
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-08-23 19:27:19 +0000
committerdinoex <dinoex@FreeBSD.org>2002-08-23 19:27:19 +0000
commitd21a81031a6f6cb1feec9407b929a97bffe31ddd (patch)
tree2afed19c630ea7fa0b298c5887b32ea4210ead0d /mail/smtpd
parent35eb6a3d0bd80f9d8bb9d2565e4ce66571333eac (diff)
downloadFreeBSD-ports-d21a81031a6f6cb1feec9407b929a97bffe31ddd.zip
FreeBSD-ports-d21a81031a6f6cb1feec9407b929a97bffe31ddd.tar.gz
Unreak port.
Build only with sendmail-old port. PR: 36772
Diffstat (limited to 'mail/smtpd')
-rw-r--r--mail/smtpd/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/smtpd/Makefile b/mail/smtpd/Makefile
index 2c0d9ac..eb0a1dd 100644
--- a/mail/smtpd/Makefile
+++ b/mail/smtpd/Makefile
@@ -16,7 +16,7 @@ PATCHFILES= patch-smtpd-2.0-RBL.gz
MAINTAINER= ports@FreeBSD.org
-BROKEN= Does not work with Sendmail-8.12
+RUN_DEPENDS= ${LOCALBASE}/sbin/sendmail:${PORTSDIR}/mail/sendmail-old
# Directory where smtpd will chroot to, and put the received mail
# If you change it here, change also patches/patch-aa
@@ -27,11 +27,15 @@ post-patch:
@${SED} s+!!SPOOLBASE!!+${SPOOLBASE}+g < ${WRKSRC}/Makefile.tmp \
> ${WRKSRC}/Makefile
+pre-install:
+ @${ECHO_CMD} "Does not work with Sendmail-8.12, checking Version:"
+ ${LOCALBASE}/sbin/sendmail -d -t </dev/null | grep Version.8.11
+
post-install:
@${MKDIR} ${PREFIX}/share/doc/smtpd
@${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/smtpd
- @${ECHO} "Creating spool directories..."
+ @${ECHO_CMD} "Creating spool directories..."
@${MKDIR} ${SPOOLBASE}
@${CHOWN} root:uucp ${SPOOLBASE}
@${CHMOD} 0710 ${SPOOLBASE}
@@ -48,7 +52,7 @@ post-install:
@${CP} -p /etc/localtime ${SPOOLBASE}/etc
.endif
- @${ECHO} "Copying examples..."
+ @${ECHO_CMD} "Copying examples..."
@${INSTALL} ${COPY} -g uucp -o root -m 0640 \
${WRKSRC}/antirelay_check_rules_example \
${SPOOLBASE}/etc/antirelay_check_rules.example
@@ -59,14 +63,14 @@ post-install:
${WRKSRC}/smtpd_check_rules.example \
${SPOOLBASE}/etc
- @${ECHO} "Creating startup file..."
+ @${ECHO_CMD} "Creating startup file..."
@${SED} s+!!PREFIX!!+${PREFIX}+ \
< ${FILESDIR}/smtpd.sh \
> ${PREFIX}/etc/rc.d/smtpd.sh
@${CHMOD} 0700 ${PREFIX}/etc/rc.d/smtpd.sh
@${CHOWN} 0:0 ${PREFIX}/etc/rc.d/smtpd.sh
- @${ECHO} "Done!"
+ @${ECHO_CMD} "Done!"
@${CAT} ${PKGMESSAGE}
OpenPOWER on IntegriCloud