# HG changeset patch # User Michael Schloh von Bennewitz # Date 1349548183 -7200 # Node ID baeac098d68f9e48c5b54cf0985f7928aedbc27f # Parent 914043724d209f0f4e58154ae9166c6c198b274a Correct packaging flaws, improve and patch, and update to new version. diff -r 914043724d20 -r baeac098d68f roundcube/linen_login.png Binary file roundcube/linen_login.png has changed diff -r 914043724d20 -r baeac098d68f roundcube/roundcube.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/roundcube/roundcube.patch Sat Oct 06 20:29:43 2012 +0200 @@ -0,0 +1,82 @@ +diff -Nau plugins/managesieve/config.inc.php.dist.orig plugins/managesieve/config.inc.php.dist +Index: plugins/managesieve/config.inc.php.dist +--- plugins/managesieve/config.inc.php.dist.orig 2012-08-17 21:32:11.000000000 +0200 ++++ plugins/managesieve/config.inc.php.dist 2012-09-28 22:47:43.934192601 +0200 +@@ -1,7 +1,7 @@ + = 20100101 @@ -43,7 +49,7 @@ PreReq: MTA, apache, apache-php PreReq: apache-php::with_xml = yes PreReq: apache-php::with_json = yes -PreReq: apache-php::with_exim = yes +PreReq: apache-php::with_exif = yes PreReq: apache-php::with_mcrypt = yes PreReq: apache-php::with_iconv = yes PreReq: apache-php::with_session = yes @@ -64,9 +70,14 @@ %prep %setup -q -n roundcubemail-%{version} + %setup -q -n roundcubemail-%{version} -D -T -a 1 %{l_shtool} subst \ -e 's;\(E_ALL&~E_NOTICE\));\1&~E_STRICT);' \ installer/index.php + mv dennylin93-rcguard-* plugins/rcguard + %patch -p0 + %{l_shtool} subst %{l_value -s -a} \ + plugins/managesieve/config.inc.php.dist %build @@ -81,15 +92,22 @@ $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/ %{l_shtool} install -c -m 644 \ index.php robots.txt \ - opkg_large.png opkg_small.png \ $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/ + # install other components + ( cd $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/plugins/rcguard/skins \ + && ln -s default larry ) + %{l_shtool} install -c -m 644 \ + %{SOURCE linen_login.png} \ + $RPM_BUILD_ROOT%{l_prefix}/share/roundcube/skins/larry/images/ + # determine package ingredients and tag config files -#'%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/share/roundcube' %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ - '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp' - '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs' + '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/temp' \ + '%attr(775,-,%{l_ngrp}) %{l_prefix}/share/roundcube/logs' \ + '%config %attr(640,%{l_mgrp},%{l_ngrp}) %{l_prefix}/share/roundcube/config/*' \ + '%config %attr(640,%{l_mgrp},%{l_ngrp}) %{l_prefix}/share/roundcube/plugins/*/*config*' %files -f files @@ -103,7 +121,7 @@ echo "out the SQL configuration, something like:" echo "" echo "CREATE DATABASE roundcubemail;" - echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd'; + echo "CREATE USER 'username'@'localhost' IDENTIFIED BY 'newpwd';" echo "GRANT ALL PRIVILEGES ON roundcubemail.* TO username@localhost IDENTIFIED BY 'newpwd';" echo "FLUSH PRIVILEGES;" ) | %{l_rpmtool} msg -b -t notice