aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sendmail812
diff options
context:
space:
mode:
Diffstat (limited to 'mail/sendmail812')
-rw-r--r--mail/sendmail812/Makefile16
-rw-r--r--mail/sendmail812/files/pkg-milter1
2 files changed, 15 insertions, 2 deletions
diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile
index 668373eb6a0e..f68e3d74dffe 100644
--- a/mail/sendmail812/Makefile
+++ b/mail/sendmail812/Makefile
@@ -21,6 +21,7 @@ NO_PACKAGE= "sendmail included in base system"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
WCONF= ${WRKSRC}/devtools/Site
PLIST= ${WRKDIR}/.PLIST.more
+DOCS= KNOWNBUGS LICENSE PGPKEYS README RELEASE_NOTES
# Options to define Features:
#
@@ -104,6 +105,11 @@ pre-install:
@cd ${WRKSRC} && find -d cf -type d | \
${AWK} '{print "@dirrm share/sendmail/" $$1}' >>${PLIST}
@${ECHO} "@dirrm share/sendmail" >>${PLIST}
+.for i in ${DOCS}
+ @${ECHO} ${i} | \
+ ${AWK} '{print "share/doc/sendmail/" $$1}' >>${PLIST}
+.endfor
+ @${ECHO} "@dirrm share/doc/sendmail" >>${PLIST}
.endif
.if defined(SENDMAIL_WITH_MILTER)
@@ -143,9 +149,14 @@ post-install:
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man1
.endfor
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/sendmail
+ ${MKDIR} ${PREFIX}/share/sendmail ${PREFIX}/share/doc/sendmail
@cd ${WRKSRC}; ${TAR} cf - cf |\
(cd ${PREFIX}/share/sendmail; ${TAR} xf -)
+ @cd ${WRKSRC}; ${CP} ${DOCS} ${PREFIX}/share/doc/sendmail/
+.if defined(SENDMAIL_WITH_MILTER)
+ ${INSTALL_DATA} ${WRKSRC}/libmilter/README \
+ ${PREFIX}/share/doc/sendmail/MILTER
+.endif
.endif
.if exists(${DESTDIR}/etc/mail/mailer.conf)
@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}
@@ -157,7 +168,8 @@ mailer.conf:
-e "s=^mailq[ ]*/.*$$=mailq ${SENDMAIL}=" \
-e "s=^newaliases[ ]*/.*$$=newaliases ${SENDMAIL}=" \
${DESTDIR}/etc/mail/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
- ${MV} ${DESTDIR}/etc/mail/mailer.conf.new ${DESTDIR}/etc/mail/mailer.conf
+ ${MV} ${DESTDIR}/etc/mail/mailer.conf.new \
+ ${DESTDIR}/etc/mail/mailer.conf
.endif
.include <bsd.port.mk>
diff --git a/mail/sendmail812/files/pkg-milter b/mail/sendmail812/files/pkg-milter
index 3a6d76aa9a56..78d9d64c0a6f 100644
--- a/mail/sendmail812/files/pkg-milter
+++ b/mail/sendmail812/files/pkg-milter
@@ -2,3 +2,4 @@ include/libmilter/mfapi.h
lib/libmilter.a
lib/libsmutil.a
@dirrm include/libmilter
+%%PORTDOCS%%share/doc/sendmail/MILTER