Re: Binaries outside /usr/local

2013-03-12 Thread Stuart Henderson
On 2013/03/12 08:49, Vadim Zhukov wrote:
 12.03.2013 1:06 пользователь Martijn Rijkeboer mart...@bunix.org
 написал:
 
  Hi,
 
  After some comments of Jiri B on my cfengine port I'm trying to install
  everything inside /var/cfengine (also recommended by Cfengine). I've
  changed the Makefile and on 'make fake' everything is installed inside
  /var/cfengine, but when running make plist the new PLIST file is empty.
 What
  is the best way of achieving this?
 
 Change PREFIX to /var/cfengine, too.

This isn't a good match with hier(7) :-

 /var/  Multi-purpose log, temporary, transient, and spool files.




Re: Binaries outside /usr/local

2013-03-12 Thread Alexander Hall

On 03/12/13 09:57, Stuart Henderson wrote:

On 2013/03/12 08:49, Vadim Zhukov wrote:

12.03.2013 1:06 пользователь Martijn Rijkeboer mart...@bunix.org
написал:


Hi,

After some comments of Jiri B on my cfengine port I'm trying to install
everything inside /var/cfengine (also recommended by Cfengine). I've
changed the Makefile and on 'make fake' everything is installed inside
/var/cfengine, but when running make plist the new PLIST file is empty.

What

is the best way of achieving this?


Change PREFIX to /var/cfengine, too.


This isn't a good match with hier(7) :-

  /var/  Multi-purpose log, temporary, transient, and spool files.


/var is also normally mounted nosuid. Don't know if this affects 
cfengine though, but worth noticing.


/Alexander



Re: Binaries outside /usr/local

2013-03-12 Thread Jiri B
On Tue, Mar 12, 2013 at 08:57:46AM +, Stuart Henderson wrote:
  Change PREFIX to /var/cfengine, too.
 
 This isn't a good match with hier(7) :-
 
  /var/  Multi-purpose log, temporary, transient, and spool files.

This above is not fully true, we have unbound in /var/unbound,
tomcat in /var/tomcat...

Yes but cfengine concept is special, it is not just mgmt tool,
but autocorrecting tool. The (official) purpose for having
cfengine in /var/cfengine is because you can have /usr/local
mounted via network which would make autocorrection of cfengine
useless. cfengine should be installed locally on all hosts,
not depending on sharing /usr or /usr/local, the best build
statically.

Scenario: you fucked up your fstab for network mounted /usr/local,
then cfengine has not way to repair it as it is not available.

And last one... This location is what upstream supports.

jirib



Re: Binaries outside /usr/local

2013-03-12 Thread Stuart Henderson
On 2013/03/12 06:34, Jiri B wrote:
 On Tue, Mar 12, 2013 at 08:57:46AM +, Stuart Henderson wrote:
   Change PREFIX to /var/cfengine, too.
  
  This isn't a good match with hier(7) :-
  
   /var/  Multi-purpose log, temporary, transient, and spool files.
 
 This above is not fully true, we have unbound in /var/unbound,

config files, there because of chroot. binaries are in /usr/local.

 tomcat in /var/tomcat...

main parts are in /usr/local/tomcat (like a handful of other java
things, it really wants its own files together), config is in
/etc/tomcat (symlinked from /var/tomcat/conf), logs/webapps etc
go in /var/tomcat.

 Yes but cfengine concept is special, it is not just mgmt tool,
 but autocorrecting tool. The (official) purpose for having
 cfengine in /var/cfengine is because you can have /usr/local
 mounted via network which would make autocorrection of cfengine
 useless. cfengine should be installed locally on all hosts,
 not depending on sharing /usr or /usr/local, the best build
 statically.
 
 Scenario: you fucked up your fstab for network mounted /usr/local,
 then cfengine has not way to repair it as it is not available.
 
 And last one... This location is what upstream supports.

I'm not saying it's impossible to put it there, but it would need a
good reason to break with the standard. As the port stands the no
dependence on /usr/local is invalid because it does have a dependence
on libraries there, and upstream supports other locations enough to have
added --enable-fhs.



Re: Binaries outside /usr/local

2013-03-12 Thread Jiri B
On Tue, Mar 12, 2013 at 11:14:27AM +, Stuart Henderson wrote:
  And last one... This location is what upstream supports.
 
 I'm not saying it's impossible to put it there, but it would need a
 good reason to break with the standard. As the port stands the no
 dependence on /usr/local is invalid because it does have a dependence
 on libraries there, and upstream supports other locations enough to have
 added --enable-fhs.

enable-fhs is just good for masturbating Linux junkies which
even dropped /usr being mounted via network :D

jirib



Binaries outside /usr/local

2013-03-11 Thread Martijn Rijkeboer
Hi,

After some comments of Jiri B on my cfengine port I'm trying to install
everything inside /var/cfengine (also recommended by Cfengine). I've
changed the Makefile and on 'make fake' everything is installed inside
/var/cfengine, but when running make plist the new PLIST file is empty. What
is the best way of achieving this?

Kind regards,


Martijn Rijkeboer




Re: Binaries outside /usr/local

2013-03-11 Thread Vadim Zhukov
12.03.2013 1:06 пользователь Martijn Rijkeboer mart...@bunix.org
написал:

 Hi,

 After some comments of Jiri B on my cfengine port I'm trying to install
 everything inside /var/cfengine (also recommended by Cfengine). I've
 changed the Makefile and on 'make fake' everything is installed inside
 /var/cfengine, but when running make plist the new PLIST file is empty.
What
 is the best way of achieving this?

Change PREFIX to /var/cfengine, too.