Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2016 08:13:51 +0100
From:      Bob Eager <rde@tavi.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: ${INSTALL_DATA} problems
Message-ID:  <20160910081351.36c0aa93@raksha.tavi.co.uk>
In-Reply-To: <557d8ed5-3e3a-6384-4b63-b4ed145e0071@apache.org>
References:  <cb59dad8-c6a0-ffc1-4705-9e8a66ca2679@apache.org> <cef2af10-89ce-e443-8bde-a7eb73d7a5bf@FreeBSD.org> <557d8ed5-3e3a-6384-4b63-b4ed145e0071@apache.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 10 Sep 2016 13:32:30 +1000
Aristedes Maniatis <amaniatis@apache.org> wrote:

> > 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.

If you refer back to the Porter's Handbook (section 3.2.2):

"If the port installs just a handful of files, list them in
PLIST_FILES"

Note the word 'handful'. Also, PLIST_FILES *replaces* pkg-plist; you
can't have both. In any case, I am not sure that PLIST_FILES works to
change ownership - it is meant for small ports with simple needs.

> 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?

Really, the pkg-plist is the way.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160910081351.36c0aa93>