Projects
Kolab:3.4
roundcubemail
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 77
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +roundcubemail (1:1.1~dev20150114-0~kolab3) unstable; urgency=low + + * put assets in the right place + + -- Timotheus Pokorra <tp@tbits.net> Mon, 19 Jan 2015 07:14:39 +0200 + roundcubemail (1:1.1~dev20150114-0~kolab2) unstable; urgency=low * Fix problem with prerm script: disable site roundcubemail.conf, otherwise ERROR: Site roundcubemail does not exist!
View file
debian.rules
Changed
@@ -24,20 +24,45 @@ for file in `find $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/ -type f -name "*.css"`; do \ asset_loc=$$(dirname $$(echo $$file | sed -e "s|/usr/share/roundcubemail/|/usr/share/roundcubemail/assets/|g")) ; \ install -pm 755 -d $$asset_loc ; \ - cp -av $$file $$asset_loc/$$(basename $$file) ; \ + cat $$file > $$asset_loc/$$(basename $$file) && rm -rf $$file || \ + mv -v $$file $$asset_loc/$$(basename $$file); \ done - # Compress the JS - for file in `find $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/ -type f -name "*.js"`; do \ + # Compress the JS, but not the already minified + for file in `find $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/ -type f -name "*.js" ! -name "*.min.js"`; do \ asset_loc=$$(dirname $$(echo $$file | sed -e "s|/usr/share/roundcubemail/|/usr/share/roundcubemail/assets/|g")) ; \ install -pm 755 -d $$asset_loc ; \ - cp -av $$file $$asset_loc/$$(basename $$file) ; \ + cat $$file > $$asset_loc/$$(basename $$file) && rm -rf $$file || \ + mv -v $$file $$asset_loc/$$(basename $$file); \ done - if [ -d "$(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/public_html/" ]; then \ - mv $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/assets/ \ - $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/public_html/assets/ ; \ - fi + # The already minified JS can just be copied over to the assets location + for file in `find $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/ -type f -name "*.min.js"`; do \ + asset_loc=$$(dirname $$(echo $$file | sed -e "s|/usr/share/roundcubemail/|/usr/share/roundcubemail/assets/|g")) ; \ + install -pm 755 -d $$asset_loc ; \ + mv -v $$file $$asset_loc/$$(basename $$file); \ + done + + # Other assets + for file in $$(find $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/ -type f \ + -name "*.eot" -o \ + -name "*.gif" -o \ + -name "*.ico" -o \ + -name "*.jpg" -o \ + -name "*.png" -o \ + -name "*.svg" -o \ + -name "*.swf" -o \ + -name "*.tif" -o \ + -name "*.ttf" -o \ + -name "*.woff" \ + ); do \ + asset_loc=$$(dirname $$(echo $$file | sed -e "s|/usr/share/roundcubemail/|/usr/share/roundcubemail/assets/|g")) ; \ + install -pm 755 -d $$asset_loc ; \ + mv -vf $$file $$asset_loc/$$(basename $$file); \ + done + + mv $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/assets/ \ + $(CURDIR)/debian/roundcubemail/usr/share/roundcubemail/public_html/assets/ mkdir -p $(CURDIR)/debian/roundcubemail/etc/roundcubemail/ cp -a config/config.inc.php.sample $(CURDIR)/debian/roundcubemail/etc/roundcubemail/config.inc.php
View file
roundcubemail.dsc
Changed
@@ -2,7 +2,7 @@ Source: roundcubemail Binary: roundcubemail Architecture: all -Version: 1:1.1~dev20150114-0~kolab2 +Version: 1:1.1~dev20150114-0~kolab3 Maintainer: Debian Roundcube Maintainers <pkg-roundcube-maintainers@lists.alioth.debian.org> Uploaders: Vincent Bernat <bernat@debian.org>, Romain Beauxis <toots@rastageeks.org>, Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl> Homepage: http://www.roundcube.net/
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
.