aboutsummaryrefslogtreecommitdiff
path: root/mail/sendmail812/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-09-16 03:17:13 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-09-16 03:17:13 +0000
commitc21ac8a53c873e181d6498019464ebf364782be4 (patch)
treef2dd26ce0feacdf32069183123500ab6fe342b71 /mail/sendmail812/Makefile
parent9300b7c32a64e4a0edc0d5aa5cd40d07ae3f75d9 (diff)
downloadports-c21ac8a53c873e181d6498019464ebf364782be4.tar.gz
ports-c21ac8a53c873e181d6498019464ebf364782be4.zip
Notes
Diffstat (limited to 'mail/sendmail812/Makefile')
-rw-r--r--mail/sendmail812/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile
index 79ebba1f2fa5..684def52545b 100644
--- a/mail/sendmail812/Makefile
+++ b/mail/sendmail812/Makefile
@@ -83,12 +83,16 @@ SITE+= ${FILESDIR}/site.config.m4.milter
.if ! exists(${DESTDIR}/etc/mail/mailer.conf)
PREFIX?= ${DESTDIR}/usr
MANPREFIX?= ${DESTDIR}/usr/share
+PLIST_SUB+= ETCPORT="@comment "
+.else
+PLIST_SUB+= ETCPORT=""
.endif
post-extract:
@${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/sm-client.sh \
> ${WRKSRC}/sm-client.sh
- @${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/sendmail.sh \
+ NSTALL
+@${SED} -e "s=%%PREFIX%%=${PREFIX}=" ${FILESDIR}/sendmail.sh \
> ${WRKSRC}/sendmail.sh
do-configure:
@@ -149,10 +153,12 @@ post-install:
${WRKSRC}/obj.`${WRKSRC}/devtools/bin/Build -A`/libsmdb/libsmdb.a \
${PREFIX}/lib/
.endif
+.if exists(${DESTDIR}/etc/mail/mailer.conf)
${INSTALL_SCRIPT} ${WRKSRC}/sm-client.sh \
- ${PREFIX}/etc/rc.d/sm-client.sh.sample
+ ${LOCALBASE}/etc/rc.d/sm-client.sh.sample
${INSTALL_SCRIPT} ${WRKSRC}/sendmail.sh \
- ${PREFIX}/etc/rc.d/sendmail.sh.sample
+ ${LOCALBASE}/etc/rc.d/sendmail.sh.sample
+.endif
${CHOWN} smmsp:smmsp /var/spool/clientmqueue
${CHMOD} 770 /var/spool/clientmqueue
.for i in ${MAN8}