Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2018 22:26:26 -0400
From:      Joseph Ward <jbwlists@hilltopgroup.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Any way to prevent do-extract chmod and chown?
Message-ID:  <af782123-0daa-be62-7303-ef2678215c8c@hilltopgroup.com>
In-Reply-To: <20180628002227.6a829860@raksha.tavi.co.uk>
References:  <dbfc8dbc-547c-74d9-e2dc-3cb3367293e1@hilltopgroup.com> <20180628002227.6a829860@raksha.tavi.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Overriding the do-extract target is exactly what I was looking for. 
Something I didn't know I could do.  It worked perfectly, thanks! 
Unfortunately there are way too many files with various owners to try
and fix the permissions afterwards or in the pkg-plist.  (I did consider
creating a script to traverse everything, save the permissions, and
apply it after the fact, but I wanted something easier and more elegant,
and this is great!)

Thank you again!

-Joseph


On 06/27/2018 07:22 PM, Bob Eager wrote:
> On Wed, 27 Jun 2018 19:06:44 -0400
> Joseph Ward <jbwlists@hilltopgroup.com> wrote:
>
>> When I "make extract", the "do-extract" target is performing a chmod
>> and chown on everything, as seen from the following excerpt from the
>> bsd.port.mk file:
>  .
>  .
>  .
>
>> Short of commenting those lines out (which I really don't want to do
>> because I have 0 idea why it's there or what I'd break with other
>> ports) is there any way at all to maintain the ownership of the
>> files? 
> If the ownership is well defined and not complex, you could add a
> post-extract: target in your Makefile and fix up the ownerships then.
>
> Or, you could override the do-extract: target with your own, and
> extract the files as you want (probably replicating part of the real
> do-extract: target).
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?af782123-0daa-be62-7303-ef2678215c8c>