-----Original Message-----
From: devel-bounces(a)lists.fedoraproject.org [mailto:devel-
bounces(a)lists.fedoraproject.org] On Behalf Of Reindl Harald
Sent: Tuesday, December 23, 2014 14:10
To: devel(a)lists.fedoraproject.org
Subject: Re: Where should a package place facter facts?
Am 23.12.2014 um 20:03 schrieb Samuel Sieb:
> On 12/23/2014 10:24 AM, John Florian wrote:
>> Following the example set by other packages, I’ve traditionally used
>> /usr/local/share/ruby/site_ruby/facter/MY_PACKAGE, but what if you have
>> a fact that isn’t written in Ruby? I’m also aware of
>> /etc/facter/facts.d but I suspect that’s considered inappropriate for a
>> package to use and should be left alone for site admins to use. The
FPG
>> didn’t seem to say anything on this.
>>
> Are packages really supposed to put files in "/local/"?
no - /usr/local/ is admin area - period
Well, that's what I got as result for using %{facter_libdir} which certainly sounds
like what I should be using for the ruby code. Specifically, my spec has:
for fact in *.rb
do
install -Dp -m 0644 $fact %{buildroot}%{facter_libdir}/facter/%{name}/$fact
done
Regardless though, that doesn't help with the question I asked, which is where should
non-ruby facts go?
--
John Florian