Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2001 19:33:00 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        The Anarcat <anarcat@anarcat.dyndns.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: NOPORTDOCS and make package
Message-ID:  <20010824193300.C532@ringworld.oblivion.bg>
In-Reply-To: <20010824121353.A1047@shall.anarcat.dyndns.org>; from anarcat@anarcat.dyndns.org on Fri, Aug 24, 2001 at 12:13:53PM -0400
References:  <20010824121353.A1047@shall.anarcat.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 24, 2001 at 12:13:53PM -0400, The Anarcat wrote:
> Hi. 
> 
> I think this might be a stupid question, it's just that I don't see a
> clear immediate answer to it. I am updating a port I maintain
> (audio/ecasound) to its version 2. I intend to make it install
> documentation in share/doc/ecasound. I followed the porters handbook
> suggestion of putting:
> 
> post-install:
> .if !defined(NOPORTDOCS)
>         ${MKDIR} ${PREFIX}/share/doc/ecasound
>         ${MKDIR} ${PREFIX}/share/doc/ecasound/programmers_guide
>         ${MKDIR} ${PREFIX}/share/doc/ecasound/users_guide
>         ${INSTALL_MAN} ${WRKSRC}/Documentation/*.html
> ${WRKSRC}/Documentation/*.txt \
>                 ${PREFIX}/share/doc/ecasound
>         ${INSTALL_MAN} ${WRKSRC}/Documentation/programmers_guide/*.html
> \
>                 ${PREFIX}/share/doc/ecasound/programmers_guide
>         ${INSTALL_MAN} ${WRKSRC}/Documentation/users_guide/*.html \
>                 ${PREFIX}/share/doc/ecasound/users_guide
> .endif
> 
> in the Makefile. However, how can I tell the pkg-plist to behave
> accordingly to NOPORTDOCS? Eg.:
> 
> # make install PREFIX=/var/tmp/ecasound2 package deinstall NOPORTDOCS=yes
> ...
> ===>  Building package for ecasound-2.0.2
> Creating package /usr/ports/packages/All/ecasound-2.0.2.tgz
> Registering depends:.
> Creating gzip'd tar ball in '/usr/ports/packages/All/ecasound-2.0.2.tgz'
> tar: can't add file share/doc/ecasound/ecasound-iam_manpage.html : No
> such file or directory

Put %%PORTDOCS%% before each file which is installed conditionally
depending on the NOPORTDOCS knob.  Look at e.g. ftp/pure-ftpd for
an example.

G'luck,
Peter

-- 
If you think this sentence is confusing, then change one pig.

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?20010824193300.C532>