(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