Filesystem Hierarchy Standard 2.0+ compliance in respect to /opt installs
According to FHS if software is installed to /opt
the sysconfig location should be /etc/opt/arc
instead of /opt/arc/etc
.
During the discussions it was discovered that there is a cases to install to /opt
that really used.
I suggest to check the prefix for /opt
during make install
and conditionally:
- move
/opt/arc/etc
to/etc/opt/arc
(if not exists already) - create a symlink from
/etc/opt/arc
to/opt/arc/etc
In addition to FHS compliance this will also solves @dcameron "remove and reinstall preserving config" issue out of the box.