# HG changeset patch # User Michael Schloh von Bennewitz # Date 1349375951 -7200 # Node ID 63c8527d60f4981c88c3a85df90cc070447394e6 # Parent 7cbb7c0c025b3e3a3b987158f68ee451814f86ee Import new package spec for introduction into repository. This package will eventually deprecate the local squirrelmail as the webmail default. diff -r 7cbb7c0c025b -r 63c8527d60f4 roundcube/roundcube.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/roundcube/roundcube.spec Thu Oct 04 20:39:11 2012 +0200 @@ -0,0 +1,115 @@ +## +## roundcube.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2012-2012 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: roundcube +Summary: Roundcube Webmail Client +URL: http://www.roundcube.net/ +Vendor: Thomas Bruederli +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Networks Production +Class: EVAL +Group: Mail +License: GPL +Version: 0.8.1 +Release: 20120800 + +# list of sources +Source0: http://switch.dl.sourceforge.net/roundcubemail/%{version}/roundcubemail-%{version}.tar.gz + +# build information +BuildPreReq: OpenPKG, openpkg >= 20100101 +PreReq: OpenPKG, openpkg >= 20100101 +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_mcrypt = yes +PreReq: apache-php::with_iconv = yes +PreReq: apache-php::with_session = yes +PreReq: apache-php::with_ssl = yes + +%description + Roundcube webmail is a browser based multilingual IMAP client with + an application-like user interface. It provides full functionality + expected from a email client, including MIME support, address book, + folder manipulation, message searching and spell checking. + +%track + prog roundcube = { + version = %{version} + url = http://prdownloads.sourceforge.net/roundcubemail/ + regex = roundcubemail-(\d+\.\d+\.\d+)\.tar\.gz + } + +%prep + %setup -q -n roundcubemail-%{version} + %{l_shtool} subst \ + -e 's;\(E_ALL&~E_NOTICE\));\1&~E_STRICT);' \ + installer/index.php + +%build + +%install + # create directory structure + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/share/roundcube + + # install program + cp -rpf \ + bin config installer logs plugins program skins SQL temp \ + $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/ + + # 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' + +%files -f files + +%clean + +%post + # display information about next steps + ( echo "Roundcube stores data in SQL and requires an existing" + echo "local or remote installation of PostgreSQL, MySQL, or" + echo "SQLite. Please refer to online documentation to carry" + echo "out the SQL configuration, something like:" + echo "" + echo "CREATE DATABASE roundcubemail;" + 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 + +%preun + # before erase, remove log files + [ $1 -eq 0 ] || exit 0 + rm -f $RPM_INSTALL_PREFIX/var/roundcube/log/*.log >/dev/null 2>&1 || true +