aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sendmail
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-09-16 11:17:13 +0800
committerdinoex <dinoex@FreeBSD.org>2002-09-16 11:17:13 +0800
commit48de9bf7781e9dd871b076e7a00942c5f455e887 (patch)
tree852607aa49beff07ca6b11eb15e2fb2aa10c83ba /mail/sendmail
parent44a3d2134566cd2a4ba47e2fad8be984e555730e (diff)
downloadfreebsd-ports-gnome-48de9bf7781e9dd871b076e7a00942c5f455e887.tar.gz
freebsd-ports-gnome-48de9bf7781e9dd871b076e7a00942c5f455e887.tar.zst
freebsd-ports-gnome-48de9bf7781e9dd871b076e7a00942c5f455e887.zip
Fix problem when inatll,ion without mailer.conf
PR: 42753
Diffstat (limited to 'mail/sendmail')
-rw-r--r--mail/sendmail/Makefile12
-rw-r--r--mail/sendmail/pkg-plist6
2 files changed, 12 insertions, 6 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 79ebba1f2fa5..684def52545b 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/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}
diff --git a/mail/sendmail/pkg-plist b/mail/sendmail/pkg-plist
index 0739ab6e9f55..1223c7611724 100644
--- a/mail/sendmail/pkg-plist
+++ b/mail/sendmail/pkg-plist
@@ -1,4 +1,4 @@
-@comment $FreeBSD: /tmp/pcvs/ports/mail/sendmail/pkg-plist,v 1.14 2002-07-03 16:01:00 dinoex Exp $
+@comment $FreeBSD: /tmp/pcvs/ports/mail/sendmail/pkg-plist,v 1.15 2002-09-16 03:17:13 dinoex Exp $
@exec if ! pw groupshow smmsp 2>/dev/null; then pw groupadd smmsp -g 25; fi
@exec if ! pw usershow smmsp 2>/dev/null; then pw useradd smmsp -g smmsp -u 25 -h - -d /nonexistent -s /nonexistent -c "Sendmail Queue"; fi
@exec mkdir -p /var/spool/clientmqueue
@@ -12,8 +12,8 @@ bin/newaliases
bin/purgestat
bin/rmail
bin/vacation
-etc/rc.d/sm-client.sh.sample
-etc/rc.d/sendmail.sh.sample
+%%ETCPORT%%etc/rc.d/sm-client.sh.sample
+%%ETCPORT%%etc/rc.d/sendmail.sh.sample
libexec/mail.local
libexec/smrsh
sbin/editmap