aboutsummaryrefslogtreecommitdiff
path: root/mail/sendmail812
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
parent9300b7c32a64e4a0edc0d5aa5cd40d07ae3f75d9 (diff)
downloadports-c21ac8a53c873e181d6498019464ebf364782be4.tar.gz
ports-c21ac8a53c873e181d6498019464ebf364782be4.zip
Notes
Diffstat (limited to 'mail/sendmail812')
-rw-r--r--mail/sendmail812/Makefile12
-rw-r--r--mail/sendmail812/pkg-plist6
2 files changed, 12 insertions, 6 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}
diff --git a/mail/sendmail812/pkg-plist b/mail/sendmail812/pkg-plist
index 24285b4f098a..b4147a5ff8af 100644
--- a/mail/sendmail812/pkg-plist
+++ b/mail/sendmail812/pkg-plist
@@ -1,4 +1,4 @@
-@comment $FreeBSD: /tmp/pcvs/ports/mail/sendmail812/Attic/pkg-plist,v 1.14 2002-07-03 16:01:00 dinoex Exp $
+@comment $FreeBSD: /tmp/pcvs/ports/mail/sendmail812/Attic/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