improvements for RPM packaging

Better `postinstall` and `preinstall`, better `chkconfig` and let the rpm provide `diamond`.