Writing a port that simply installs a bunch of files
Michael Gmelin
freebsd at grem.de
Mon Mar 6 11:50:31 UTC 2017
> On 6 Mar 2017, at 12:25, Andrea Venturoli <ml at netfence.it> wrote:
>
> Hello.
>
> I'm trying to create a small ports for internal use.
> The simplest of these should just place a bunch of files into ${LOCALBASE}, so I thought I could create a tar archive containing those files, with the correct permissions, let "extract" do its work, then have the following:
>
>> do-install:
>> (cd ${WRKSRC} && ${CP} -pR . ${STAGEDIR}${PREFIX})
>
>
> Alas the "extract-fixup-modes" target will ruins all this.
>
> Is there a way to achieve what I'm trying to achieve?
>
>
>
> Better yet, could I just somehow place my content under "files" and do without a distfile?
>
>
Yes, that's possible, see sysutils/bhyve-rc[0] for an example how to do it.
-m
[0] https://svnweb.freebsd.org/ports/head/sysutils/bhyve-rc/
More information about the freebsd-ports
mailing list