Simpler version of pkg_repl()
ncm-ntpd enhancements to make /etc/ntp.conf more configureable

THE FOLLOWING DISCLAIMER APPLIES TO ALL SOFTWARE CODE
AND OTHER MATERIALS CONTRIBUTED IN CONNECTION WITH THIS
SOFTWARE:
THIS SOFTWARE IS LICENSED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE AND ANY WARRANTY OF NON-
INFRINGEMENT, ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. THIS SOFTWARE MAY BE REDISTRIBUTED TO OTHERS
ONLY BY EFFECTIVELY USING THIS OR ANOTHER EQUIVALENT
DISCLAIMER AS WELL AS ANY OTHER LICENSE TERMS THAT MAY
APPLY.
ncm-ntpd updates

moved creation of ntp.conf to seperate
subroutine. Moved restart daemon code to seperate sub to make it easier to
integrate with future quattor CAF::Service module. Added tests to check
for server defitinitions in ntp.conf, step-tickers files, and tests to check
if deamon restarted.
Add Solaris support to ncm-cron.

This change involves:
o Adding a new variable securitypath to identify where the
cron.allow/deny files live
o Added processing to share crontab files with users on Solaris. This
is because Solaris uses an old version of cron.
o Solaris specific cron tests.
o Updated pan files for securitypath

The most interesting change involves the shared use of user crontabs. To
make this work ncm-cron uses the concept of separate file sections
within the crontab.  The ncm section is identified by the use of the
tags NCM-CRON BEGIN:and NCM-CRON END:. Entries either side of these
section identifiers are not modified.
Make noaction safe and refactor code

Code called unlink directly which meant that it was not noaction safe.
Switched to using LC::Check::absence as it supports noaction.

Tidied up the code and moved some repetetive sections to their own
functions.
Fixed unit tests

Switching unlink for LC::Check::absence exposed a long standing bug
where the unit tests were trying to delete files in /etc/cron.d but
silently failing. The module was correctly flagging up the failure via
using $self->error(...) however these errors are ignored by the unit
testing system.

LC::Check is not unit test safe so added mocked methods for
LC::Check::status and LC::Check::absence to the linux configure test.
Updated oldSolarisFile naming and added comment
tested with new versions
ncm-spma functions: new implementation (preliminary) of pkg_add, pkg_ronly and pkg_del
(+ pkg_repl changes/fixes)
Debugged version of new pkg_xxx() function
(tested against GRIF configuration)
Fixed solaris env vars, file perms and added cron refresh

Solaris cron ignores environment variables on the preceding line (linux
style).

Solaris does not check to see if the crontabs have been changed so the
cron daemon needs to be refreshed.

Fixed file permission problems with solaris crontabs
New pkg_xxx(): fix pkg_del() of an explicit version and pkg_add() without
an explicit version
(tested againt all GRIF nodes running 13.1.2)
pkg_repl(): fix misuse of append()
various fixes
split bug
join space
join space, with tests this time
stop when osd ip is misconfigured
uniquehost
comment