Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2016 13:32:30 +1000
From:      Aristedes Maniatis <amaniatis@apache.org>
To:        Mathieu Arnold <mat@FreeBSD.org>, Aristedes Maniatis <amaniatis@apache.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: ${INSTALL_DATA} problems
Message-ID:  <557d8ed5-3e3a-6384-4b63-b4ed145e0071@apache.org>
In-Reply-To: <cef2af10-89ce-e443-8bde-a7eb73d7a5bf@FreeBSD.org>
References:  <cb59dad8-c6a0-ffc1-4705-9e8a66ca2679@apache.org> <cef2af10-89ce-e443-8bde-a7eb73d7a5bf@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/09/2016 10:47pm, Mathieu Arnold wrote:
> Now, I'm seeing something else that is a bad idea, it is using the -o
> flag.  Ports must build as a regular user.  A regular user will not be
> able to change the owner of the files.  This must be done in the
> pkg-plist file, using @owner/@group as described in the Porter's
> Handbook:
> https://www.freebsd.org/doc/en/books/porters-handbook/plist-keywords.html


I've just tried this but ran into some difficulty. Specifically I have a plist which is many hundreds of lines long. There is no way this will be maintained into the future without mistake.

So I found in Mk/Uses/drupal.mk, this syntx:

PLIST_FILES+=   "@owner www" \
                "@group www" \


When I added this to my Makefile


PLIST_FILES+=   "@owner {$SOLR_USER}" \
                "@group {$SOLR_GROUP}" \


nothing happened.


I really only want one folder installed with the correct permissions, but do I need to move my chmod code into the rc.d startup script instead and tying it into the pkg install?


Ari



-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?557d8ed5-3e3a-6384-4b63-b4ed145e0071>