Projects
Kolab:16:Enterprise
chwala
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 5
View file
chwala.spec
Changed
@@ -23,10 +23,16 @@ %global httpd_name apache2 %global httpd_user wwwrun %else +%if 0%{?plesk} +%global httpd_group roundcube_sysgroup +%global httpd_name httpd +%global httpd_user roundcube_sysuser +%else %global httpd_group apache %global httpd_name httpd %global httpd_user apache %endif +%endif %global _ap_sysconfdir %{_sysconfdir}/%{httpd_name} @@ -47,8 +53,14 @@ Requires: php-pear(HTTP_Request2) Requires: php-Smarty >= 3.1.7 + +Requires(post): roundcubemail(core) + +%if 0%{?plesk} < 1 Requires: roundcubemail Requires: roundcubemail-plugins-kolab +%endif + %if 0%{?suse_version} Requires: http_daemon %else @@ -75,16 +87,24 @@ %install mkdir -p \ +%if 0%{?plesk} < 1 %{buildroot}/%{_ap_sysconfdir}/conf.d \ +%endif %{buildroot}/%{_datadir}/%{name} \ %{buildroot}/%{_localstatedir}/cache/%{name} \ %{buildroot}/%{_localstatedir}/lib/%{name} \ %{buildroot}/%{_localstatedir}/log/%{name} +mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d +cp -pr %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/chwala + +%if 0%{?plesk} < 1 install -pm 644 doc/chwala.conf %{buildroot}/%{_ap_sysconfdir}/conf.d/chwala.conf -mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d -cp -pr %SOURCE2 %{buildroot}%{_sysconfdir}/logrotate.d/chwala +sed -i \ + -e 's/apache apache/%{httpd_user} %{httpd_group}/g' \ + %{buildroot}%{_sysconfdir}/logrotate.d/chwala +%endif rm -rf public_html/skins/default/images/mimetypes/_css.sh cp -a lib public_html %{buildroot}/usr/share/%{name} @@ -103,7 +123,9 @@ pushd lib/drivers/kolab/plugins rm -rf kolab_auth kolab_folders libkolab +%if 0%{?plesk} < 1 ln -s ../../../../../roundcubemail/plugins/kolab_auth kolab_auth +%endif ln -s ../../../../../roundcubemail/plugins/kolab_folders kolab_folders ln -s ../../../../../roundcubemail/plugins/libkolab libkolab popd @@ -133,7 +155,9 @@ %files %doc README.md LICENSE doc/SQL/ +%if 0%{?plesk} < 1 %{_ap_sysconfdir}/conf.d/%{name}.conf +%endif %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_datadir}/%{name} %attr(0750,%{httpd_user},%{httpd_group}) %{_localstatedir}/cache/%{name} @@ -141,6 +165,9 @@ %attr(0750,%{httpd_user},%{httpd_group}) %{_localstatedir}/log/%{name} %changelog +* Wed May 10 2017 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-0.2.git +- Fix log rotation on Plesk systems + * Tue Nov 15 2016 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5-0.1.git - Check in 0.5 snapshot @@ -156,9 +183,6 @@ * Sun Jan 11 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.3.0-1 - Release of version 0.3.0 -* Thu Feb 25 2014 Daniel Hoffend <dh@dotlan.net> - 0.2-4 -- applied fix for recent libkolab changes - * Thu Jan 23 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.2-3 - Correct any suhosin.session.encrypt setting using .htaccess - Correct source of chwala.conf
View file
chwala.dsc
Changed
@@ -2,14 +2,14 @@ Source: chwala Binary: chwala Architecture: all -Version: 0.5~dev20161115-0~kolab3 +Version: 0.5~dev20161115-0~kolab4 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl> Homepage: http://kolab.org/about/chwala/ Standards-Version: 3.9.3 -Build-Depends: debhelper (>= 8) -Package-List: +Build-Depends: debhelper (>= 8), psa | bash +Package-List: roundcubemail deb web extra -Files: +Files: 00000000000000000000000000000000 0 chwala-0.5.tar.gz 00000000000000000000000000000000 0 debian.tar.gz
View file
debian.changelog
Changed
@@ -1,3 +1,15 @@ +chwala (0.5~dev20161115-0~kolab4) unsable; urgency=low + + * Fix log rotation on Plesk platforms + + -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabys.com> Wed, 10 May 2017 12:12:12 +0100 + +chwala (0.5~dev20161115-0~kolab3.1) unsable; urgency=low + + * Enhance packaging + + -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabys.com> Tue, 7 Feb 2017 12:12:12 +0100 + chwala (0.5~dev20161115-0~kolab3) unstable; urgency=low * Added dependency to php-sabre-dav-2.1 needed by webdav driver
View file
debian.control
Changed
@@ -3,7 +3,7 @@ Priority: extra Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl> -Build-Depends: debhelper (>= 8) +Build-Depends: debhelper (>= 8), psa | bash Homepage: http://www.chwala.org/ Standards-Version: 3.9.3 @@ -12,8 +12,8 @@ Depends: php-http-request2, smarty3 (>= 3.1.7), - roundcubemail, - roundcubemail-plugins-kolab, + roundcubemail-core, + roundcubemail-plugin-libkolab, php-sabre-dav-2.1 (>= 2.1), ${misc:Depends} Description: Glorified WebDAV, done right
View file
debian.rules
Changed
@@ -6,11 +6,19 @@ %: dh $@ +override_dh_auto_configure: + if -f "/etc/plesk-release" ; then \ + sed -i -e 's/www-data adm/roundcube_sysuser roundcube_sysgroup/g' debian/chwala.logrotate ; \ + fi + override_dh_install: dh_install -XLICENSE -X.gitignore - mkdir -p $(CURDIR)/debian/chwala/etc/apache2/sites-available - install -pm 644 $(CURDIR)/doc/chwala.conf $(CURDIR)/debian/chwala/etc/apache2/sites-available/chwala.conf + if ! -f "/etc/plesk-release" ; then \ + mkdir -p $(CURDIR)/debian/chwala/etc/apache2/sites-available ; \ + install -pm 644 $(CURDIR)/doc/chwala.conf \ + $(CURDIR)/debian/chwala/etc/apache2/sites-available/chwala.conf ; \ + fi # prepare for symbolic links, throw away unneeded code (same as in .spec file) rm -rf $(CURDIR)/debian/chwala/usr/share/chwala/lib/ext/Auth
View file
debian.tar.gz/postinst
Changed
@@ -3,10 +3,13 @@ set -e fixperms() { - chown -R www-data:adm \ + group=$(getent group roundcube_sysgroup >/dev/null 2>&1 && echo "roundcube_sysgroup" || echo "adm") + user=$(getent passwd roundcube_sysuser >/dev/null 2>&1 && echo "roundcube_sysuser" || echo "www-data") + chown -R ${user}:${group} \ /var/cache/chwala \ /var/lib/chwala \ /var/log/chwala + chmod 750 \ /var/cache/chwala \ /var/lib/chwala \ @@ -26,11 +29,15 @@ case "$1" in configure) fixperms - a2enmod rewrite >/dev/null 2>&1 || true - if -e "/etc/apache2/sites-available/chwala.conf" -a ! -e "/etc/apache2/sites-enabled/chwala.conf" ; then - a2ensite chwala.conf + if ! -f "/etc/plesk-release" ; then + a2enmod rewrite >/dev/null 2>&1 || true + + if -e "/etc/apache2/sites-available/chwala.conf" -a ! -e "/etc/apache2/sites-enabled/chwala.conf" ; then + a2ensite chwala.conf + fi + + reload_apache reload fi - reload_apache reload ;; esac
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.