Question about pkg-plist

Ion-Mihai Tetcu itetcu at FreeBSD.org
Sun Jan 31 20:04:24 UTC 2010


On Sun, 31 Jan 2010 20:27:53 +0100
david fries <djf at gmx.ch> wrote:

> Hello everybody
> 
> I'm currently working on a tiny little port. It consists of a single
> binary and an accompanying LICENSE file. When I ran genplist, it
> generated this in pkg-plist.new:
> 
> bin/mybinary
> %%PORTDOCS%%%%DOCSDIR%%/LICENSE
> %%PORTDOCS%%@dirrm %%DOCSDIR%%
> 
> Simple enough. However, I also know that the LICENSE file will also be
> installed if NOPORTDOCS has been defined. I thought maybe I should
> write something like this. 
> 
> bin/mybinary
> %%DOCSDIR%%/LICENSE
> @dirrm %%DOCSDIR%%

If you install the LICENCE file depending on NOPORTDOCS, the you should
keep the first variant; if not, the second. First is what you should do.


-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> itetcu at FreeBSD.org, PGP Key ID 057E9F8B493A297B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20100131/1370f58a/signature.pgp


More information about the freebsd-ports mailing list