Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2017 16:02:05 +0100
From:      Andrea Venturoli <ml@netfence.it>
To:        Michael Gmelin <freebsd@grem.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Writing a port that simply installs a bunch of files
Message-ID:  <5e3354dc-b597-7622-dbae-07d4119d1b7a@netfence.it>
In-Reply-To: <32660472-60AF-47C0-861C-023BAFC39C3D@grem.de>
References:  <66d50818-f00e-9033-4c93-f159c38d04ba@netfence.it> <32660472-60AF-47C0-861C-023BAFC39C3D@grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/06/17 12:50, Michael Gmelin wrote:

> Yes, that's possible, see sysutils/bhyve-rc[0] for an example how to do it.

Thanks for your answer: an example is really welcome.

However, I might be dumb, but that does not fully cover what I was 
looking for.

I see sysutils/bhyve-rc uses USE_RC_SUBR in order to install its only 
file, but that's specific to rc.d scripts.
Suppose I want a mean to install generic files, should I use SUB_FILES?

The first problem I encounter, then, is with subdirectories.
Suppose I want to install /usr/local/a/b/c.txt, I would use 
"SUB_FILES=a/b/c.txt" and provide files/a/b/c.txt.in.
However, I'll get:
> cannot create /usr/ports/misc/xxx/work/a/b/c.txt: No such file or directory

I've also tried "SUB_FILES=${WRKSRC}/a/b/c.txt", but then make will say:
> ** Missing /usr/ports/misc/xxx/files//usr/ports/misc/xxx/work/xxx-y/a/b/c.txt.in for xxx-y.


Am I missing something obvious?


  bye & Thanks
	av.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5e3354dc-b597-7622-dbae-07d4119d1b7a>