Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2001 16:18:58 +0100
From:      Tom Hukins <tom@FreeBSD.org>
To:        Peter Pentchev <roam@ringlet.net>
Cc:        freebsd-ports@freebsd.org, doc@freebsd.org
Subject:   Re: NOPORTDOCS and make package
Message-ID:  <20010826161858.A62947@eborcom.com>
In-Reply-To: <20010824193300.C532@ringworld.oblivion.bg>; from roam@ringlet.net on Fri, Aug 24, 2001 at 07:33:00PM %2B0300
References:  <20010824121353.A1047@shall.anarcat.dyndns.org> <20010824193300.C532@ringworld.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help

--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Aug 24, 2001 at 07:33:00PM +0300, Peter Pentchev wrote:
> 
> Put %%PORTDOCS%% before each file which is installed conditionally
> depending on the NOPORTDOCS knob.  Look at e.g. ftp/pure-ftpd for
> an example.

This isn't mentioned in the Porter's Handbook.  If nobody objects to
the patch I'm sending with this message, I'll apply it in the next few
days.

Thanks,
Tom

--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="porters-handbook.patch"

--- book.sgml.was	Sun Aug 26 07:25:23 2001
+++ book.sgml	Sun Aug 26 16:15:31 2001
@@ -3251,10 +3251,13 @@
         ${INSTALL_MAN} ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv
 .endif</programlisting>
 
-        <para>Do not forget to add them to <filename>pkg-plist</filename> too.
-          (Do not worry about <makevar>NOPORTDOCS</makevar> here; there is
-          currently no way for the packages to read variables from
-          <filename>/etc/make.conf</filename>.)</para>
+	<para>Documentation should be included in
+	  <filename>pkg-plist</filename> with the
+	  <literal>%%NOPORTDOCS%%</literal> prefix, for
+	  example:</para>
+
+	<programlisting>%%PORTDOCS%%share/doc/pure-ftpd/AUTHORS
+%%PORTDOCS%%share/doc/pure-ftpd/CONTACT</programlisting>
 
         <para>You can also use the <filename>pkg-message</filename> file to
           display messages upon installation.  See the <link

--82I3+IH0IqGh5yIs--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010826161858.A62947>