summaryrefslogtreecommitdiff
path: root/mail/sendmail
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/sendmail
parentAdd gnumeric2 after a repo copy from gnumeric. Gnumeric2 is a sreadsheet (diff)
Fix problem when inatll,ion without mailer.conf
PR: 42753
Notes
Notes: svn path=/head/; revision=66409
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