packaging: support setting attributes on generated files

ensure generated scripts are executable.

Change-Id: Iacd9614777540f6ed6da741de5157b888beb7629
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: add missing global

Change-Id: Id7df1b3c222c5de67e96423ef0fd686e9cf579b0
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: remove /usr/bin symlink

The engine-service script is not a utility to be used by user but by
downstream packager, hence no reason to install at /usr/bin.

Change-Id: I49fc25ad586b8f04e1588d04ab772858f2bfd169
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: do not allow execution as non-root

all downstream has a mean to execute the script under the correct
account. So no need for us to change identity nor expect other user.

Change-Id: Ic30ce5316918a98bf2ef4cbf17d0eb91b85c74d1
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-service: major cleanup

Last patch in series of engine-service, after all core issues merged
into existing implementation, this introduce python only rework and
cleanups.

 1. Removal global variable.
 2. Previous patch already use python subprocess instead of direct exec.
 3. Use python logging instead of direct syslog calls.
 4. Add debug log.
 5. Add debug parameter.
 6. Add gettext support.
 7. Modular functional.
 8. Remove one time used variables.
 9. Remove replication of configuration variable into local variables.
10. Remove dead code.
11. pyflakes free
12. pep8 complaint.

Change-Id: Iea45e8131190f41171e937699ec2e261939c4bd9
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
packaging: engine-setup re-write using otopi

Change-Id: I4d5e3ac7927802326e324c9b98ada75b421638aa
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Alex Lourie <alourie@redhat.com>