Re: Proposal - Distro specific changes for Kolab 3
Thomas Spuhler <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kolab |
|---|---|
| Message-ID | <201305300806.43849.thomas__32962.6489467502$1369926424$gmane$org@btspuhler.com> |
On Friday, May 24, 2013 02:08:48 AM Jeroen van Meeuwen (Kolab Systems) wrote: > On 2013-05-22 15:36, Aeneas Jaißle wrote: > > Hi everybody, > > Hi Aeneas, > > > I'd like to enhance Kolab's distribution support and make live for > > (us) packagers easier. > > > > For that, I put a layer between paths, service names, user and groups > > (= between all that could differ on another distribution). > > > > (...snip...) > > > > Is something like this wanted upstream? Would this be the rights way > > to do (in python)? Feedback welcome! > > This is not a bad idea, but I hope you appreciate the following > considerations; > > It is dangerously close to the list of settings that Kolab used to ship > as part of its kolab.conf. > > We have found such lists to become problematic if (when) distributions > change their ways. "settings_fedora.py" would then need to become > "settings_for_fedora_before_version_16.py" and > "settings_for_fedora_after_and_with_version_17.py", if you will. > > I would rather consider using "adaptive" code - surely we can test > whether a system uses systemctl, service or update-rc.d, and whether a > service name is httpd or apache2. While the current "implementation" [1] > is rather rudimentary, I would say a couple of if/else clauses could be > sufficient. > > It is a good idea to pull such if/else clauses out of the respective > setup_*.py scripts, and perhaps make them some sort of utils.service() > function. > > Furthermore, in packaging we have ./configure with options, and > pykolab/constants.py.in. It is probably better/easier to ./configure > --with-service-mechanism=systemctl than it is to maintain a list of > distributions and versions. +1 > > Kind regards, > > Jeroen van Meeuwen > > [1] > https://git.kolab.org/pykolab/tree/pykolab/setup/setup_roundcube.py#n196 -- Best regards Thomas Spuhler _______________________________________________ Kolab-devel mailing list [email protected] https://www.intevation.de/mailman/listinfo/kolab-devel
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlGnav8ACgkQjsMgV2ARTmNmkQCgkqorkvy+AYfdH2SGK7J1E2hD 9u4Anj/4HXLjzDkG6dde0QjHNM8X2lS+ =3kw4 -----END PGP SIGNATURE-----