(packaging) (#20148) Update logrotate script when appropriate

Logrotate versions > 3.8 complain about permissions unless the su directive
is explicitly set.

This commit updates the RPM and Debian package to set the su directive properly on
dists that need it (Debian >= 7, Ubuntu >= 13.04, EL >= 7, SLES >= 12, Fedora >= 16)
(packaging) (maint) Clean up the Debian rules file

Improve the use of templates to remove redundant code and improve
consistency.
Merge pull request #742 from shrug/bugs/1.5.x/20148

(packaging) (#20148) Update logrotate script when appropriate
Merge branch '1.5.x'

* 1.5.x:
  (packaging) (maint) Clean up the Debian rules file
  (packaging) (#20148) Update logrotate script when appropriate
PDB-67 Add migration for converting hash to id for catalogs

Signed-off-by: Ken Barber <ken@bob.sh>
PDB-67 Change SQL to support ID based primary keys for catalogs

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

Signed-off-by: Ken Barber <ken@bob.sh>
Get the majority of tests working for pgsql and hsqldb

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

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