aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/sendmail-old/Makefile16
-rw-r--r--mail/sendmail-old/files/pkg-milter1
-rw-r--r--mail/sendmail/Makefile16
-rw-r--r--mail/sendmail/files/pkg-milter1
-rw-r--r--mail/sendmail811/Makefile16
-rw-r--r--mail/sendmail811/files/pkg-milter1
-rw-r--r--mail/sendmail812/Makefile16
-rw-r--r--mail/sendmail812/files/pkg-milter1
8 files changed, 60 insertions, 8 deletions
diff --git a/mail/sendmail-old/Makefile b/mail/sendmail-old/Makefile
index 668373eb6a0e..f68e3d74dffe 100644
--- a/mail/sendmail-old/Makefile
+++ b/mail/sendmail-old/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/sendmail-old/files/pkg-milter b/mail/sendmail-old/files/pkg-milter
index 3a6d76aa9a56..78d9d64c0a6f 100644
--- a/mail/sendmail-old/files/pkg-milter
+++ b/mail/sendmail-old/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
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 668373eb6a0e..f68e3d74dffe 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/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/sendmail/files/pkg-milter b/mail/sendmail/files/pkg-milter
index 3a6d76aa9a56..78d9d64c0a6f 100644
--- a/mail/sendmail/files/pkg-milter
+++ b/mail/sendmail/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
diff --git a/mail/sendmail811/Makefile b/mail/sendmail811/Makefile
index 668373eb6a0e..f68e3d74dffe 100644
--- a/mail/sendmail811/Makefile
+++ b/mail/sendmail811/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/sendmail811/files/pkg-milter b/mail/sendmail811/files/pkg-milter
index 3a6d76aa9a56..78d9d64c0a6f 100644
--- a/mail/sendmail811/files/pkg-milter
+++ b/mail/sendmail811/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
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