From 0bcd11754bcb9589b7fbe8f6c3cf70a972ac7850 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Wed, 20 Feb 2002 15:36:33 +0000 Subject: - Add Optional documentation to the package --- news/nntp/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'news/nntp/Makefile') diff --git a/news/nntp/Makefile b/news/nntp/Makefile index c201eb79e3e9..90c4839c9dbe 100644 --- a/news/nntp/Makefile +++ b/news/nntp/Makefile @@ -27,6 +27,8 @@ PLIST_SUB+= NEWSBIN=${NEWSBIN:S=${PREFIX}/==} PLIST_SUB+= NEWSCTL=${NEWSCTL:S=${PREFIX}/==} MODIFY= conf.h Makefile +DOCSFILES1= AUTHORIZE CHANGES README README-conf.h SYSLOG doc/rfc977 +DOCSFILES2= server support xfer xmit NEWSBIN?= ${PREFIX}/news/cnewsbin NEWSCTL?= ${PREFIX}/news/lib @@ -53,5 +55,15 @@ pre-configure: post-install: ${INSTALL_DATA} ${WRKSRC}/overview.fmt ${NEWSCTL}/overview.fmt +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for i in ${DOCSFILES1} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/ +.endfor +.for i in ${DOCSFILES2} + ${INSTALL_DATA} ${WRKSRC}/${i}/README ${DOCSDIR}/${i}-README +.endfor +.endif + @${CAT} ${PKGMESSAGE} .include -- cgit v1.2.3