(maint) Fix typo in puppetdb.spec

_initdir is not the same as _initddir.
(maint) Move suse specific java requirements into the open_jdk macro

There is an open_jdk macro defined at the top of the spec file to specify the
java requirements for puppetdb. This commit moves the sles/suse specific java
logic into that macro section. This supplies the os standard java for opensuse
11,12 and sles. java-devel should not be required for puppetdb build or
installation, so this commit also removes that dependency.
(maint) chkconfig does not exist on sles/suse so let's not depend on it.
Remove LGPL init script
Don't template nonexistent init script for suse

The init script for suse was removed in a8683ac, but is still
templated by the template task. This commit removes it.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
(Bug #21759) Update spec files to support Fedora 19
Align fields in rpm spec
Making the buildroot doesn't need a special case on sles.
Whitespace fixup
(packaging) Add suse init script to PuppetDB

This commit adds a simple init script for Suse/SLES. This init script is
templated and will function on PE or FOSS. It lays down a pidfile and handles
creating the pidfile directory. It returns LSB compliant exit codes.
It uses pgrep to get the pidfile of the daemon, so a dependency on procps is
added for sles.
Revert "Merge pull request #565 from MosesMendoza/packaging/1.3.x/fix_template_for_suse"

This reverts commit 3944928887f3dbe4779790802266fb31c360cf29, reversing changes
made to c9e08c4efbf9175d237048817ddf9a908b5cc313. There is again a suse init
script template to be evaluated, so this can be returned to action.
Modify Rakefile to support Ruby 2.0

Prior to this commit, there was no support for Fedora 19. This
commit adds that by including the f19 mock in the build_defaults
file, as well as by editing the Rakefile to allow for Ruby 2.0,
not just ruby 1.8 or 1.9. Additionally, `@plibdir` was changed
so that we can assign this path dynamically, rather than statically.
(packaging) Suse doesn't need a special conditional to run the same command as the else block in puppetdb.spec.erb
(packaging) For EL and Suse systems the pidfile will be in /var/run/$NAME/$NAME.pid
(maint) Fix tar task to allow spaces in path by wrapping the full path in quotes
Merge pull request #592 from cprice404/maint/master/cherry-pick-1.3.2-pe-commits

Maint/master/cherry pick 1.3.2 pe commits
Introduce command 'puppetdb' as a sub-command dispatcher

This patch includes a new base tool named 'puppetdb' thats job for now is
to accept sub-commands and arguments and execute their equivalent
puppetdb-<sub-command> command (if it exists).

This modifies all documentation to use the new syntax, and all acceptance
tests as well.

Signed-off-by: Ken Barber <ken@bob.sh>
Move sub-commands to libexec dir out of path

This aligns the behaviour with git, so that sub-commands belong in their own
libexec dir outside of the normal PATH of execution.

Legacy commands are left in their original path locations, but replaced with
a wrapper script that returns a warning and executes the new sub-command for
the user. This provides us with a way to eventually remove these command
place-holders when we are ready to remove the legacy hyphenated subcommands.

Signed-off-by: Ken Barber <ken@bob.sh>
Include legacy sub-command acceptance test

This patch provides a test to ensure legacy sub-commands are still working and
returning sufficient deprecation warnings.

Signed-off-by: Ken Barber <ken@bob.sh>
Test to ensure the puppetdb command list all existing sub-commands

When running `puppetdb` on its own, it should list all available sub-commands
in its libexecdir. This test ensures that happens.

Signed-off-by: Ken Barber <ken@bob.sh>