ports/57784: [patch] mail/sendmail: install share/sendmail/cf/* files when NOPORTDOCS
Alex Vasylenko
lxv at send2pr.sink.omut.org
Thu Oct 9 06:10:15 UTC 2003
>Number: 57784
>Category: ports
>Synopsis: [patch] mail/sendmail: install share/sendmail/cf/* files when NOPORTDOCS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 08 23:10:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Alex Vasylenko
>Release: FreeBSD 4.8-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD 4.8-RELEASE-p4
>Description:
sendmail cf/ files don't get installed if mail/sendmail port is built with NOPORTDOCS flag
>How-To-Repeat:
cd /usr/ports/mail/sendmail && make install clean NOPORTDOCS=yes
>Fix:
--- Makefile.orig Wed Sep 24 10:25:30 2003
+++ Makefile Wed Oct 8 22:54:17 2003
@@ -133,12 +133,12 @@
if ! pw groupshow smmsp; then pw groupadd smmsp -g 25; fi
if ! pw usershow smmsp; then pw useradd smmsp -g smmsp -u 25 \
-h - -d /nonexistent -s /nonexistent -c "Sendmail Queue"; fi
-.if !defined(NOPORTDOCS)
@cd ${WRKSRC} && ${FIND} cf -type f | \
${AWK} '{print "share/sendmail/" $$1}' >>${PLIST}
@cd ${WRKSRC} && ${FIND} -d cf -type d | \
${AWK} '{print "@dirrm share/sendmail/" $$1}' >>${PLIST}
@${ECHO_CMD} "@dirrm share/sendmail" >>${PLIST}
+.if !defined(NOPORTDOCS)
.for i in ${DOCS}
@${ECHO_CMD} `${BASENAME} ${i}` | \
${AWK} '{print "share/doc/sendmail/" $$1}' >>${PLIST}
@@ -180,10 +180,10 @@
@${RM} -f ${MANPREFIX}/man/cat1/${i} ${MANPREFIX}/man/cat1/${i}.gz
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man1
.endfor
-.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/sendmail ${DOCSDIR}
@${TAR} -C ${WRKSRC} -cf - cf | \
${TAR} -C ${PREFIX}/share/sendmail -xf -
+.if !defined(NOPORTDOCS)
@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/doc/op/op.ps ${DOCSDIR}/op.ps
${INSTALL_DATA} ${WRKSRC}/doc/op/op.txt ${DOCSDIR}/op.txt
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list