aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sendmail-old
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-05-31 15:03:58 +0800
committerdinoex <dinoex@FreeBSD.org>2001-05-31 15:03:58 +0800
commit06c9136833e6aeea0206c6ef1522ec2ef3e49be3 (patch)
tree633834a803910b221d959a2779647970291adafe /mail/sendmail-old
parenta2b23fca3b112b40a550e96488022fc06f937779 (diff)
downloadfreebsd-ports-graphics-06c9136833e6aeea0206c6ef1522ec2ef3e49be3.tar.gz
freebsd-ports-graphics-06c9136833e6aeea0206c6ef1522ec2ef3e49be3.tar.zst
freebsd-ports-graphics-06c9136833e6aeea0206c6ef1522ec2ef3e49be3.zip
- Store documentation in ${PREFIX}/share/doc/sendmail:
KNOWNBUGS LICENSE PGPKEYS README RELEASE_NOTES MILTER
Diffstat (limited to 'mail/sendmail-old')
-rw-r--r--mail/sendmail-old/Makefile16
-rw-r--r--mail/sendmail-old/files/pkg-milter1
2 files changed, 15 insertions, 2 deletions
diff --git a/mail/sendmail-old/Makefile b/mail/sendmail-old/Makefile
index 668373eb6a0..f68e3d74dff 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 3a6d76aa9a5..78d9d64c0a6 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