From owner-freebsd-doc Sun Aug 26 12:10:59 2001 Delivered-To: freebsd-doc@freebsd.org Received: from toole.uol.com.br (toole.uol.com.br [200.231.206.186]) by hub.freebsd.org (Postfix) with ESMTP id 787A937B408 for ; Sun, 26 Aug 2001 12:10:53 -0700 (PDT) (envelope-from lioux@uol.com.br) Received: from 200.181.49.104 ([200.181.49.104]) by toole.uol.com.br (8.9.1/8.9.1) with ESMTP id QAA16970 for ; Sun, 26 Aug 2001 16:08:52 -0300 (BRT) Received: (qmail 53924 invoked by uid 1001); 26 Aug 2001 16:11:00 -0000 From: "Mario Sergio Fujikawa Ferreira" Date: Sun, 26 Aug 2001 16:10:38 +0000 To: Tom Hukins Cc: Pete Fritchman , freebsd-ports@FreeBSD.ORG, doc@FreeBSD.ORG Subject: Re: NOPORTDOCS and make package Message-ID: <20010826161038.A53859@exxodus.fedaykin.here> References: <20010824121353.A1047@shall.anarcat.dyndns.org> <20010824193300.C532@ringworld.oblivion.bg> <20010826161858.A62947@eborcom.com> <20010826120304.A94436@databits.net> <20010826172808.A63257@eborcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010826172808.A63257@eborcom.com>; from tom@FreeBSD.ORG on Sun, Aug 26, 2001 at 05:27:46PM +0100 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Aug 26, 2001 at 05:27:46PM +0100, Tom Hukins wrote: > On Sun, Aug 26, 2001 at 12:03:04PM -0400, Pete Fritchman wrote: > > ++ 26/08/01 16:18 +0100 - Tom Hukins: > > | + Documentation should be included in > > | + pkg-plist with the > > | + %%NOPORTDOCS%% prefix, for > > ^^^^^^^^^^^^^^ > > %%PORTDOCS%% > > Thanks! > > > | + %%PORTDOCS%%share/doc/pure-ftpd/AUTHORS > > | +%%PORTDOCS%%share/doc/pure-ftpd/CONTACT > > > > Maybe something should be mentioned about prefixing @dirrm's with this > > too? > > I think that's a good idea. I'm attaching an updated patch which > deals with these issues. I should have spoken sooner but the wording should be something like: Inside pkg-plist, all documentation related lines should be prefixed with %%PORTDOCS%% which makes them conditional to NOPORTDOCS variable, for example: %%PORTDOCS%%share/doc/pure-ftpd/AUTHORS %%PORTDOCS%%share/doc/pure-ftpd/CONTACT %%PORTDOCS%%@dirrm share/doc/pure-ftpd %%PORTDOCS%%@unexec rmdir share/doc 2>/dev/null || true Needs help in the wording but the idea is there. Regards, > --- book.sgml.was Sun Aug 26 07:25:23 2001 > +++ book.sgml Sun Aug 26 17:25:12 2001 > @@ -3251,10 +3251,13 @@ > ${INSTALL_MAN} ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv > .endif > > - Do not forget to add them to pkg-plist too. > - (Do not worry about NOPORTDOCS here; there is > - currently no way for the packages to read variables from > - /etc/make.conf.) > + Documentation should be included in > + pkg-plist with the > + %%PORTDOCS%% prefix, for example: > + > + %%PORTDOCS%%share/doc/pure-ftpd/AUTHORS > +%%PORTDOCS%%share/doc/pure-ftpd/CONTACT > +%%PORTDOCS%%@dirrm share/doc/pure-ftpd > > You can also use the pkg-message file to > display messages upon installation. See the