Fedora 12 packaging
Verfasst: Do 4. Feb 2010, 14:36
Hi,
First of all, I would like to tell I do not understand german at all, and the topics I will talk about here are thus perhaps redundant: hard for me to understand the posts in this forum and the Contenido-related texts in general.
I have packaged Contenido for Fedora 12 in an RPM package: this is for inhouse use: although I'm also an official Fedora packager, I do not intend to submit it yet for official release, mainly because of the lack of english support/community and up-to-date documentation (why not reactivating sourgeforge support: apart from the download section, stuff there is very old).
In packaging it, I have been faced with two problems:
1) In 4.8.12, there is no way to have a single Contenido scripts installation for multiple distinct sites: I designed a patch allowing to specify the configuration file path on a site basis. Using this feature and symbolic links, it is possible to have a kind of "ghost" installation. The patch implements the use of environment variable CONTENIDO_CONFIG to specify the configuration file location. If this environment variable is not found, the path remains $cfg['path']['contenido']."includes/config.php" as before. Please find this patch, an apache configuration file and an "new site" instruction file in attachments.
2) PHP 5.3. The solution presented in the PHP 5.3 (as far as I can understand it!) will not survive PHP6 ! I then patched the 4.8.12 version to a real PHP 5.3 compatible version. Please find the patch in attachment.
I would also like to have a CVS/SVN/GIT repository access (at least read-only). This would ease to observe and follow what happens on the development side. Daily snapshot can be an acceptable alternative.
I hope my code contributions and my remarks will be useful for you.
Thanks for Contenido
First of all, I would like to tell I do not understand german at all, and the topics I will talk about here are thus perhaps redundant: hard for me to understand the posts in this forum and the Contenido-related texts in general.
I have packaged Contenido for Fedora 12 in an RPM package: this is for inhouse use: although I'm also an official Fedora packager, I do not intend to submit it yet for official release, mainly because of the lack of english support/community and up-to-date documentation (why not reactivating sourgeforge support: apart from the download section, stuff there is very old).
In packaging it, I have been faced with two problems:
1) In 4.8.12, there is no way to have a single Contenido scripts installation for multiple distinct sites: I designed a patch allowing to specify the configuration file path on a site basis. Using this feature and symbolic links, it is possible to have a kind of "ghost" installation. The patch implements the use of environment variable CONTENIDO_CONFIG to specify the configuration file location. If this environment variable is not found, the path remains $cfg['path']['contenido']."includes/config.php" as before. Please find this patch, an apache configuration file and an "new site" instruction file in attachments.
2) PHP 5.3. The solution presented in the PHP 5.3 (as far as I can understand it!) will not survive PHP6 ! I then patched the 4.8.12 version to a real PHP 5.3 compatible version. Please find the patch in attachment.
I would also like to have a CVS/SVN/GIT repository access (at least read-only). This would ease to observe and follow what happens on the development side. Daily snapshot can be an acceptable alternative.
I hope my code contributions and my remarks will be useful for you.
Thanks for Contenido