cobbler/cobbler — pull request #668 by jansenm (2013-12-06 09:55:03+00:00)
Title: Mjansen/makefile cleanup

Now we come to the juicy stuff. As before these changes should have no effect for those installing into /usr (as long as they are on fedora i guess). So please check again with the following commands i did not break anything

$ git checkout master
$ python setup.py install --root=$PWD/before
# Apply these changes
$ python setup.py install --root=$PWD/after
$ diff -r before after

I have quite a bit of difference when doing that because the commit "Implement a configuration build step" started to install stuff on suse with opensuse paths patched into the files.

```diff
diff -r before/etc/apache2/conf.d/cobbler.conf after/etc/apache2/conf.d/cobbler.conf
4,8c4,8
< AliasMatch ^/cblr(?!/svc/)(.*)?$ "/var/www/cobbler$1"
< AliasMatch ^/cobbler_track(.*)?$ "/var/www/cobbler$1"
< #AliasMatch ^/cobbler(.*)?$ "/var/www/cobbler$1"
< Alias /cobbler /var/www/cobbler
< Alias /cobbler_webui_content /var/www/cobbler_webui_content
---
> AliasMatch ^/cblr(?!/svc/)(.*)?$ "/srv/www/cobbler$1"
> AliasMatch ^/cobbler_track(.*)?$ "/srv/www/cobbler$1"
> #AliasMatch ^/cobbler(.*)?$ "/srv/www/cobbler$1"
> Alias /cobbler /srv/www/cobbler
> Alias /cobbler_webui_content /srv/www/cobbler_webui_content
```

The rationale for these patches is the attemt to concentrate all distribution specific difference inside setup.py (thats why i moved some targets into setup.py from makefile) and as much as possible onto build/install time.

The groundwork is now there to move for example apache_user and apache_group into settings and get it from there when needed. The correct user is determined and patched on installation time.