--- webgui-7.6.24.orig/debian/control +++ webgui-7.6.24/debian/control @@ -0,0 +1,89 @@ +Source: webgui +Section: web +Priority: optional +Build-Depends: debhelper (>= 5), quilt (>= 0.40) +Build-Depends-Indep: perl +Maintainer: Ernesto Hernández-Novich (USB) +Homepage: http://www.plainblack.com/webgui +Standards-Version: 3.8.1 + +Package: webgui +Architecture: all +Depends: ${perl:Depends}, + mysql-client, + apache2, apache2-mpm-prefork, + libapache2-mod-perl2, libapache2-mod-apreq2, libapache2-request-perl, + perl-modules (>= 5.10.0) | libio-zlib-perl (>= 1.01), + libarchive-any-perl, + libclass-c3-perl, + libclass-insideout-perl (>= 1.06), + libcolor-calc-perl, + libcompress-zlib-perl (>= 1.34), + libconfig-json-perl (>= 1.1.2), + libdata-structure-util-perl (>= 0.11), + libdatetime-perl, libdatetime-format-mail-perl (>= 0.2901), + libdatetime-format-strptime-perl (>= 1.0601), + libdbi-perl (>= 1.40), libdbd-mysql-perl (>= 3.000), + libexception-class-perl, + libfinance-quote-perl (>= 1.08), + libhtml-parser-perl (>= 3.36), + libhtml-highlight-perl (>= 0.20), + libhtml-tagfilter-perl (>= 0.07), + libhtml-tagcloud-perl (>= 0.34), + libhtml-template-perl (>= 2.9), libhtml-template-expr-perl (>= 0.05), + libimage-exiftool-perl, + libjson-perl (>= 2.04), + libjs-yui (>= 2.6.0), + liblist-moreutils-perl, + liblog-log4perl-perl (>= 0.51), + libmime-tools-perl (>= 5.419), + libnet-ldap-perl (>= 0.25), + libnet-subnets-perl (>= 0.21), + libpath-class-perl, + libpod-coverage-perl (>= 0.17), + libpoe-perl (>= 0.3202), + libpoe-component-ikc-perl (>= 0.18), + libpoe-component-client-http-perl (>= 0.77), + libsoap-lite-perl (>= 0.60), + libtemplate-perl, + libtest-deep-perl (>= 0.095), + libtest-mockobject-perl (>= 1.02), + libtext-aspell-perl (>= 0.01), + libtext-csv-perl (>= 0.26), + libtext-csv-xs-perl (>= 0.52), + libtie-cphash-perl (>= 1.00), libtie-ixhash-perl (>= 1.21), + liburi-perl, + libwww-perl (>= 5.80), + libxml-feedpp-perl (>= 0.34), + libxml-simple-perl (>= 2.09), + libweather-com-perl, + perlmagick, + tinymce, + ttf-dejavu-core +Recommends: mysql-server, aspell, aspell-en +Suggests: libtest-pod-perl, libtest-pod-coverage-perl, + libtest-www-mechanize-perl, libdevel-cover-perl +Description: Content management platform to maintain complex web sites + WebGUI is a content management platform based on Apache, mod_perl and + MySQL, built to allow average business users to build and maintain complex + web sites. It is modular, pluggable, and platform independent. It was + designed to allow the people who create the content, to manage it online, + rather than content management taking up the time of the busy IT Staff. + . + Why use WebGUI? + . + * Short Friendly URLs. You'll never have ugly numeric IDs or other + things in your URLs that make it hard for search engines and people + to use your site. + * Rich User Interface. It has a rich user experience allowing users to + place their content through a drag-n-drop interface; use helpers to + pick dates, colors, and more; and a highly customizable rich editor + to allow users to format content quickly and easily. + * Personalization. Your users will see their own view of your site + through dynamically generated navigation and content. In addition, + you can choose to display content based upon your user's viewing + habits. + * Powerful API. It allows your developers to plug-in new functionality + quickly to get the most from your site. In addition, standardized + plug-in points allow you to maintain your upgrade path even with your + customizations. --- webgui-7.6.24.orig/debian/README.Debian +++ webgui-7.6.24/debian/README.Debian @@ -0,0 +1,207 @@ +WebGUI for Debian +================= + +These are the final steps to get WebGUI up and running in Debian. + +1. Single Database setup. + +If you want to have the database in the same machine, just install +mysql-server and create your database as follows so the configuration +files will work right away: + +$ mysql -e "create database webguidb" +$ mysql -e "grant all privileges on webguidb.* to webgui@localhost identified by 'webgui'" +$ mysql -e "flush privileges" +$ zcat /usr/share/doc/webgui/docs/create.sql.gz | mysql -uwebgui -pwebgui webguidb + +If you want to have the database on a different machine, use different +names for your database and user, or a different password (please, do!), +just change the appropriate stanza in /etc/webgui/webgui.conf to match +your needs. + +2. Multiple Database Setup + +A single WebGUI installation can handle several virtual hosts as long +as you create a database and configuration file for each one. Just +copy /etc/webgui/webgui.conf to another name (say, /etc/webgui/mysite.conf), +create another database as explained before, and change the needed +stanzas in /etc/webgui/mysite.conf. + +You'll probably need to change the Apache virtual host too, and +stop and start Apache in order to reload your configuration. + +3. Check your configuration files in /etc/webgui + +Any file ending in .conf inside /etc/webgui will be treated as a WebGUI +configuration, except for log.conf and spectre.conf. Therefore, do not +rename apache.config to apache.conf, nor add .conf files that are not +WebGUI config files; if you do, WebGUI will fail to start choking on +the "invalid config file". + +4. Test your configuration before continuing. + +You can test your WebGUI configuration at any time + +# wg-testEnvironment + +It will tell you if everything is ok. It will try to connect to +WebGUI's source site to find out the latest version available and +compare it with the installed one; you can safely ignore the warning +regarding availability of a newer version or, obviously, not being +able to access the site if you don't have Internet access at the time. + +5. Apache configuration. + +A sample configuration file is provided in /etc/webgui/apache.config. +Either copy or symlink it into Apache's configuration directory like + +# ln -s /etc/webgui/apache.config /etc/apache2/conf.d/webgui + +Once the file is in place you must enable Apache's perl and apreq modules + +# a2enmod apreq +# a2enmod perl + +and then either start or force-reload Apache2 using /etc/init.d/apache2 + +Once you start Apache you should get a message like + +Starting web server... +Starting WebGUI 7.6.22 + Loading webgui.conf +WebGUI Started! + +The sample configuration assumes that WebGUI is accessed as /webgui so +any other application or static website will not be affected. + +However, high performance installations usually require that WebGUI is +the only application being served, so you will need to change the default +configuration to fit your needs in that case. You can find suitable +configuration files under /usr/share/doc/webgui/examples to have WebGUI +as the only application being served by Apache. This "standalone" +configuration defines a single Apache VirtualHost having its root handled +by WebGUI. + +6. Start WebGUI's Spectre daemon + +Once WebGUI's database is configured and Apache is starting up properly, +you must enable WebGUI's Spectre daemon. Failure to do so will prevent +any changes on the website, since the publishing workflow system will +not be available. + +Edit /etc/default/webgui to enable startup, and use /etc/init.d/webgui +to start and stop the daemon. + +Once started, you can use + +# spectre --ping + +and/or + +# spectre --status + +to check whether the daemon is available and what it's doing. + +7. Using it for the first time. + +Open your browser to http://localhost/webgui (if on the same machine) or the +appropriate URL from a remote one. + +You will be asked to set WebGUI's Administrator Account and set a password +for it. Default values will be shown, but feel free to change them +specially the password. + +You will be asked to set some details about your organization's name, +mail contact address and URL. You can change them later if needed +through the administrative interface so don't worry about setting +them "perfect" the first time through. + +You will be asked whether or not to use WebGUI Site Starter. If you +click 'No, thanks' WebGUI will setup your site with the default +look and standard pages it comes with. If you click 'Yes, please!' +you will be asked to upload your logo (any image will do) and then +taken to another page where you can pick up colors, select some basic +pages to be included in your site and even provide initial content +for them. + +Either way, you will be taken to the Homepage, where you can login +and start customizing your site, adding users and content... + +8. But it did not start! + +If it does not start, check Apache's /var/log/apache2/error.log and +webgui's /var/log/webgui/webgui.log for hints on what could be wrong. + +UTILITY SCRIPTS +--------------- + +WebGUI comes with several utility Perl scripts intended to ease some +of the maintenance work, which are usually located in a private sbin +directory inside of WebGUI's file hierarchy. In order to comply with +Debian's Policy, this package places the scripts /usr/bin and +renames them from their standard names in order to drop the .pl extension +and have wg_ as prefix. Thus, the scripts are: + +wg-changeIobStatus +wg-diskUsage +wg-fileImport +wg-generateContent +wg-installClass +wg-maintenanceMode +wg-purgeWGAccess +wg-rebuildLineage +wg-search +wg-testCodebase +wg-testEnvironment +wg-thumbnailer +wg-upgrade +wg-userImport + +Check out each script manual page in order to find out what it does. + +UPGRADES +-------- + +WebGUI comes with several scripts that help upgrade from one version +to another. The current Debian package DOES NOT upgrade automatically, +however the scripts are provided in /usr/share/webgui/upgrades and +can be used to manually perform the upgrade. + +Begin the upgrade by shutting down Spectre either by using the startup +scripts + +# /etc/init.d/webgui stop + +or manually via + +# spectre --stop + +Then, execute the main upgrade script + +# wg-upgrade --help + +and follow the instructions. Once the script has finished, restart Spectre +either by using the startup script + +# /etc/init.d/webgui start + +or manually via + +# spectre --start + +Finally, restart Apache for the changes to take effect. + +You should be able to upgrade any WebGUI installation from 7.4.21 on. + +TODO +---- + +- I'll be adding debconf/dbconfig support so database creation becomes + easier. + +- I'll be adding some documentation on WebGUI that I've gathered, once + I sort out the good bits. + +-- +Ernesto Hernández-Novich +Mon, 11 May 2009 09:53:12 -0430 --- webgui-7.6.24.orig/debian/dirs +++ webgui-7.6.24/debian/dirs @@ -0,0 +1,10 @@ +etc/webgui +usr/sbin +usr/share/webgui +usr/share/webgui/extras/yui/ +usr/share/webgui/extras/tinymce/jscripts/ +var/lib/webgui +var/lib/webgui/exports +var/lib/webgui/uploads +var/lib/webgui/cache +var/log/webgui --- webgui-7.6.24.orig/debian/copyright +++ webgui-7.6.24/debian/copyright @@ -0,0 +1,445 @@ +The source for this package was downloaded from +http://www.plainblack.com/webgui + +Upstream Author: JT Smith + A full list of authors can be found in /usr/share/doc/webgui/docs/credits.txt + +Files: * +Copyright: © 2001-2009 Plain Black Corporation. All rights reserved. + WebGUI Content Engine, WebGUI Runtime Environment, and Plain Black + are registered trademarks of Plain Black Corporation. +License: GPL-2 + WebGUI is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License (version 2) as + published by the Free Software Foundation. + . + WebGUI is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. However, support may be + purchased from Plain Black at http://www.plainblack.com/ + +Files: lib/default.ttf +Copyright: © 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera + is a trademark of Bitstream, Inc. +License: other + Permission is hereby granted, free of charge, to any person obtaining a copy + of the fonts accompanying this license ("Fonts") and associated + documentation files (the "Font Software"), to reproduce and distribute the + Font Software, including without limitation the rights to use, copy, merge, + publish, distribute, and/or sell copies of the Font Software, and to permit + persons to whom the Font Software is furnished to do so, subject to the + following conditions: + . + The above copyright and trademark notices and this permission notice shall + be included in all copies of one or more of the Font Software typefaces. + . + The Font Software may be modified, altered, or added to, and in particular + the designs of glyphs or characters in the Fonts may be modified and + additional glyphs or characters may be added to the Fonts, only if the fonts + are renamed to names not containing either the words "Bitstream" or the word + "Vera". + . + This License becomes null and void to the extent applicable to Fonts or Font + Software that has been modified and is distributed under the "Bitstream + Vera" names. + . + The Font Software may be sold as part of a larger software package but no + copy of one or more of the Font Software typefaces may be sold by itself. + . + THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, + TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME + FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING + ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF + THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE + FONT SOFTWARE. + . + Except as contained in this notice, the names of Gnome, the Gnome + Foundation, and Bitstream Inc., shall not be used in advertising or + otherwise to promote the sale, use or other dealings in this Font Software + without prior written authorization from the Gnome Foundation or Bitstream + Inc., respectively. For further information, contact: fonts at gnome dot + org. + +Files: www/extras/tt.js +Copyright: © 2004-2005 Metaha. +License: GPL-2+|Apache + TrimPath Template is licensed under the GNU General Public License + and the Apache License, Version 2.0. + . + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + +Files: www/extras/slider/* +Copyright: © 1999-2002 Erik Arvidsson +License: GPL-1+ + +Files: www/extras/wobject/Profiler/* +Copyright: © 1998-2004 Erik Arvidsson +License: GPL-1+ + +Files: www/extras/resize*.css +Copyright: © 2006-2008 Yahoo! Inc. All rights reserved +License: other-BSD + Software License Agreement (BSD License) + . + Copyright (c) 2006, Yahoo! Inc. + All rights reserved. + . + Redistribution and use of this software in source and binary forms, + with or without modification, are permitted provided that the following + conditions are met: + . + * Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + . + * Neither the name of Yahoo! Inc. nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior + written permission of Yahoo! Inc. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS 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 COPYRIGHT + OWNER OR 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. + +Files: www/extras/yui/* +Copyright: © 2006-2008 Yahoo! Inc. All rights reserved +License: other-BSD + Redistribution and use of this software in source and binary forms, with or + without modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * Neither the name of Yahoo! Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission of Yahoo! Inc. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS 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 COPYRIGHT OWNER OR 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. + +Files: www/extras/yui/docs/Easing.js.html +Copyright: © 2001 Robert Penner All rights reserved +License: other-BSD + Redistribution and use of this software in source and binary forms, with or + without modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * Neither the name of Yahoo! Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission of Yahoo! Inc. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS 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 COPYRIGHT OWNER OR 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. + +Files: www/extras/yui/assets/dpSyntaxHighlighter.js +Copyright: © 2004 Alex Gorbatchev +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or (at + your option) any later version + . + This library is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + +Files: www/extras/yui/build/animation/*.js +Copyright: © 2001 Robert Penner All rights reserved +License: other-BSD + Redistribution and use of this software in source and binary forms, with or + without modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * Neither the name of Yahoo! Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission of Yahoo! Inc. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS 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 COPYRIGHT OWNER OR 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. + +Files: www/extras/yui/build/utilities/utilities.js +Copyright: © 2001 Robert Penner All rights reserved +License: other-BSD + Redistribution and use of this software in source and binary forms, with or + without modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * Neither the name of Yahoo! Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission of Yahoo! Inc. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS 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 COPYRIGHT OWNER OR 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. + +Files: www/extras/yui/examples/editor/assets/JSON.php +Copyright: © 2005 Michal Migurski +License: other-BSD + Redistribution and use in source and binary forms, with or + without modification, are permitted provided that the following + conditions are met: Redistributions of source code must retain the + above copyright notice, this list of conditions and the following + disclaimer. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + . + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS 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 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. + +Files: www/extras/yui/examples/profilerviewer/assets/dpSyntaxHighlighter.js +Copyright: © 2004 Alex Gorbatchev +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or (at + your option) any later version + . + This library is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + +Files: www/extras/yui/examples/datatable/assets/php/JSON.php +Copyright: © 2005 Michal Migurski +License: other-BSD + Redistribution and use in source and binary forms, with or + without modification, are permitted provided that the following + conditions are met: Redistributions of source code must retain the + above copyright notice, this list of conditions and the following + disclaimer. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + . + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS 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 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. + +Files: www/extras/yui/examples/treeview/assets/js/json.js +Copyright: © 2005 JSON.org +License: other-BSD + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The Software shall be used for Good, not Evil. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +Files: www/extras/yui/examples/treeview/assets/js/dpSyntaxHighlighter.js +Copyright: © 2004 Alex Gorbatchev +License: LGPL-2.1+ + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or (at + your option) any later version + . + This library is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. + +Files: www/extras/yui/examples/imagecropper/assets/JSON.php +Copyright: © 2005 Michal Migurski +License: other-BSD + Redistribution and use in source and binary forms, with or + without modification, are permitted provided that the following + conditions are met: Redistributions of source code must retain the + above copyright notice, this list of conditions and the following + disclaimer. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimer + in the documentation and/or other materials provided with the + distribution. + . + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS 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 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. + +Files: www/extras/tinymce/* +Copyright: Copyright © 2003-2006 Moxiecode Systems AB +License: LGPL-2.1 + +Files: www/extras/ukplayer/* +Copyright: Copyright © 2008 United Knowledge +License: GPL-2 + This player is Free Software under the GPL v2. + . + The Slideshow PLayer is licensed under the terms of the GNU General + Public License, version 2 + +Files: www/extras/ukplayer/swfobjects.js +Copyright: Copyright © 2007-2008 Geoff Stearns, Michael Williams and Bobby van der Sluis +License: MIT + SWFObject 2, the code used to display the Slideshow, is licensed under + the MIT License + . + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +Files: www/extras/editarea/* +Copyright: Copyright © 2008 Christophe Dolivet +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); you may + not use this file except in compliance with the License. + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations + under the License. + +Files: www/extras/editarea/edit_area/edit_area_compressor.php +Copyright: Copyright © 2007 Christophe Dolivet +License: LGPL-2.1|Apache-2.0|BSD + +Files: debian/* +Copyright: © 2008 Ernesto Hernández-Novich +License: GPL-2 + Packaging is licensed under the same terms as the software itself (see above). + +The complete text of the GNU General Public License can +be found in /usr/share/common-licenses/GPL. + +The complete text of the GNU General Public License (version 2) can +be found in /usr/share/common-licenses/GPL-2. + +The complete text of the GNU Lesser General License (version 2.1) can +be found in /usr/share/common-licenses/LGPL-2.1 + +The complete text of the Apache 2.0 License can be found in +/usr/share/common-licenses/Apache-2.0 + +The complete text of the BSD License can be found in +/usr/share/common-licenses/BSD --- webgui-7.6.24.orig/debian/webgui.init +++ webgui-7.6.24/debian/webgui.init @@ -0,0 +1,79 @@ +#!/bin/sh +# Startup script for WebGUI's Spectre Daemon +# +# Author: Ernesto Hernández-Novich +# Version: @(#)webgui 1.0 2008-03-28 emhn@usb.ve +# +### BEGIN INIT INFO +# Provides: webgui +# Required-Start: $apache +# Required-Stop: $apache +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 1 6 +# Short-Description: Startup WebGUI's Spectre daemon +# Description: WebGUI includes a workflow handling daemon that +# must be started in order for publishing and other +# CMS related activities to complete properly. +### END INIT INFO + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +NAME=spectre +DAEMON=/usr/sbin/$NAME +SELF=webgui +DESC="WebGUI's Spectre Daemon" + +# Edit /etc/default/webgui to change this +ENABLED=no + +test -x $DAEMON || exit 0 + +# Include webgui defaults if available +if [ -f /etc/default/webgui ] ; then + . /etc/default/webgui +fi + +set -e + +. /lib/lsb/init-functions + +if [ "$ENABLED" != "yes" ] +then + log_daemon_msg "WebGUI's daemon disabled in /etc/default/webgui" + log_end_msg 0 + exit 0 +fi + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + $DAEMON --daemon + log_end_msg 0 + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + $DAEMON --shutdown + log_end_msg 0 + ;; + status) + log_daemon_msg "Testing $DESC" + echo + $DAEMON --status + log_end_msg 0 + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + $DAEMON --shutdown + sleep 1 + $DAEMON --daemon + log_end_msg 0 + ;; + *) + N=/etc/init.d/$SELF + echo "Usage: $N {start|stop|restart|status|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- webgui-7.6.24.orig/debian/watch +++ webgui-7.6.24/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://update.webgui.org/7.x.x/ webgui-([\d.]+)-stable\.tar\.gz --- webgui-7.6.24.orig/debian/apache.config +++ webgui-7.6.24/debian/apache.config @@ -0,0 +1,32 @@ +ExtendedStatus On + +PerlOptions +SetupEnv +PerlSetVar WebguiRoot /usr/share/webgui +PerlCleanupHandler Apache2::SizeLimit +PerlRequire /usr/share/webgui/sbin/preload.perl + +# If you change this, be sure to change webgui.conf accordingly +Alias /extras/ /usr/share/webgui/extras/ +Alias /uploads/ /var/lib/webgui/uploads/ + +# If you change this, be sure to change webgui.conf accordingly + + Order deny,allow + Deny from all + Allow from all + + +# If you change this, be sure to change webgui.conf accordingly +Alias /exports/ /var/lib/webgui/exports/ + + Order deny,allow + Deny from all + Allow from all + + +# If you change this, be sure to change webgui.conf accordingly + + SetHandler perl-script + PerlInitHandler WebGUI + PerlSetVar WebguiConfig webgui.conf + --- webgui-7.6.24.orig/debian/preload.perl +++ webgui-7.6.24/debian/preload.perl @@ -0,0 +1,86 @@ +use strict; + +my $webguiRoot = "/usr/share/webgui"; +unshift @INC, $webguiRoot . "/lib"; + +# add custom lib directories to library search path + +unshift @INC, grep { + if (!-d $_) { + warn "WARNING: Not adding lib directory '$_' from /etc/webgui/preload.custom: Directory does not exist.\n"; + 0; + } + else { + 1; + } +} readLines("/etc/webgui/preload.custom"); + +#---------------------------------------- +# Logger +#---------------------------------------- +require Log::Log4perl; +Log::Log4perl->init( "/etc/webgui/log.conf" ); + +#---------------------------------------- +# Database connectivity. +#---------------------------------------- +#use Apache::DBI (); # Uncomment if you want to enable connection pooling. Not recommended on servers with many sites, or those using db slaves. +require DBI; +DBI->install_driver("mysql"); # Change to match your database driver. + +#---------------------------------------- +# WebGUI modules. +#---------------------------------------- +require WebGUI; +require WebGUI::Config; +require WebGUI::Pluggable; + +# these modules should always be skipped +my @excludes = qw(WebGUI::i18n::English::Automated_Information WebGUI::PerformanceProfiler); +push @excludes, readLines("/etc/webgui/preload.exclude"); + +WebGUI::Pluggable::findAndLoad( "WebGUI", + { + exclude => \@excludes, + onLoadFail => sub { warn sprintf 'Error loading %s: %s', @? }, + } +); + +require APR::Request::Apache2; +require Apache2::Cookie; +require Apache2::ServerUtil; + +if ( $ENV{MOD_PERL} ) { + # Add WebGUI to Apache version tokens + my $server = Apache2::ServerUtil->server; + $server->push_handlers( PerlPostConfigHandler => sub { + $server->add_version_component("WebGUI/" . $WebGUI::VERSION); + }); +} + +print "\nStarting WebGUI " . $WebGUI::VERSION . "\n"; + +#---------------------------------------- +# Preload all site configs. +#---------------------------------------- +WebGUI::Config->loadAllConfigs($webguiRoot); + +# read lines from a file into an array, trimming white space and ignoring +# comments +sub readLines { + my $file = shift; + my @lines; + if (open(my $fh, '<', $file)) { + while (my $line = <$fh>) { + $line =~ s/#.*//; + $line =~ s/^\s+//; + $line =~ s/\s+$//; + next if !$line; + push @lines, $line; + } + close $fh; + } + return @lines; +} + +1; --- webgui-7.6.24.orig/debian/webgui.examples +++ webgui-7.6.24/debian/webgui.examples @@ -0,0 +1,11 @@ +etc/log.conf.original +etc/spectre.conf.original +etc/WebGUI.conf.original +sbin/preload.custom.example +sbin/preload.exclude.example +sbin/_utility.skeleton +debian/*-standalone +www/extras/accordion/ +www/extras/colorpicker/ +www/extras/styleDesigner/ +www/extras/yui-webgui/build/datepicker/ --- webgui-7.6.24.orig/debian/postrm +++ webgui-7.6.24/debian/postrm @@ -0,0 +1,45 @@ +#! /bin/sh +# postrm script for webgui written by Ernesto Hernández-Novich + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + purge) + + # Get rid of any logfiles. + [ -d /var/log/webgui ] && rm -rf /var/log/webgui + ;; + + remove) + # Get rid of any user generated data left behind after file removal + [ -d /var/lib/webgui ] && rm -rf /var/lib/webgui + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + # Nothing to do (for now :-) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- webgui-7.6.24.orig/debian/webgui.conf-standalone +++ webgui-7.6.24/debian/webgui.conf-standalone @@ -0,0 +1,539 @@ +# WebGUI Site Configuration +# This configuration was written by Ernesto Hernández-Novich +# in order to make WebGUI comply with Debian Policy. +# +# This configuration assumes WebGUI is the only application being served +# by Apache, having / handled by WebGUI's. +# +# config-file-type: JSON 1 + +{ + +# Add a comma separated list of the names this site can use. +# The first site in the list will be used as the default +# sitename for generating offline URLs and other functions. + +"sitename" : [ + "localhost" + ], + +# Set to 1 if you want to use WebGUI's SSL functions, including encrypting user logins. + +"sslEnabled" : 0, + +# Rename the WebGUI Session cookie if you like. + +"cookieName" : "wgSession", + +# Explicitly set the domain that the WebGUI session cookie +# should be assigned to. Defaults to the domain that the user +# is browsing the site under. + +# "cookieDomain" : ".example.com", + +# Explicitly set the time to live for the WebGUI session cookie +# Defaults to +10Y. cookieTTL must follow the described format: +# Format should match /^\+?(\d+)([YMDhms]?)$/ +# $2 qualifies the number in $1 as representing "Y"ears, +# "M"onths, "D"ays, "h"ours, "m"inutes, or "s"econds (if the qualifier is omitted, +# the number is interpreted as representing seconds). +# +1h = 1 hour +# +2D = 2 Days +# +3M = 3 Months +# +10Y = 10 Years (default) + +# This may also be set to the word "session" to have cookies live +# for the current browser session only. + +# "cookieTTL" : "+10Y", + +# The location where the WebGUI server will be handling +# requests. This is normally just '/' or the root of the +# server, but on some installations it might be /webgui or +# /site1, /site2, etc. If this is set to anything other than +# '/' then a matching block should +# contain the WebGUI handler instead in the Apache +# VirtualHost configuration. + +"gateway" : "/", + +# Enable this flag if you run or back up files on a case sensitive +# file system. This will ensure uniqueness in the uploads folder + +#"caseInsensitiveOS" : "1", + +# The relative or fully qualified URL to the extras folder +# that comes with WebGUI. + +"extrasURL" : "/extras", + +# The filesystem path to get to the extras folder that ships +# with WebGUI. + +"extrasPath" : "/usr/share/webgui/extras", + +# The relative for fully qualified URL to the uploads folder +# for this site where all attachments will be stored. + +"uploadsURL" : "/uploads", + +# The filesystem path to get to the uploads folder where all +# attachments for this site will be stored. This needs to be +# writable by your web server. + +"uploadsPath" : "/var/lib/webgui/uploads", + +# Set this value to 1 if you want rich editors to use the +# WebGUI asset URLs for images rather than their real URLs +# in the uploads folder. The advantage of this is that users +# see short clean WebGUI controlled URLs. However, this is +# slower than the default. + +"richEditorsUseAssetUrls" : 1, + +# If you are not running your web server on the standard +# port (80) then use this setting to specify that. + +#"webServerPort" : 80, + +# What kind of cache do you wish to use? Available types are +# WebGUI::Cache::FileCache and WebGUI::Cache::Database. +# We highly recommend the database cache if you are running +# sites with more than a few hundred pages, or if you're +# running in a multi-server environment. The file cache is better +# for very small sites. + +"cacheType" : "WebGUI::Cache::FileCache", + +# Tell WebGUI where to store cached files. Defaults to the +# /tmp or c:\temp folder depending upon your operating system. + +"fileCacheRoot" : "/var/lib/webgui/cache", + +# Set this to 1 to disable WebGUI's caching subsystems. This is +# mainly useful for developers. + +"disableCache" : 0, + +# The database connection string. It usually takes the form of +# DBI::;host: + +"dsn" : "DBI:mysql:database=webguidb;host=localhost", + +# The username to authenticate to the above database. + +"dbuser" : "webgui", + +# The password to authenticate to the above database. + +"dbpass" : "webgui", + +# You can configure up to three read-only database slaves to +# increase WebGUI's read performance. + +# "dbslave1" : { +# "dsn" : "DBI:mysql:www_example_com;host=dbslave1.example.com", +# "user" : "webgui", +# "pass" : "password" +# }, + +# "dbslave2" : { +# "dsn" : "DBI:mysql:www_example_com;host=dbslave2.example.com", +# "user" : "webgui", +# "pass" : "password" +# }, + +# "dbslave3" : { +# "dsn" : "DBI:mysql:www_example_com;host=dbslave3.example.com", +# "user" : "webgui", +# "pass" : "password" +# }, + +# You can configure a backup master database as a failover in case +# your primary database goes down. WebGUI will use this database until +# the original becomes available. However, this does nothing to change +# the settings of your database. If it was set up as a slave until the +# master went down, then some script will have to be written to convert +# it from a slave to a master. + +# "failoverdb" : { +# "dsn" : "DBI:mysql:www_example_com;host=failover.example.com;port=3306", +# "user" : "webgui", +# "password" : "password" +# }, + +# Set this value if you wish to override all outbound emails to a specific +# user for testing purposes. + +# "emailOverride" : "joe@example.com", + +# By adding CIDR based subnets to the following array you can limit the +# subnets by which users can turn admin mode on. + +"adminModeSubnets" : [ ], + +# List the authentication plug-ins you wish to be available on +# this site. + +"authMethods" : [ "LDAP", "WebGUI" ], + +# List the merchant gateways you have installed and wish to be +# available on this site. + +"paymentDrivers" : [ + "WebGUI::Shop::PayDriver::Cash", + "WebGUI::Shop::PayDriver::ITransact" + ], + +# List the shipping drivers you have installed and wish to be +# available for configuration on the site. + +"shippingDrivers" : [ + "WebGUI::Shop::ShipDriver::FlatRate" + ], + +# Specify the list of template parsers available in the system. + +"templateParsers" : [ + "WebGUI::Asset::Template::HTMLTemplate" + ], + +# Specify the default template parser. + +"defaultTemplateParser" : "WebGUI::Asset::Template::HTMLTemplate", + +# Specify external helper apps that will enable WebGUI's search +# engine to index content in various uploaded file formats. The +# helpers must take the path to the file as an argument and +# return either text or html content. + +"searchIndexerPlugins" : { + "txt" : "/bin/cat", + "readme" : "/bin/cat", + "html" : "/bin/cat", + "htm" : "/bin/cat" + }, + +# Enter the maximum number of assets that should be allowed to +# be created on this site. Keep in mind that a base install of +# WebGUI has around 300 assets. Enter zero (0) if you want to +# allow an unlimited number. + +"maximumAssets" : 0, + +# Specify a the list of assets you want to appear in your +# Add Content menus. + +"assets" : [ + "WebGUI::Asset::FilePile", + "WebGUI::Asset::File::ZipArchive", + "WebGUI::Asset::Redirect", + "WebGUI::Asset::Sku::Donation", + "WebGUI::Asset::Sku::FlatDiscount", + "WebGUI::Asset::Sku::Product", + "WebGUI::Asset::Sku::Subscription", + "WebGUI::Asset::Snippet", + "WebGUI::Asset::Wobject::Article", + "WebGUI::Asset::Wobject::Calendar", + "WebGUI::Asset::Wobject::Collaboration", + "WebGUI::Asset::Wobject::DataForm", + "WebGUI::Asset::Wobject::EventManagementSystem", + "WebGUI::Asset::Wobject::Gallery", + "WebGUI::Asset::Wobject::HttpProxy", + "WebGUI::Asset::Wobject::InOutBoard", + "WebGUI::Asset::Wobject::Matrix", + "WebGUI::Asset::Wobject::MultiSearch", + "WebGUI::Asset::Wobject::Navigation", + "WebGUI::Asset::Wobject::Poll", + "WebGUI::Asset::Wobject::ProjectManager", + "WebGUI::Asset::Wobject::Search", + "WebGUI::Asset::Wobject::Shelf", + "WebGUI::Asset::Wobject::SQLReport", + "WebGUI::Asset::Wobject::StockData", + "WebGUI::Asset::Wobject::Survey", + "WebGUI::Asset::Wobject::SyndicatedContent", + "WebGUI::Asset::Wobject::Thingy", + "WebGUI::Asset::Wobject::TimeTracking", + "WebGUI::Asset::Wobject::UserList", + "WebGUI::Asset::Wobject::WeatherData", + "WebGUI::Asset::Wobject::WSClient" + ], + +# Specify the list assets that are used for utility purposes only +# and are not typically used as a normal part of content +# management. + +"utilityAssets" : [ + "WebGUI::Asset::File", + "WebGUI::Asset::File::Image", + "WebGUI::Asset::RichEdit", + "WebGUI::Asset::Template" + ], + +# Specify the list of assets you want to appear in your add +# content menus that should act as containers for other content. +# These items are typically not content themselves, but rather +# layout mechanisms. + +"assetContainers" : [ + "WebGUI::Asset::Sku::Product", + "WebGUI::Asset::Wobject::Dashboard", + "WebGUI::Asset::Wobject::Folder", + "WebGUI::Asset::Wobject::Layout", + "WebGUI::Asset::Wobject::MessageBoard", + "WebGUI::Asset::Wobject::WikiMaster" + ], + +# Optionally specify a group id for assets to tell WebGUI what +# group a user needs to be part of in order to add that type of +# asset. + +# "assetAddPrivilege" : { +# "WebGUI::Asset::Template" : 4 +# "WebGUI::Asset::Wobject::SQLReport" : 3, +# }, + +# Optionally add a "Save and Commit" button to assets so that you +# don't have to hit "Commit My Changes" seperately. + +"enableSaveAndCommit" : 0, + +# Optionally override the default UI Level of any asset. This +# determines whether the current user has the appropriate UI Level +# to add assets of that type. + +# "assetUiLevel" : { +# "WebGUI::Asset::RichEdit" : 4 +# "WebGUI::Asset::Wobject::WSClient" : 7, +# }, + +# Configure the UI Levels of the asset toolbar links. + +"assetToolbarUiLevel" : { + "copy" : 1, + "cut" : 1, + "delete" : 1, + "edit" : 1, + "view" : 1, + "demote" : 3, + "promote" : 3, + "lock" : 5, + "manage" : 5, + "revisions" : 5, + "shortcut" : 5, + "changeUrl" : 9, + "editBranch" : 9, + "export" : 9 + }, + +# You can override the UI Levels of any field in the edit form of +# any asset using the following variables. Basically just take the +# class name of the asset separated by underscores, and append +# _uiLevel to the end of it, then you can start specifying field +# names and associated UI Level. + +# "WebGUI_Asset_Wobject_Article_uiLevel" : { "menuTitle" : 9, "url" : 8 }, +# "WebGUI_Asset_RichEdit_uiLevel" : { "askAboutRichEdit" : 7, "preformatted" : 3 }, + +# If exportPath is defined, an "Export" toolbar icon will appear +# which allows you to export assets to static HTML. This folder +# needs to be writable by your web server. + +"exportPath" : "/var/lib/webgui/exports", + +# If soapHttpHeaderOverride is set to 1 it will enable Web +# Service Client assets to override the default MIME types of +# SOAP/WDSL content + +"soapHttpHeaderOverride" : 0, + +# Enable streaming Image and File assets thru mod_perl process instead of +# simple redirect. WARNING has impact on performance. + +"enableStreamingUploads" : "0", + +# Specify the list of macros you wish to be processed on each page. + +"macros" : { + "@" : "At_username", + "#" : "Hash_userId", + "/" : "Slash_gatewayUrl", + "a" : "a_account", + "AdminBar" : "AdminBar", + "AdminText" : "AdminText", + "AdminToggle" : "AdminToggle", + "AdSpace" : "AdSpace", + "AOIHits" : "AOIHits", + "AOIRank" : "AOIRank", + "AssetProxy" : "AssetProxy", + "CanEditText" : "CanEditText", + "CartItemCount" : "CartItemCount", + "c" : "c_companyName", + "D" : "D_date", + "EditableToggle" : "EditableToggle", + "e" : "e_companyEmail", + "Extras" : "Extras", + "FetchMimeType" : "FetchMimeType", + "FileUrl" : "FileUrl", + "GroupAdd" : "GroupAdd", + "GroupDelete" : "GroupDelete", + "GroupText" : "GroupText", + "H" : "H_homeLink", + "International" : "International", + "LastModified" : "LastModified", + "L" : "L_loginBox", + "LoginToggle" : "LoginToggle", + "MiniCart" : "MiniCart", + "Page" : "Page", + "PageTitle" : "PageTitle", + "PageUrl" : "PageUrl", + "RandomAssetProxy" : "RandomAssetProxy", + "RandomThread" : "RandomThread", + "RootTitle" : "RootTitle", + "r" : "r_printable", + "Spacer" : "Spacer", + "Thumbnail" : "Thumbnail", + "User" : "User", + "u" : "u_companyUrl", + "ViewCart" : "ViewCart" + }, + +#Specify any LDAP aliases for synchronizing user profiles to LDAP +"ldapAlias" : { + "firstName" : "givenName", + "lastName" : "sn", + "email" : "mail", + "companyName" : "o" + }, + +# Define the subnets that WebGUI should expect Spectre communication +# to come from. All other subnets will be ignored. The subnet +# should be listed in CIDR notation. + +"spectreSubnets" : [ "127.0.0.1/32" ], + +# Define the IP Address that should be used by WebGUI to connect +# to Spectre. Depending upon your cluster configuration, this may +# or may not be the same as the information in spectreSubnets. + +"spectreIp" : "127.0.0.1", + +# Define the port number WebGUI should use to connect to Spectre + +"spectrePort" : 32133, + +# Define the workflow activities that are available in the editing +# process and what object types they support. + +"workflowActivities" : { + "None" : [ + "WebGUI::Workflow::Activity::ArchiveOldThreads", + "WebGUI::Workflow::Activity::CalendarUpdateFeeds", + "WebGUI::Workflow::Activity::CleanDatabaseCache", + "WebGUI::Workflow::Activity::CleanFileCache", + "WebGUI::Workflow::Activity::CleanLoginHistory", + "WebGUI::Workflow::Activity::CleanTempStorage", + "WebGUI::Workflow::Activity::CreateCronJob", + "WebGUI::Workflow::Activity::DecayKarma", + "WebGUI::Workflow::Activity::DeleteExpiredSessions", + "WebGUI::Workflow::Activity::ExpireEmsCartItems", + "WebGUI::Workflow::Activity::ExpireGroupings", + "WebGUI::Workflow::Activity::ExpireSubscriptionCodes", + "WebGUI::Workflow::Activity::GetSyndicatedContent", + "WebGUI::Workflow::Activity::NotifyAdminsWithOpenVersionTags", + "WebGUI::Workflow::Activity::ProcessRecurringPayments", + "WebGUI::Workflow::Activity::PurgeOldAssetRevisions", + "WebGUI::Workflow::Activity::PurgeOldTrash", + "WebGUI::Workflow::Activity::SendQueuedMailMessages", + "WebGUI::Workflow::Activity::SummarizePassiveProfileLog", + "WebGUI::Workflow::Activity::SyncProfilesToLdap", + "WebGUI::Workflow::Activity::TrashClipboard", + "WebGUI::Workflow::Activity::TrashExpiredEvents" + ], + "WebGUI::User" : [ + "WebGUI::Workflow::Activity::CreateCronJob", + "WebGUI::Workflow::Activity::NotifyAboutUser" + ], + "WebGUI::VersionTag" : [ + "WebGUI::Workflow::Activity::CommitVersionTag", + "WebGUI::Workflow::Activity::CreateCronJob", + "WebGUI::Workflow::Activity::ExportVersionTagToHtml", + "WebGUI::Workflow::Activity::NotifyAboutVersionTag", + "WebGUI::Workflow::Activity::RequestApprovalForVersionTag", + "WebGUI::Workflow::Activity::RequestApprovalForVersionTag::ByCommitterGroup", + "WebGUI::Workflow::Activity::RequestApprovalForVersionTag::ByLineage", + "WebGUI::Workflow::Activity::RollbackVersionTag", + "WebGUI::Workflow::Activity::TrashVersionTag", + "WebGUI::Workflow::Activity::UnlockVersionTag", + "WebGUI::Workflow::Activity::WaitUntil" + ] + }, + +# Enter the graphing plugins that you want to enable for your site. + +"graphingPlugins" : [ + "WebGUI::Image::Graph::Pie", + "WebGUI::Image::Graph::XYGraph::Bar", + "WebGUI::Image::Graph::XYGraph::Line" + ], + +# Here you can define the dictionaries that are available through the tinyMCE spellchecker. You should set +# id to the name the dictionary is known by ASpell (eg. en or en_US or nl), use the name parameter to set +# the name the dictionary is displayed with in tinyMCE. To set the default dictionary please set the 'default' +# parameter. + +#"availableDictionaries" : [ +# { +# "id" : "en_US", +# "name" : "English", +# "default" : "1" +# }, +# { +# "id" : "nl", +# "name" : "Dutch" +# } +#], + +# Optional script to run upon successful login. The script can contain macros +# ex: /data/WebGUI/sbin/doLogin.pl --configFile=dev.localhost.localdomain.conf --loginPage=^PageUrl(); + +"runOnLogin" : "", + +# Optional script to run upon successful logout. The script can contain macros +# Example: /data/WebGUI/sbin/doLogout.pl --configFile=dev.localhost.localdomain.conf --logoutPage=^PageUrl(); + +"runOnLogout" : "", + +# URL handlers are used to associate functionality with a URL via a regular expression. + +"urlHandlers" : [ + { "^/extras" : "WebGUI::URL::PassThru" }, + { "^/icons" : "WebGUI::URL::PassThru" }, +# { "^/documentation/pdf" : "WebGUI::URL::PassThru" }, +# { "^/my-custom-application$" : "WebGUI::URL::PassThru" }, + { "^/server-status$" : "WebGUI::URL::PassThru" }, + { "^/perl-status$" : "WebGUI::URL::PassThru" }, + { "^/uploads/dictionaries" : "WebGUI::URL::Unauthorized" }, + { "^/uploads" : "WebGUI::URL::Uploads" }, + { "^/\\*give-credit-where-credit-is-due\\*$" : "WebGUI::URL::Credits" }, + { "^/abcdefghijklmnopqrstuvwxyz$" : "WebGUI::URL::Snoop" }, + { ".*" : "WebGUI::URL::Content" } + ], + +# Content handlers are used to produce content from the content URL handler. +# Note, these handlers are processed in the order listed. Do not change +# unless you know what you're doing. + +"contentHandlers" : [ + "WebGUI::Content::Prefetch", + "WebGUI::Content::Maintenance", + "WebGUI::Content::AssetManager", + "WebGUI::Content::Operation", + "WebGUI::Content::Setup", + "WebGUI::Content::Shop", + "WebGUI::Content::Asset", + "WebGUI::Content::NotFound" + ] + +} + --- webgui-7.6.24.orig/debian/compat +++ webgui-7.6.24/debian/compat @@ -0,0 +1 @@ +5 --- webgui-7.6.24.orig/debian/webgui.install +++ webgui-7.6.24/debian/webgui.install @@ -0,0 +1,12 @@ +debian/log.conf etc/webgui/ +debian/spectre.conf etc/webgui/ +debian/webgui.conf etc/webgui/ +debian/apache.config etc/webgui/ +debian/preload.custom etc/webgui/ +debian/preload.exclude etc/webgui/ +lib/* usr/share/webgui/lib/ +sbin/*.pl usr/bin/ +debian/preload.perl usr/share/webgui/sbin/ +t/* usr/share/webgui/t/ +docs/upgrades/* usr/share/webgui/upgrades/ +www/extras/* usr/share/webgui/extras/ --- webgui-7.6.24.orig/debian/log.conf +++ webgui-7.6.24/debian/log.conf @@ -0,0 +1,11 @@ +# WebGUI uses the log4perl logging system. +# This configuration was written by Ernesto Hernández-Novich +# in order to make WebGUI's logging comply with Debian Policy. +# +# You should read Log::Log4perl man page for details. + +log4perl.logger = ERROR, mainlog +log4perl.appender.mainlog = Log::Log4perl::Appender::File +log4perl.appender.mainlog.filename = /var/log/webgui/webgui.log +log4perl.appender.mainlog.layout = PatternLayout +log4perl.appender.mainlog.layout.ConversionPattern = %d - %p - %c - %M[%L] - %m%n --- webgui-7.6.24.orig/debian/apache.config-standalone +++ webgui-7.6.24/debian/apache.config-standalone @@ -0,0 +1,70 @@ +ExtendedStatus On + +PerlOptions +SetupEnv +PerlSetVar WebguiRoot /usr/share/webgui +PerlCleanupHandler Apache2::SizeLimit +PerlRequire /usr/share/webgui/sbin/preload.perl + +NameVirtualHost *:80 + + ServerName localhost + ServerAdmin webmaster@localhost + ErrorLog /var/log/apache2/error.log + CustomLog /var/log/apache2/access.log common + + DocumentRoot /var/www/webgui/ + + SetHandler perl-script + PerlInitHandler WebGUI + PerlSetVar WebguiConfig webgui.conf + + Alias /extras /usr/share/webgui/extras + + # Uncomment this if you want to have access to /server-status, and + # then make sure "/server-status" appears in the passthruUrls list + # in /etc/webgui/webgui.conf + # + # + # SetHandler server-status + # Order deny,allow + # Deny from all + # Allow from all + # + + # Uncomment this if you want to have access to /perl-status, and + # then make sure "/perl-status" appears in the passthruUrls list + # in /etc/webgui/webgui.conf + # + # + # SetHandler perl-script + # PerlHandler Apache2::Status + # Order deny,allow + # Deny from all + # Allow from all + # + + # Uncomment this if you want to have access to /webalizer, and + # then add "/webalizer" to passthruUrls in webgui.conf + # + #Alias /webalizer /var/www/webalizer + # + # Order deny,allow + # Deny from all + # Allow from all + # + + Alias /uploads /var/lib/webgui/uploads + + Order deny,allow + Deny from all + Allow from all + + + Alias /exports /var/lib/webgui/exports + + Order deny,allow + Deny from all + Allow from all + + + --- webgui-7.6.24.orig/debian/README.source +++ webgui-7.6.24/debian/README.source @@ -0,0 +1,5 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +See /usr/share/doc/quilt/README.source for a detailed explanation. --- webgui-7.6.24.orig/debian/webgui.manpages +++ webgui-7.6.24/debian/webgui.manpages @@ -0,0 +1,16 @@ +spectre.1 +wg-changeIobStatus.1 +wg-diskUsage.1 +wg-fileImport.1 +wg-galleryImport.1 +wg-generateContent.1 +wg-installClass.1 +wg-maintenanceMode.1 +wg-purgeWGAccess.1 +wg-rebuildLineage.1 +wg-search.1 +wg-testCodebase.1 +wg-testEnvironment.1 +wg-thumbnailer.1 +wg-upgrade.1 +wg-userImport.1 --- webgui-7.6.24.orig/debian/changelog +++ webgui-7.6.24/debian/changelog @@ -0,0 +1,198 @@ +webgui (7.6.24-1) unstable; urgency=low + + * New upstream release. + * Updated Copyright file. + * Updated to Standards Version 3.8.1. + * Updated Quilt patches, including a header for each patch. + * Removed unneeded dependencies on libgraphics-magick-perl, + liblocale-us-perl and libxml-rsslite-perl. + * Added new dependencies on libclass-c3-perl and libxml-feedpp-perl. + * Added versioned dependency on libjs-yui. + * Changed sample configuration file for logging through Log::Log4Perl + in order to use ERROR instead of WARN. + * Updated sample configuration file for WebGUI in order to accommodate + the latest release's changed and added functionality. + * Install examples for the collateral JavaScript libraries. + + -- Ernesto Hernández-Novich (USB) Wed, 27 May 2009 10:22:53 -0430 + +webgui (7.5.40.1-1) unstable; urgency=low + + * New upstream release. This is the last upstream release for the 7.5 + branch, made specifically to allow Debian packaging. + * Updated debian/copyright. + * Changed the provided WebGUI and Apache configuration files to use + /webgui as the root location instead of assuming WebGUI is the only + application installed. + * Added the previous configurations as examples on how to have WebGUI + as the only application handled by Apache. + * Updated README.Debian to reflect the changes in configuration needed + to have WebGUI in a different location. + * Fixed watch file to follow the webgui stable branch. + + -- Ernesto Hernández-Novich (USB) Sun, 01 Mar 2009 21:14:13 -0430 + +webgui (7.5.40-1) unstable; urgency=low + + * New upstream release. + * Fixed watch file to follow 7.5 branch. + + -- Ernesto Hernández-Novich (USB) Wed, 18 Feb 2009 11:38:43 -0430 + +webgui (7.5.38-1) unstable; urgency=low + + * New upstream release. + * Fixed Depends to include libjs-yui only. Both yui and libjs-yui are + available on unstable, but the former has been deprecated. Having a + Depends: on either caused broken symlinks on systems having yui instead + of libjs-yui. The problem was reported by Francis Kayiwa + via private e-mail. + * Changed libtest-devel-cover-perl to libdevel-cover-perl in Suggests: + since the former package does not exist. The problem was reported by + Edmund Lindmayer via private e-mail. + * PENDING: license on www/extras/ukplayer/AC_RunActiveContent.js needs + clarification. It's a verbatim copy of Adobe's Flash Player Detection + Toolkit library, but there's no explicit license in Adobe's site + either. + + -- Ernesto Hernández-Novich (USB) Thu, 08 Jan 2009 08:26:33 -0430 + +webgui (7.5.37-1) unstable; urgency=low + + * New upstream release. + * Fixed fix_webgui_root.patch to correctly set up WebGUI's library path. + The problem was reported by Jonathan Marsden + via private e-mail. + + -- Ernesto Hernández-Novich (USB) Tue, 06 Jan 2009 17:23:19 -0430 + +webgui (7.5.36-1) unstable; urgency=low + + * New upstream release. + * Added missing copyright notices. + + -- Ernesto Hernández-Novich (USB) Mon, 15 Dec 2008 12:37:38 -0430 + +webgui (7.5.35-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Tue, 09 Dec 2008 16:03:49 -0430 + +webgui (7.5.34-1) unstable; urgency=low + + * New upstream release. + * Added copyright notice for Deja Vu Sans font included in + source package instead of the previous non-free font. + * Fixed symlink to proper YUI location as of libjs-yui. + + -- Ernesto Hernández-Novich (USB) Fri, 21 Nov 2008 09:32:11 -0430 + +webgui (7.5.33-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Fri, 14 Nov 2008 08:33:31 -0430 + +webgui (7.5.32-1) unstable; urgency=low + + * New upstream release. + * webgui now depends on ttf-dejavu-core in order to establish a + symlink to a freely available font for CAPTCHA generation. + Upstream will start distributing the proper .ttf file in some + future release. + + -- Ernesto Hernández-Novich (USB) Fri, 07 Nov 2008 09:28:38 -0430 + +webgui (7.5.31-1) unstable; urgency=low + + * New upstream release. + * Merged versioned dependency on libio-zlib-perl with perl, as + suggested by lintian. + + -- Ernesto Hernández-Novich (USB) Fri, 31 Oct 2008 09:26:39 -0430 + +webgui (7.5.30-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Tue, 28 Oct 2008 08:59:09 -0430 + +webgui (7.5.29-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Fri, 24 Oct 2008 11:44:38 -0430 + +webgui (7.5.27-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Fri, 17 Oct 2008 09:36:07 -0430 + +webgui (7.5.26-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Fri, 10 Oct 2008 10:58:42 -0430 + +webgui (7.5.25-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Tue, 07 Oct 2008 17:55:05 -0430 + +webgui (7.5.24-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Thu, 02 Oct 2008 17:21:21 -0430 + +webgui (7.5.23-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Fri, 19 Sep 2008 10:22:34 -0430 + +webgui (7.5.22-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Mon, 15 Sep 2008 11:25:00 -0430 + +webgui (7.5.21-1) unstable; urgency=low + + * New upstream release. + * Added dependencies on the older yui package and the newer libjs-yui + package to support Lenny and Sid installations. + * Added versioned dependency on Text::CSV_XS as required by latest + upstream. + + -- Ernesto Hernández-Novich (USB) Mon, 25 Aug 2008 16:31:03 -0430 + +webgui (7.5.20-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Thu, 14 Aug 2008 16:12:53 -0430 + +webgui (7.5.19-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Mon, 11 Aug 2008 09:23:50 -0430 + +webgui (7.5.18-1) unstable; urgency=low + + * New upstream release. + * Change libjs-yui instead of yui, and fix symlinks accordingly. + * Added missing dependencies on libclass-path-perl, + libexception-class-perl and liblist-moreutils-perl. + + -- Ernesto Hernández-Novich (USB) Wed, 06 Aug 2008 16:19:20 -0430 + +webgui (7.5.17-1) unstable; urgency=low + + * Initial release (Closes: #471697). + + -- Ernesto Hernández-Novich (USB) Mon, 21 Jul 2008 09:39:52 -0430 --- webgui-7.6.24.orig/debian/webgui.docs +++ webgui-7.6.24/debian/webgui.docs @@ -0,0 +1 @@ +docs --- webgui-7.6.24.orig/debian/webgui.conf +++ webgui-7.6.24/debian/webgui.conf @@ -0,0 +1,951 @@ +# WebGUI Site Configuration +# This configuration was written by Ernesto Hernández-Novich +# in order to make WebGUI comply with Debian Policy. +# +# You'll need to change this if you want WebGUI to coexist with other +# web applications in your system. +# +# config-file-type: JSON 1 + +{ + +# Add a comma separated list of the names this site can use. +# The first site in the list will be used as the default +# sitename for generating offline URLs and other functions. + +"sitename" : [ + "localhost" + ], + +# Set to 1 if you want to use WebGUI's SSL functions, including encrypting user logins. + +"sslEnabled" : 0, + +# Rename the WebGUI Session cookie if you like. + +"cookieName" : "wgSession", + +# Explicitly set the domain that the WebGUI session cookie +# should be assigned to. Defaults to the domain that the user +# is browsing the site under. + +# "cookieDomain" : ".example.com", + +# Explicitly set the time to live for the WebGUI session cookie +# Defaults to +10Y. cookieTTL must follow the described format: +# Format should match /^\+?(\d+)([YMDhms]?)$/ +# $2 qualifies the number in $1 as representing "Y"ears, +# "M"onths, "D"ays, "h"ours, "m"inutes, or "s"econds (if the qualifier is omitted, +# the number is interpreted as representing seconds). +# +1h = 1 hour +# +2D = 2 Days +# +3M = 3 Months +# +10Y = 10 Years (default) + +# This may also be set to the word "session" to have cookies live +# for the current browser session only. + +# "cookieTTL" : "+10Y", + +# The location where the WebGUI server will be handling +# requests. This is normally just '/' or the root of the +# server, but on some installations it might be /webgui or +# /site1, /site2, etc. If this is set to anything other than +# '/' then a matching block should +# contain the WebGUI handler instead in the Apache +# VirtualHost configuration. + +"gateway" : "/webgui", + +# Enable this flag if you run or back up files on a case sensitive +# file system. This will ensure uniqueness in the uploads folder + +#"caseInsensitiveOS" : "1", + +# The relative or fully qualified URL to the extras folder +# that comes with WebGUI. + +"extrasURL" : "/extras", + +# The filesystem path to get to the extras folder that ships +# with WebGUI. + +"extrasPath" : "/usr/share/webgui/extras", + +# The relative for fully qualified URL to the uploads folder +# for this site where all attachments will be stored. + +"uploadsURL" : "/uploads", + +# The filesystem path to get to the uploads folder where all +# attachments for this site will be stored. This needs to be +# writable by your web server. + +"uploadsPath" : "/var/lib/webgui/uploads", + +# Set this value to 1 if you want rich editors to use the +# WebGUI asset URLs for images rather than their real URLs +# in the uploads folder. The advantage of this is that users +# see short clean WebGUI controlled URLs. However, this is +# slower than the default. + +"richEditorsUseAssetUrls" : 1, + +# If you are not running your web server on the standard +# port (80) then use this setting to specify that. + +#"webServerPort" : 80, + +# What kind of cache do you wish to use? Available types are +# WebGUI::Cache::FileCache and WebGUI::Cache::Database. +# We highly recommend the database cache if you are running +# sites with more than a few hundred pages, or if you're +# running in a multi-server environment. The file cache is better +# for very small sites. + +"cacheType" : "WebGUI::Cache::FileCache", + +# Tell WebGUI where to store cached files. Defaults to the +# /tmp or c:\temp folder depending upon your operating system. + +"fileCacheRoot" : "/var/lib/webgui/cache", + +# Set this to 1 to disable WebGUI's caching subsystems. This is +# mainly useful for developers. + +"disableCache" : 0, + +# The database connection string. It usually takes the form of +# DBI::;host: + +"dsn" : "DBI:mysql:database=webguidb;host=localhost", + +# The username to authenticate to the above database. + +"dbuser" : "webgui", + +# The password to authenticate to the above database. + +"dbpass" : "webgui", + +# You can configure up to three read-only database slaves to +# increase WebGUI's read performance. + +# "dbslave1" : { +# "dsn" : "DBI:mysql:www_example_com;host=dbslave1.example.com", +# "user" : "webgui", +# "pass" : "password" +# }, + +# "dbslave2" : { +# "dsn" : "DBI:mysql:www_example_com;host=dbslave2.example.com", +# "user" : "webgui", +# "pass" : "password" +# }, + +# "dbslave3" : { +# "dsn" : "DBI:mysql:www_example_com;host=dbslave3.example.com", +# "user" : "webgui", +# "pass" : "password" +# }, + +# You can configure a backup master database as a failover in case +# your primary database goes down. WebGUI will use this database until +# the original becomes available. However, this does nothing to change +# the settings of your database. If it was set up as a slave until the +# master went down, then some script will have to be written to convert +# it from a slave to a master. + +# "failoverdb" : { +# "dsn" : "DBI:mysql:www_example_com;host=failover.example.com;port=3306", +# "user" : "webgui", +# "password" : "password" +# }, + +# Set this value if you wish to override all outbound emails to a specific +# user for testing purposes. + +# "emailOverride" : "joe@example.com", + +# By adding CIDR based subnets to the following array you can limit the +# subnets by which users can turn admin mode on. + +"adminModeSubnets" : [ ], + +# List the authentication plug-ins you wish to be available on +# this site. + +"authMethods" : [ "LDAP", "WebGUI" ], + +# List the merchant gateways you have installed and wish to be +# available on this site. + +"paymentDrivers" : [ + "WebGUI::Shop::PayDriver::Cash", + "WebGUI::Shop::PayDriver::ITransact" + ], + +# List the shipping drivers you have installed and wish to be +# available for configuration on the site. + +"shippingDrivers" : [ + "WebGUI::Shop::ShipDriver::FlatRate" + ], + +# Specify the list of template parsers available in the system. + +"templateParsers" : [ + "WebGUI::Asset::Template::HTMLTemplate" + ], + +# Specify the default template parser. + +"defaultTemplateParser" : "WebGUI::Asset::Template::HTMLTemplate", + +# Specify external helper apps that will enable WebGUI's search +# engine to index content in various uploaded file formats. The +# helpers must take the path to the file as an argument and +# return either text or html content. + +"searchIndexerPlugins" : { + "txt" : "/bin/cat", + "readme" : "/bin/cat", + "html" : "/bin/cat", + "htm" : "/bin/cat" + }, + + +# define what appears in the admin console and who can view it + +"adminConsole" : { + "loginHistory" : { + "icon" : "loginHistory.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=viewLoginHistory);", + "title" : "^International(426,WebGUI);", + "groupSetting" : "groupIdAdminLoginHistory" + }, + "clipboard" : { + "icon" : "clipboard.gif", + "group" : "12", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",func=manageClipboard);", + "title" : "^International(948,WebGUI);" + }, + "statistics" : { + "icon" : "statistics.gif", + "uiLevel" : 1, + "url" : "^PageUrl(\"\",op=viewStatistics);", + "title" : "^International(437,WebGUI);", + "groupSetting" : "groupIdAdminStatistics" + }, + "users" : { + "icon" : "users.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=listUsers);", + "title" : "^International(149,WebGUI);", + "groupSetting" : "groupIdAdminUser" + }, + "activeSessions" : { + "icon" : "activeSessions.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=viewActiveSessions);", + "title" : "^International(425,WebGUI);", + "groupSetting" : "groupIdAdminActiveSessions" + }, + "inbox" : { + "icon" : "inbox.gif", + "group" : "2", + "uiLevel" : 1, + "url" : "^PageUrl(\"\",op=viewInbox);", + "title" : "^International(159,WebGUI);" + }, + "versions" : { + "icon" : "versionTags.gif", + "uiLevel" : 7, + "url" : "^PageUrl(\"\",op=manageVersions);", + "title" : "^International(version tags,VersionTag);", + "groupSetting" : "groupIdAdminVersionTag" + }, + "help" : { + "icon" : "help.gif", + "uiLevel" : 1, + "url" : "^PageUrl(\"\",op=viewHelpIndex);", + "title" : "^International(help,WebGUI);", + "groupSetting" : "groupIdAdminHelp" + }, + "groups" : { + "icon" : "groups.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=listGroups);", + "title" : "^International(89,WebGUI);", + "groupSetting" : "groupIdAdminGroup" + }, + "userProfiling" : { + "icon" : "userProfiling.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=editProfileSettings);", + "title" : "^International(user profiling,WebGUIProfile);", + "groupSetting" : "groupIdAdminProfileSettings" + }, + "ldapconnections" : { + "icon" : "ldap.gif", + "uiLevel" : 9, + "url" : "^PageUrl(\"\",op=listLDAPLinks);", + "title" : "^International(ldapconnections,AuthLDAP);", + "groupSetting" : "groupIdAdminLDAPLink" + }, + "contentProfiling" : { + "icon" : "contentProfiling.gif", + "group" : "4", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",func=manageMetaData);", + "title" : "^International(content profiling,Asset);" + }, + "databases" : { + "icon" : "databases.gif", + "uiLevel" : 9, + "url" : "^PageUrl(\"\",op=listDatabaseLinks);", + "title" : "^International(databases,WebGUI);", + "groupSetting" : "groupIdAdminDatabaseLink" + }, + "adSpace" : { + "icon" : "advertising.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=manageAdSpaces);", + "title" : "^International(topicName,AdSpace);", + "groupSetting" : "groupIdAdminAdSpace" + }, + "settings" : { + "icon" : "settings.gif", + "group" : "3", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=editSettings);", + "title" : "^International(settings,WebGUI);" + }, + "workflow" : { + "icon" : "workflow.gif", + "uiLevel" : 7, + "url" : "^PageUrl(\"\",op=manageWorkflows);", + "title" : "^International(topicName,Workflow);", + "groupSetting" : "groupIdAdminWorkflow" + }, + "assets" : { + "icon" : "assets.gif", + "group" : "12", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=assetManager);", + "title" : "^International(assets,Asset);" + }, + "graphics" : { + "icon" : "graphics.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=listGraphicsOptions);", + "title" : "^International(manage graphics,Graphics);", + "groupSetting" : "groupIdAdminGraphics" + }, + "shop" : { + "icon" : "shop.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",shop=admin);", + "title" : "^International(shop,Shop);", + "groupSetting" : "groupIdAdminCommerce" + }, + "trash" : { + "icon" : "trash.gif", + "group" : "12", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",func=manageTrash);", + "title" : "^International(trash,WebGUI);" + }, + "cron" : { + "icon" : "cron.gif", + "uiLevel" : 9, + "url" : "^PageUrl(\"\",op=manageCron);", + "title" : "^International(topicName,Workflow_Cron);", + "groupSetting" : "groupIdAdminCron" + }, + "spectre" : { + "icon" : "spectre.gif", + "uiLevel" : 9, + "url" : "^PageUrl(\"\",op=spectreStatus);", + "title" : "^International(spectre,Spectre);", + "groupSetting" : "groupIdAdminSpectre" + }, + "contentFilters" : { + "icon" : "contentFilters.gif", + "uiLevel" : 3, + "url" : "^PageUrl(\"\",op=listReplacements);", + "title" : "^International(content filters,WebGUI);", + "groupSetting" : "groupIdAdminReplacements" + }, + "cache" : { + "icon" : "cache.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=manageCache);", + "title" : "^International(manage cache,WebGUI);", + "groupSetting" : "groupIdAdminCache" + } +}, + +# Enter the maximum number of assets that should be allowed to +# be created on this site. Keep in mind that a base install of +# WebGUI has around 300 assets. Enter zero (0) if you want to +# allow an unlimited number. + +"maximumAssets" : 0, + + +# Specify the list of categories to display in the "New Content" +# menu. The category names should match those used in the "assets" +# hash later in this config. Each category can have three properties: +# +# title - The human readable name of the category. +# uiLevel - The minimum UI level the user must have to see the category. +# group - A group id the user must be in to see the category. + +"assetCategories" : { + "basic" : { + "uiLevel" : 1, + "title" : "^International(basic,Macro_AdminBar);" + }, + "shop" : { + "uiLevel" : 5, + "title" : "^International(shop,Shop);" + }, + "utilities" : { + "uiLevel" : 9, + "title" : "^International(utilities,Macro_AdminBar);" + }, + "community" : { + "uiLevel" : 5, + "title" : "^International(community,Macro_AdminBar);" + }, + "intranet" : { + "uiLevel" : 5, + "title" : "^International(intranet,Macro_AdminBar);" + } +}, + +# Specify a the list of assets you want to appear in your +# "New Content" menu categories. See "assetCategories" for details +# about categories. Each listing has a key of class name, and then +# has several properties, which are: +# +# category - The category the asset should appear in. +# isContainer - Whether or not the assets main purpose to display the data from other assets. +# addGroup - The group the user must be in to add this asset. +# uiLevel - The minimum UI level the user must have to add the asset. +# fields - Edit the properties of the asset. +# tabs - Edit the tabs on which the fields are displayed when editing the asset. +# +# The "fields" property above may override any property of any field in this +# asset class. Examples are label, tab, uiLevel. You must know what you're +# doing with this, because you could break an asset if you set something wrong +# with these properties. Here's an example of wha the fields poperty might look like: +# +# "fields" : { +# "title" : { +# "label" : "Name", +# "tab" : "basic" +# }, +# "synopsis" : { +# "label" : "Abstract", +# "uiLevel" : 3 +# } +# } +# +# The "tabs" property allows you to to create new, hide, and update existing tabs in +# the asset. Each tab has two properties: +# +# uiLevel - The minimum UI level the user must have to view the tab. +# label - The human readable label for the tab. +# +# Here's an example of what a tabls section might look like: +# +# "tabs" : { +# "basic" : { +# "label" : "Basic", +# "uiLevel" : 1 +# }, +# "meta" : { +# "uiLevel" : 99999 +# }, +# "security" : { +# "label" : "Protection" +# } +# } + +"assets" : { + "WebGUI::Asset::Wobject::Shelf" : { + "category" : "shop" + }, + "WebGUI::Asset::Wobject::Layout" : { + "isContainer" : 1, + "category" : "basic" + }, + "WebGUI::Asset::Wobject::Gallery" : { + "category" : "community" + }, + "WebGUI::Asset::Wobject::DataTable" : { + "category" : "basic" + }, + "WebGUI::Asset::Wobject::DataForm" : { + "category" : "basic" + }, + "WebGUI::Asset::Sku::Donation" : { + "category" : "shop" + }, + "WebGUI::Asset::Wobject::UserList" : { + "category" : "intranet" + }, + "WebGUI::Asset::Wobject::EventManagementSystem" : { + "category" : "shop" + }, + "WebGUI::Asset::Sku::Subscription" : { + "category" : "shop" + }, + "WebGUI::Asset::Wobject::WikiMaster" : { + "isContainer" : 1, + "category" : "community" + }, + "WebGUI::Asset::Wobject::StockData" : { + "category" : "intranet" + }, + "WebGUI::Asset::FilePile" : { + "category" : "basic" + }, + "WebGUI::Asset::Wobject::Collaboration" : { + "category" : "community" + }, + "WebGUI::Asset::Wobject::Survey" : { + "category" : "community" + }, + "WebGUI::Asset::File::ZipArchive" : { + "category" : "utilities" + }, + "WebGUI::Asset::RichEdit" : { + "category" : "utilities" + }, + "WebGUI::Asset::Wobject::SyndicatedContent" : { + "category" : "utilities" + }, + "WebGUI::Asset::Wobject::HttpProxy" : { + "category" : "utilities" + }, + "WebGUI::Asset::Wobject::MultiSearch" : { + "category" : "intranet" + }, + "WebGUI::Asset::File::Image" : { + "category" : "utilities" + }, + "WebGUI::Asset::Sku::Product" : { + "category" : "shop" + }, + "WebGUI::Asset::Wobject::WeatherData" : { + "category" : "intranet" + }, + "WebGUI::Asset::Redirect" : { + "category" : "utilities" + }, + "WebGUI::Asset::Wobject::Article" : { + "category" : "basic" + }, + "WebGUI::Asset::Wobject::Search" : { + "category" : "basic" + }, + "WebGUI::Asset::Wobject::MessageBoard" : { + "isContainer" : 1, + "category" : "community" + }, + "WebGUI::Asset::Wobject::SQLReport" : { + "category" : "utilities" + }, + "WebGUI::Asset::Wobject::TimeTracking" : { + "category" : "intranet" + }, + "WebGUI::Asset::Wobject::Calendar" : { + "category" : "basic" + }, + "WebGUI::Asset::Wobject::Poll" : { + "category" : "basic" + }, + "WebGUI::Asset::Wobject::ProjectManager" : { + "category" : "intranet" + }, + "WebGUI::Asset::Wobject::Folder" : { + "isContainer" : 1, + "category" : "basic" + }, + "WebGUI::Asset::Wobject::Navigation" : { + "category" : "utilities" + }, + "WebGUI::Asset::Wobject::Matrix" : { + "category" : "community" + }, + "WebGUI::Asset::Sku::FlatDiscount" : { + "category" : "shop" + }, + "WebGUI::Asset::Wobject::Thingy" : { + "category" : "intranet" + }, + "WebGUI::Asset::File" : { + "category" : "utilities" + }, + "WebGUI::Asset::Wobject::Collaboration::Newsletter" : { + "category" : "community" + }, + "WebGUI::Asset::Snippet" : { + "category" : "basic" + }, + "WebGUI::Asset::Wobject::InOutBoard" : { + "category" : "intranet" + }, + "WebGUI::Asset::Wobject::Dashboard" : { + "isContainer" : 1, + "category" : "intranet" + }, + "WebGUI::Asset::Wobject::DataForm" : { + "category" : "basic" + }, + "WebGUI::Asset::Template" : { + "category" : "utilities" + } +}, + +# Specify the list of account pluggins available on your site. +# Account pluggins are returned on the site in the order they are list in the config file +# Each pluggin has serveral properties +# +# identifier - This string will act as the identifying agent for this account pluggin. It is passed along +# the url and cannot contain spaces. +# title - The title of the module which is displayed on the website. +# className - The class which drives this module + +# +# IMPORTANT NOTE - PLEASE READ: +# +# DO NOT DELETE THE WebGUI::Account::User pluggin from this list. This module +# is Deprecated on release and is mandatory for every site. You may move it's position +# but if you remove it you will break WebGUI's Authentication System. This module will +# be replaced in WebGUI 8 once the APIs can be broken and the Account portion of Auth +# can be moved into the Account system +# +# A profile module is required as well. You may replace the default profile +# module with a custom version, but many systems in WebGUI rely on being +# able to display a user's profile. +# + +"account" : [ + { + "identifier" : "profile", + "title" : "^International(title,Account_Profile);", + "className" : "WebGUI::Account::Profile" + }, + { + "identifier" : "inbox", + "title" : "^International(title,Account_Inbox);", + "className" : "WebGUI::Account::Inbox" + }, + { + "identifier" : "friends", + "title" : "^International(title,Account_Friends);", + "className" : "WebGUI::Account::Friends" + }, + { + "identifier" : "contributions", + "className" : "WebGUI::Account::Contributions", + "title" : "^International(title,Account_Contributions);" + }, + { + "identifier" : "shop", + "title" : "^International(title,Account_Shop);", + "className" : "WebGUI::Account::Shop" + }, + { + "identifier" : "user", + "title" : "^International(title,Account_User);", + "className" : "WebGUI::Account::User" + }, +], + +# Specify which of the modules in the above list is used +# to display the user's profile. This is a mandatory configuration + +"profileModuleIdentifier" : "profile", + +# Optionally add a "Save and Commit" button to assets so that you +# don't have to hit "Commit My Changes" seperately. + +"enableSaveAndCommit" : 0, + +# Optionally override the default UI Level of any asset. This +# determines whether the current user has the appropriate UI Level +# to add assets of that type. + +# "assetUiLevel" : { +# "WebGUI::Asset::RichEdit" : 4 +# "WebGUI::Asset::Wobject::WSClient" : 7, +# }, + +# Configure the UI Levels of the asset toolbar links. + +"assetToolbarUiLevel" : { + "copy" : 1, + "cut" : 1, + "delete" : 1, + "edit" : 1, + "view" : 1, + "demote" : 3, + "promote" : 3, + "lock" : 5, + "manage" : 5, + "revisions" : 5, + "shortcut" : 5, + "changeUrl" : 9, + "editBranch" : 9, + "export" : 9 + }, + +# If exportPath is defined, an "Export" toolbar icon will appear +# which allows you to export assets to static HTML. This folder +# needs to be writable by your web server. + +"exportPath" : "/var/lib/webgui/exports", + +# Enable streaming Image and File assets thru mod_perl process instead of +# simple redirect. WARNING has impact on performance. + +"enableStreamingUploads" : "0", + +# Specify the list of macros you wish to be processed on each page. + +"macros" : { + "@" : "At_username", + "#" : "Hash_userId", + "/" : "Slash_gatewayUrl", + "a" : "a_account", + "AdminBar" : "AdminBar", + "AdminText" : "AdminText", + "AdminToggle" : "AdminToggle", + "AdSpace" : "AdSpace", + "AOIHits" : "AOIHits", + "AOIRank" : "AOIRank", + "AssetProxy" : "AssetProxy", + "BackToSite" : "BackToSite", + "CanEditText" : "CanEditText", + "CartItemCount" : "CartItemCount", + "c" : "c_companyName", + "D" : "D_date", + "DeactivateAccount": "DeactivateAccount", + "EditableToggle" : "EditableToggle", + "e" : "e_companyEmail", + "Extras" : "Extras", + "FetchMimeType" : "FetchMimeType", + "FileUrl" : "FileUrl", + "GroupAdd" : "GroupAdd", + "GroupDelete" : "GroupDelete", + "GroupText" : "GroupText", + "H" : "H_homeLink", + "If" : "If", + "International" : "International", + "LastModified" : "LastModified", + "L" : "L_loginBox", + "LoginToggle" : "LoginToggle", + "MiniCart" : "MiniCart", + "Page" : "Page", + "PageTitle" : "PageTitle", + "PageUrl" : "PageUrl", + "RandomAssetProxy" : "RandomAssetProxy", + "RandomThread" : "RandomThread", + "RootTitle" : "RootTitle", + "r" : "r_printable", + "Spacer" : "Spacer", + "SpectreCheck" : "SpectreCheck", + "Thumbnail" : "Thumbnail", + "User" : "User", + "UsersOnline" : "UsersOnline", + "u" : "u_companyUrl", + "ViewCart" : "ViewCart", + "StorageUrl" : "StorageUrl" + }, + +#Specify any LDAP aliases for synchronizing user profiles to LDAP +"ldapAlias" : { + "firstName" : "givenName", + "lastName" : "sn", + "email" : "mail", + "companyName" : "o" + }, + +# Define the subnets that WebGUI should expect Spectre communication +# to come from. All other subnets will be ignored. The subnet +# should be listed in CIDR notation. + +"spectreSubnets" : [ "127.0.0.1/32" ], + +# Define the IP Address that should be used by WebGUI to connect +# to Spectre. Depending upon your cluster configuration, this may +# or may not be the same as the information in spectreSubnets. + +"spectreIp" : "127.0.0.1", + +# Define the port number WebGUI should use to connect to Spectre + +"spectrePort" : 32133, + +# Define the workflow activities that are available in the editing +# process and what object types they support. + +"workflowActivities" : { + "None" : [ + "WebGUI::Workflow::Activity::ArchiveOldThreads", + "WebGUI::Workflow::Activity::CalendarUpdateFeeds", + "WebGUI::Workflow::Activity::CleanDatabaseCache", + "WebGUI::Workflow::Activity::CleanFileCache", + "WebGUI::Workflow::Activity::CleanLoginHistory", + "WebGUI::Workflow::Activity::CleanTempStorage", + "WebGUI::Workflow::Activity::CreateCronJob", + "WebGUI::Workflow::Activity::DecayKarma", + "WebGUI::Workflow::Activity::DeleteExpiredSessions", + "WebGUI::Workflow::Activity::ExpireEmsCartItems", + "WebGUI::Workflow::Activity::ExpireGroupings", + "WebGUI::Workflow::Activity::ExpireSubscriptionCodes", + "WebGUI::Workflow::Activity::GetSyndicatedContent", + "WebGUI::Workflow::Activity::NotifyAdminsWithOpenVersionTags", + "WebGUI::Workflow::Activity::PurgeOldAssetRevisions", + "WebGUI::Workflow::Activity::PurgeOldTrash", + "WebGUI::Workflow::Activity::RemoveOldCarts", + "WebGUI::Workflow::Activity::SendQueuedMailMessages", + "WebGUI::Workflow::Activity::SummarizePassiveProfileLog", + "WebGUI::Workflow::Activity::SyncProfilesToLdap", + "WebGUI::Workflow::Activity::TrashClipboard", + "WebGUI::Workflow::Activity::TrashExpiredEvents" + ], + "WebGUI::User" : [ + "WebGUI::Workflow::Activity::CreateCronJob", + "WebGUI::Workflow::Activity::NotifyAboutUser" + ], + "WebGUI::VersionTag" : [ + "WebGUI::Workflow::Activity::CommitVersionTag", + "WebGUI::Workflow::Activity::CreateCronJob", + "WebGUI::Workflow::Activity::ExportVersionTagToHtml", + "WebGUI::Workflow::Activity::NotifyAboutVersionTag", + "WebGUI::Workflow::Activity::RequestApprovalForVersionTag", + "WebGUI::Workflow::Activity::RequestApprovalForVersionTag::ByCommitterGroup", + "WebGUI::Workflow::Activity::RequestApprovalForVersionTag::ByLineage", + "WebGUI::Workflow::Activity::RollbackVersionTag", + "WebGUI::Workflow::Activity::TrashVersionTag", + "WebGUI::Workflow::Activity::UnlockVersionTag", + "WebGUI::Workflow::Activity::WaitUntil" + ] + }, + +# Enter the graphing plugins that you want to enable for your site. + +"graphingPlugins" : [ + "WebGUI::Image::Graph::Pie", + "WebGUI::Image::Graph::XYGraph::Bar", + "WebGUI::Image::Graph::XYGraph::Line" + ], + +# Here you can define the dictionaries that are available through the tinyMCE spellchecker. You should set +# id to the name the dictionary is known by ASpell (eg. en or en_US or nl), use the name parameter to set +# the name the dictionary is displayed with in tinyMCE. To set the default dictionary please set the 'default' +# parameter. + +#"availableDictionaries" : [ +# { +# "id" : "en_US", +# "name" : "English", +# "default" : "1" +# }, +# { +# "id" : "nl", +# "name" : "Dutch" +# } +#], + +# Optional script to run upon successful login. The script can contain macros +# ex: /data/WebGUI/sbin/doLogin.pl --configFile=dev.localhost.localdomain.conf --loginPage=^PageUrl(); + +"runOnLogin" : "", + +# Optional script to run upon successful logout. The script can contain macros +# Example: /data/WebGUI/sbin/doLogout.pl --configFile=dev.localhost.localdomain.conf --logoutPage=^PageUrl(); + +"runOnLogout" : "", + +# URL handlers are used to associate functionality with a URL via a regular expression. + +"urlHandlers" : [ + { "^/extras" : "WebGUI::URL::PassThru" }, +# { "^/icons" : "WebGUI::URL::PassThru" }, +# { "^/documentation/pdf" : "WebGUI::URL::PassThru" }, +# { "^/my-custom-application$" : "WebGUI::URL::PassThru" }, +# { "^/server-status$" : "WebGUI::URL::PassThru" }, +# { "^/perl-status$" : "WebGUI::URL::PassThru" }, + { "^/uploads/dictionaries" : "WebGUI::URL::Unauthorized" }, + { "^/uploads" : "WebGUI::URL::Uploads" }, + { "^/\\*give-credit-where-credit-is-due\\*$" : "WebGUI::URL::Credits" }, + { "^/abcdefghijklmnopqrstuvwxyz$" : "WebGUI::URL::Snoop" }, + { ".*" : "WebGUI::URL::Content" } + ], + +# Content handlers are used to produce content from the content URL handler. +# Note, these handlers are processed in the order listed. Do not change +# unless you know what you're doing. + +"contentHandlers" : [ + "WebGUI::Content::Prefetch", + "WebGUI::Content::Maintenance", + "WebGUI::Content::Referral", + "WebGUI::Content::AssetManager", + "WebGUI::Content::AssetDiscovery", + "WebGUI::Content::AjaxI18N", + "WebGUI::Content::Account", + "WebGUI::Content::Operation", + "WebGUI::Content::Setup", + "WebGUI::Content::Shop", + "WebGUI::Content::SiteIndex", + "WebGUI::Content::Asset", + "WebGUI::Content::NotFound" + ], + +# extensions that the export system should pass through as-is instead of using +# index.html +"exportBinaryExtensions" : [ + "html", + "htm", + "txt", + "pdf", + "jpg", + "css", + "gif", + "png", + "doc", + "xls", + "xml", + "rss", + "bmp", + "mp3", + "js", + "fla", + "flv", + "swf", + "pl", + "php", + "php3", + "php4", + "php5", + "ppt", + "docx", + "zip", + "tar", + "rar", + "gz", + "bz2" +] + +} + --- webgui-7.6.24.orig/debian/preload.custom +++ webgui-7.6.24/debian/preload.custom @@ -0,0 +1,4 @@ +# Add paths to lib folders where you have custom plugins for WebGUI. +# Note that the folder must contain the same directory structure of +# of WebGUI itself. +# /usr/local/share/webgui/Custom/lib --- webgui-7.6.24.orig/debian/spectre.conf +++ webgui-7.6.24/debian/spectre.conf @@ -0,0 +1,52 @@ +# config-file-format: JSON 1 + +{ + +# Define the IP address that Spectre should run on. If WebGUI and +# Spectre are on the same machine, you should leave this as is. + +"ip" : "127.0.0.1", + +# Define a port for Spectre to run on between 1024 and 65000. + +"port" : 32133, + +# How many Spectre workers should be allowed to be running at +# one time. Keep in mind that workers use some of the resources +# of your web site. If you're running only one server, you probably +# shouldn't have more than 5 workers. If you're running load +# balanced servers, you can probably have as many as 5 per server, +# but depending upon the amount of editing and workflows you have +# on your site, you may not need that many. + +"maxWorkers" : 3, + +# How many seconds should Spectre wait between spawning jobs. This +# can help avoid creating a denial of service attack on overworked +# or underpowered servers. + +"timeBetweenRunningWorkflows" : 2, + +# How long should Spectre delay processing a workflow instance when +# it gets suspended. It can get suspended if it's waiting for +# external input, or if it errors for any reason. + +"suspensionDelay" : 60, + +# What port should we connect to WebGUI on? If you've configured +# WebGUI yourself, then this should probably be 80. If you're using +# the WebGUI Runtime Environment, 81 might be a better choice to go +# directly at the mod_perl server. + +"webguiPort" : 80, + +# Should we ignore the proxy environment variables? If your server +# uses a proxy to connect to the internet and you are running +# Spectre on the same server as WebGUI, you should set this to 1. +# It should be safe to set this to 1 any time spectre and WebGUI +# are running on the same server. + +"ignoreEnvProxy" : 0 + +} + --- webgui-7.6.24.orig/debian/preload.exclude +++ webgui-7.6.24/debian/preload.exclude @@ -0,0 +1,69 @@ +# Add one line for each WebGUI module you DO NOT want mod_perl to load. +# This will reduce the memory foot-print of your mod_perl instances, +# possibly increasing performance. +# WebGUI::Cache::Database +# WebGUI::Auth::LDAP +# WebGUI::Asset::Wobject::WSClient +# WebGUI::Asset::File::ZipArchive +# WebGUI::Asset::Template::HTMLTemplateExpr +# WebGUI::Asset::Template::TemplateToolkit +# WebGUI::Asset::Wobject::Matrix +# WebGUI::Asset::Wobject::HttpProxy +# WebGUI::Asset::Sku::Product +# WebGUI::Asset::Sku::Donation +# WebGUI::Asset::Sku::Subscription +# WebGUI::Asset::Sku::FlatDiscount +# WebGUI::Asset::Sku::EMSBadge +# WebGUI::Asset::Sku::EMSRibbon +# WebGUI::Asset::Sku::EMSTicket +# WebGUI::Asset::Sku::EMSToken +# WebGUI::Asset::Sku +# WebGUI::Asset::Wobject::Survey +# WebGUI::Asset::Wobject::InOutBoard +# WebGUI::Asset::Wobject::Dashboard +# WebGUI::Asset::Wobject::EventManagementSystem +# WebGUI::Asset::Wobject::ProjectManager +# WebGUI::Asset::Wobject::SyndicatedContent +# WebGUI::Asset::Wobject::WSClient +# WebGUI::Asset::Wobject::MultiSearch +# WebGUI::Shop::Vendor +# WebGUI::Shop::Transaction +# WebGUI::Shop::CartItem +# WebGUI::Shop::Cart +# WebGUI::Shop::Ship +# WebGUI::Shop::Pay +# WebGUI::Shop::TransactionItem +# WebGUI::Shop::Credit +# WebGUI::Shop::AddressBook +# WebGUI::Shop::Admin +# WebGUI::Shop::PayDriver +# WebGUI::Shop::Products +# WebGUI::Shop::PayDriver::Cash +# WebGUI::Shop::PayDriver::ITransact +# WebGUI::Shop::Address +# WebGUI::Shop::ShipDriver +# WebGUI::Shop::Tax +# WebGUI::Shop::ShipDriver::FlatRate +# WebGUI::Content::Shop +# WebGUI::Macro::AOIHits +# WebGUI::Macro::AOIRank +# WebGUI::Macro::AdminText +# WebGUI::Macro::CanEditText +# WebGUI::Macro::CartItemCount +# WebGUI::Macro::EditableToggle +# WebGUI::Macro::Execute +# WebGUI::Macro::FormParam +# WebGUI::Macro::GroupAdd +# WebGUI::Macro::GroupDelete +# WebGUI::Macro::GroupText +# WebGUI::Macro::Include +# WebGUI::Macro::LastModified +# WebGUI::Macro::MiniCart +# WebGUI::Macro::Quote +# WebGUI::Macro::RootTitle +# WebGUI::Macro::SQL +# WebGUI::Macro::SpectreCheck +# WebGUI::Macro::Splat_random +# WebGUI::Macro::URLEncode +# WebGUI::Macro::ViewCart +# WebGUI::Macro::Widget --- webgui-7.6.24.orig/debian/rules +++ webgui-7.6.24/debian/rules @@ -0,0 +1,104 @@ +#!/usr/bin/make -f +# This debian/rules file was written for the WebGUI package +# by Ernesto Hernández-Novich taking ideas +# from the debian/rules templates included with dh-make-perl + +# Uncomment this to turn on verbose mode +#export DH_VERBOSE=1 + +PACKAGE = $(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +TMP = $(CURDIR)/debian/$(PACKAGE) + +include /usr/share/quilt/quilt.make + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + # Build manpages for spectre and the utility scripts, out + # of the POD inside them. + for i in sbin/*.pl; do \ + pod2man $$i wg-`basename $$i .pl`.1 ; \ + done; + mv wg-spectre.1 spectre.1 + # docbook-to-man debian/webgui.sgml > webgui.1 + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + dh_clean build-stamp install-stamp + # Add here commands to clean up after the build process. + rm -f *.1 + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install --exclude=license.txt \ + --exclude=LICENSE.txt \ + --exclude=yui/ \ + --exclude=tinymce/ \ + --exclude=example \ + --exclude=.svn + # There's a directory named '--' giving dh_install grief, so + # I've decided to copy it by hand. Since there are .svn + # directories, I clean up afterwards. Ugly hack, but works + # for the time being. + cp -a www/uploads $(TMP)/var/lib/webgui + find $(TMP)/var/lib/webgui/uploads -type d -name .svn -prune -exec rm -rf {} \; + # Drop the .pl extension from all the scripts in /usr/bin + prename 's{\.pl\z}{}' $(TMP)/usr/bin/*.pl + # Move spectre to /usr/sbin, since it's a daemon + mv $(TMP)/usr/bin/spectre $(TMP)/usr/sbin + # Rename all the scripts in /usr/bin to have wg- as prefix + prename 's{/([^/]+)\z}{/wg-$$1}' $(TMP)/usr/bin/* + # Fix permissions in /usr/share/webgui + find $(TMP)/usr/share/webgui/lib -type f -exec chmod 644 {} \; + find $(TMP)/usr/share/webgui/upgrades -type f -exec chmod 644 {} \; + find $(TMP)/usr/share/webgui/upgrades -name '*.pl' -exec chmod 755 {} \; + chmod 755 $(TMP)/usr/share/webgui/upgrades/_upgrade.skeleton + # Fix permissions in /var/lib/webgui (for uploads) + find $(TMP)/var/lib/webgui -type f -exec chmod 644 {} \; + # Fix permissions in /usr/share/webgui/extras (JS libraries) + find $(TMP)/usr/share/webgui/extras -type f -exec chmod 644 {} \; + # Fix permissions in /usr/share/webgui/t (tests) + find $(TMP)/usr/share/webgui/t -type f -exec chmod 644 {} \; + find $(TMP)/usr/share/webgui -name Thumbs.db -exec rm {} \; + touch install-stamp + +binary-arch: +# We have nothing to do here for an architecture-independent package + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs --exclude=upgrades \ + --exclude=license.txt \ + --exclude=.css \ + --exclude=.js \ + --exclude=.svn + dh_installexamples --exclude=.css \ + --exclude=.js \ + --exclude=.svn + dh_installinit + dh_installlogrotate + dh_installman + dh_perl + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- webgui-7.6.24.orig/debian/webgui.logrotate +++ webgui-7.6.24/debian/webgui.logrotate @@ -0,0 +1,5 @@ +/var/log/webgui/webgui.log { + weekly + compress + rotate 12 +} --- webgui-7.6.24.orig/debian/webgui.links +++ webgui-7.6.24/debian/webgui.links @@ -0,0 +1,7 @@ +/etc/webgui/webgui.conf /usr/share/webgui/etc/webgui.conf +/etc/webgui/log.conf /usr/share/webgui/etc/log.conf +/etc/webgui/apache.config /usr/share/webgui/etc/apache.config +/etc/webgui/spectre.conf /usr/share/webgui/etc/spectre.conf +/usr/share/javascript/yui /usr/share/webgui/extras/yui/build +/usr/share/tinymce/www /usr/share/webgui/extras/tinymce/jscripts/tiny_mce +/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf /usr/share/webgui/lib/default.ttf --- webgui-7.6.24.orig/debian/postinst +++ webgui-7.6.24/debian/postinst @@ -0,0 +1,49 @@ +#! /bin/sh +# postinst script for webgui +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + # Make sure web working area has appropiate permissions + if [ -d /var/lib/webgui ]; then + chown -R root:www-data /var/lib/webgui + chmod 2775 /var/lib/webgui/* + fi + + # Make sure log directory has appropiate permissions + [ -d /var/log/webgui ] && chown -R root:www-data /var/log/webgui + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- webgui-7.6.24.orig/debian/webgui.default +++ webgui-7.6.24/debian/webgui.default @@ -0,0 +1,3 @@ +# Check /usr/share/doc/webgui/README.Debian for configuration +# instructions and then enable WebGUI's Spectre daemon +ENABLED=no --- webgui-7.6.24.orig/debian/patches/fix_webgui_root.patch +++ webgui-7.6.24/debian/patches/fix_webgui_root.patch @@ -0,0 +1,208 @@ +WebGUI utility scripts rely on use lib to have access to WebGUI's +Perl Modules, using hard coded relative paths. This patch makes +it use /usr/share/webgui instead. + +Index: webgui/sbin/changeIobStatus.pl +=================================================================== +--- webgui.orig/sbin/changeIobStatus.pl 2009-05-11 09:32:40.970718279 -0430 ++++ webgui/sbin/changeIobStatus.pl 2009-05-11 09:32:48.274701467 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/diskUsage.pl +=================================================================== +--- webgui.orig/sbin/diskUsage.pl 2009-05-11 09:32:40.974701816 -0430 ++++ webgui/sbin/diskUsage.pl 2009-05-11 09:32:48.274701467 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/fileImport.pl +=================================================================== +--- webgui.orig/sbin/fileImport.pl 2009-05-11 09:32:40.986723037 -0430 ++++ webgui/sbin/fileImport.pl 2009-05-11 09:32:48.278723136 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot, @nailable); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + @nailable = qw(jpg jpeg png gif); + unshift (@INC, $webguiRoot."/lib"); + } +Index: webgui/sbin/generateContent.pl +=================================================================== +--- webgui.orig/sbin/generateContent.pl 2009-05-11 09:32:40.990705806 -0430 ++++ webgui/sbin/generateContent.pl 2009-05-11 09:32:48.282724623 -0430 +@@ -14,7 +14,7 @@ + our $webguiRoot; + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/maintenanceMode.pl +=================================================================== +--- webgui.orig/sbin/maintenanceMode.pl 2009-05-11 09:32:40.998701934 -0430 ++++ webgui/sbin/maintenanceMode.pl 2009-05-11 09:32:48.286701524 -0430 +@@ -14,7 +14,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/purgeWGAccess.pl +=================================================================== +--- webgui.orig/sbin/purgeWGAccess.pl 2009-05-11 09:32:41.002718157 -0430 ++++ webgui/sbin/purgeWGAccess.pl 2009-05-11 09:32:48.286701524 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/rebuildLineage.pl +=================================================================== +--- webgui.orig/sbin/rebuildLineage.pl 2009-05-11 09:32:41.010701785 -0430 ++++ webgui/sbin/rebuildLineage.pl 2009-05-11 09:32:48.286701524 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/search.pl +=================================================================== +--- webgui.orig/sbin/search.pl 2009-05-11 09:32:41.014718008 -0430 ++++ webgui/sbin/search.pl 2009-05-11 09:32:48.290720611 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/spectre.pl +=================================================================== +--- webgui.orig/sbin/spectre.pl 2009-05-11 09:32:41.023719223 -0430 ++++ webgui/sbin/spectre.pl 2009-05-11 09:32:48.290720611 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/testEnvironment.pl +=================================================================== +--- webgui.orig/sbin/testEnvironment.pl 2009-05-11 09:32:41.031704038 -0430 ++++ webgui/sbin/testEnvironment.pl 2009-05-11 09:32:48.290720611 -0430 +@@ -14,7 +14,7 @@ + our $webguiRoot; + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/thumbnailer.pl +=================================================================== +--- webgui.orig/sbin/thumbnailer.pl 2009-05-11 09:32:41.035703220 -0430 ++++ webgui/sbin/thumbnailer.pl 2009-05-11 09:32:48.294767773 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/upgrade.pl +=================================================================== +--- webgui.orig/sbin/upgrade.pl 2009-05-11 09:32:41.043702003 -0430 ++++ webgui/sbin/upgrade.pl 2009-05-11 09:32:48.294767773 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/userImport.pl +=================================================================== +--- webgui.orig/sbin/userImport.pl 2009-05-11 09:32:41.047712918 -0430 ++++ webgui/sbin/userImport.pl 2009-05-11 09:32:48.294767773 -0430 +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/galleryImport.pl +=================================================================== +--- webgui.orig/sbin/galleryImport.pl 2009-05-11 09:32:41.059703480 -0430 ++++ webgui/sbin/galleryImport.pl 2009-05-11 09:32:48.299210168 -0430 +@@ -11,7 +11,7 @@ + # ------------------------------------------------------------------- + + $|=1; +-use lib '../lib'; ++use lib '/usr/share/webgui/lib'; + use strict; + use Carp qw( carp croak ); + use File::Find; +@@ -378,7 +378,7 @@ + pod2usage("$0: Must specify a --configFile"); + } + +- my $session = WebGUI::Session->open("..",$configFile); ++ my $session = WebGUI::Session->open("/usr/share/webgui",$configFile); + $session->user({userId=>3}); + + my $versionTag = WebGUI::VersionTag->getWorking($session); +Index: webgui/sbin/installClass.pl +=================================================================== +--- webgui.orig/sbin/installClass.pl 2009-05-11 09:33:04.098701731 -0430 ++++ webgui/sbin/installClass.pl 2009-05-11 09:35:20.568042945 -0430 +@@ -11,7 +11,7 @@ + # http://www.plainblack.com info@plainblack.com + #------------------------------------------------------------------- + +-use lib "../lib"; ++use lib "/usr/share/webguii/lib"; + use strict; + use Getopt::Long; + use Pod::Usage; --- webgui-7.6.24.orig/debian/patches/fix_shebang.patch +++ webgui-7.6.24/debian/patches/fix_shebang.patch @@ -0,0 +1,154 @@ +WebGUI provides several utility scripts written in Perl that +have #!/usr/bin/env as shebang. This patches changes the shebangs +to #!/usr/bin/perl in order to comply with Debian Policy. + +Index: webgui/sbin/changeIobStatus.pl +=================================================================== +--- webgui.orig/sbin/changeIobStatus.pl 2009-05-11 08:18:12.770727505 -0430 ++++ webgui/sbin/changeIobStatus.pl 2009-05-11 09:29:02.502946256 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/diskUsage.pl +=================================================================== +--- webgui.orig/sbin/diskUsage.pl 2009-05-11 08:18:12.534727891 -0430 ++++ webgui/sbin/diskUsage.pl 2009-05-11 09:29:15.301183532 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/fileImport.pl +=================================================================== +--- webgui.orig/sbin/fileImport.pl 2009-05-11 08:18:11.606701354 -0430 ++++ webgui/sbin/fileImport.pl 2009-05-11 09:29:27.620242038 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/generateContent.pl +=================================================================== +--- webgui.orig/sbin/generateContent.pl 2009-05-11 08:18:13.002727101 -0430 ++++ webgui/sbin/generateContent.pl 2009-05-11 09:29:47.490723614 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/rebuildLineage.pl +=================================================================== +--- webgui.orig/sbin/rebuildLineage.pl 2009-05-11 08:18:12.066703745 -0430 ++++ webgui/sbin/rebuildLineage.pl 2009-05-11 09:30:07.982702272 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/search.pl +=================================================================== +--- webgui.orig/sbin/search.pl 2009-05-11 08:18:10.359724630 -0430 ++++ webgui/sbin/search.pl 2009-05-11 09:30:15.394723983 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/spectre.pl +=================================================================== +--- webgui.orig/sbin/spectre.pl 2009-05-11 08:18:10.598702780 -0430 ++++ webgui/sbin/spectre.pl 2009-05-11 09:30:23.766703105 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/testCodebase.pl +=================================================================== +--- webgui.orig/sbin/testCodebase.pl 2009-05-11 08:18:10.822702819 -0430 ++++ webgui/sbin/testCodebase.pl 2009-05-11 09:30:34.552264540 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/testEnvironment.pl +=================================================================== +--- webgui.orig/sbin/testEnvironment.pl 2009-05-11 08:18:14.306723493 -0430 ++++ webgui/sbin/testEnvironment.pl 2009-05-11 09:30:42.762703577 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/thumbnailer.pl +=================================================================== +--- webgui.orig/sbin/thumbnailer.pl 2009-05-11 08:18:11.338723223 -0430 ++++ webgui/sbin/thumbnailer.pl 2009-05-11 09:30:49.752963093 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/upgrade.pl +=================================================================== +--- webgui.orig/sbin/upgrade.pl 2009-05-11 08:18:13.287722958 -0430 ++++ webgui/sbin/upgrade.pl 2009-05-11 09:31:00.310722386 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/userImport.pl +=================================================================== +--- webgui.orig/sbin/userImport.pl 2009-05-11 08:18:11.094704091 -0430 ++++ webgui/sbin/userImport.pl 2009-05-11 09:31:08.111144092 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/purgeWGAccess.pl +=================================================================== +--- webgui.orig/sbin/purgeWGAccess.pl 2009-05-11 08:18:14.026703826 -0430 ++++ webgui/sbin/purgeWGAccess.pl 2009-05-11 09:29:58.402702576 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/galleryImport.pl +=================================================================== +--- webgui.orig/sbin/galleryImport.pl 2009-05-11 08:18:13.798717443 -0430 ++++ webgui/sbin/galleryImport.pl 2009-05-11 09:29:37.887218421 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + # ------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +Index: webgui/sbin/installClass.pl +=================================================================== +--- webgui.orig/sbin/installClass.pl 2009-05-11 09:31:21.955703107 -0430 ++++ webgui/sbin/installClass.pl 2009-05-11 09:31:29.828653503 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + + #------------------------------------------------------------------- --- webgui-7.6.24.orig/debian/patches/fix_upgrade_scripts.patch +++ webgui-7.6.24/debian/patches/fix_upgrade_scripts.patch @@ -0,0 +1,544 @@ +WebGUI provides several upgrade scripts to handle upgrading existing +installations from one version to the next. This scripts fixes shebang +lines, the path to WebGUI's Perl libraries and several hardcoded +filenames. + +Index: webgui/docs/upgrades/upgrade_7.5.24-7.6.0.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.5.24-7.6.0.pl 2009-05-27 10:40:11.165771763 -0430 ++++ webgui/docs/upgrades/upgrade_7.5.24-7.6.0.pl 2009-05-27 10:40:44.238749462 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.5.40-7.6.10.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.5.40-7.6.10.pl 2009-05-27 10:40:11.173731014 -0430 ++++ webgui/docs/upgrades/upgrade_7.5.40-7.6.10.pl 2009-05-27 10:40:44.242759399 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.0-7.6.1.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.0-7.6.1.pl 2009-05-27 10:40:11.185732051 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.0-7.6.1.pl 2009-05-27 10:40:44.245730936 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.1-7.6.2.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.1-7.6.2.pl 2009-05-27 10:40:11.193730972 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.1-7.6.2.pl 2009-05-27 10:40:44.245730936 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.10-7.6.11.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.10-7.6.11.pl 2009-05-27 10:40:11.201736040 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.10-7.6.11.pl 2009-05-27 10:40:44.249733610 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.11-7.6.12.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.11-7.6.12.pl 2009-05-27 10:40:11.209749837 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.11-7.6.12.pl 2009-05-27 10:40:44.249733610 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.12-7.6.13.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.12-7.6.13.pl 2009-05-27 10:40:11.221732225 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.12-7.6.13.pl 2009-05-27 10:40:44.249733610 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.13-7.6.14.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.13-7.6.14.pl 2009-05-27 10:40:11.233730608 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.13-7.6.14.pl 2009-05-27 10:40:44.249733610 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.14-7.6.15.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.14-7.6.15.pl 2009-05-27 10:40:11.241730995 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.14-7.6.15.pl 2009-05-27 10:40:44.249733610 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.15-7.6.16.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.15-7.6.16.pl 2009-05-27 10:40:11.249732220 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.15-7.6.16.pl 2009-05-27 10:40:44.253730626 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.16-7.6.17.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.16-7.6.17.pl 2009-05-27 10:40:11.261749459 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.16-7.6.17.pl 2009-05-27 10:40:44.253730626 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.17-7.6.18.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.17-7.6.18.pl 2009-05-27 10:40:11.269748170 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.17-7.6.18.pl 2009-05-27 10:40:44.253730626 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.18-7.6.19.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.18-7.6.19.pl 2009-05-27 10:40:11.282732711 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.18-7.6.19.pl 2009-05-27 10:40:44.304014805 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.19-7.6.20.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.19-7.6.20.pl 2009-05-27 10:40:11.293730965 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.19-7.6.20.pl 2009-05-27 10:40:44.305730386 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/perl"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.2-7.6.3.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.2-7.6.3.pl 2009-05-27 10:40:11.301747975 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.2-7.6.3.pl 2009-05-27 10:40:44.305730386 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.20-7.6.21.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.20-7.6.21.pl 2009-05-27 10:40:11.309734256 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.20-7.6.21.pl 2009-05-27 10:40:44.305730386 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.21-7.6.22.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.21-7.6.22.pl 2009-05-27 10:40:11.321747584 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.21-7.6.22.pl 2009-05-27 10:40:44.305730386 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.3-7.6.4.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.3-7.6.4.pl 2009-05-27 10:40:11.329748670 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.3-7.6.4.pl 2009-05-27 10:40:44.309744724 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.4-7.6.5.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.4-7.6.5.pl 2009-05-27 10:40:11.338754492 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.4-7.6.5.pl 2009-05-27 10:40:44.309744724 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.5-7.6.6.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.5-7.6.6.pl 2009-05-27 10:40:11.350748964 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.5-7.6.6.pl 2009-05-27 10:40:44.309744724 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.6-7.6.7.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.6-7.6.7.pl 2009-05-27 10:40:11.357747060 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.6-7.6.7.pl 2009-05-27 10:40:44.309744724 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.7-7.6.8.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.7-7.6.8.pl 2009-05-27 10:40:11.366734097 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.7-7.6.8.pl 2009-05-27 10:40:44.313730775 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.8-7.6.9.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.8-7.6.9.pl 2009-05-27 10:40:11.378731153 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.8-7.6.9.pl 2009-05-27 10:40:44.313730775 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.9-7.6.10.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.9-7.6.10.pl 2009-05-27 10:40:11.385730647 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.9-7.6.10.pl 2009-05-27 10:40:44.313730775 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/_upgrade.skeleton +=================================================================== +--- webgui.orig/docs/upgrades/_upgrade.skeleton 2009-05-27 10:40:11.401733869 -0430 ++++ webgui/docs/upgrades/_upgrade.skeleton 2009-05-27 10:40:44.313730775 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/sbin/upgrade.pl +=================================================================== +--- webgui.orig/sbin/upgrade.pl 2009-05-27 10:40:42.309751011 -0430 ++++ webgui/sbin/upgrade.pl 2009-05-27 10:40:44.317730725 -0430 +@@ -38,9 +38,9 @@ + my $history; + my $override; + my $quiet; +-my $mysql = "mysql"; +-my $mysqldump = "mysqldump"; +-my $backupDir = "/tmp/backups"; ++my $mysql = "/usr/bin/mysql"; ++my $mysqldump = "/usr/bin/mysqldump"; ++my $backupDir = "/var/backups"; + my $skipBackup; + my $skipDelete; + my $skipMaintenance; +@@ -108,7 +108,7 @@ + } else { + $slash = "/"; + } +-our $upgradesPath = $webguiRoot.$slash."docs".$slash."upgrades".$slash; ++our $upgradesPath = $webguiRoot.$slash."upgrades".$slash; + our (%upgrade, %config); + + +Index: webgui/docs/upgrades/upgrade_7.6.22-7.6.23.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.22-7.6.23.pl 2009-05-27 10:40:11.413730785 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.22-7.6.23.pl 2009-05-27 10:40:44.317730725 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +Index: webgui/docs/upgrades/upgrade_7.6.23-7.6.24.pl +=================================================================== +--- webgui.orig/docs/upgrades/upgrade_7.6.23-7.6.24.pl 2009-05-27 10:40:52.357731267 -0430 ++++ webgui/docs/upgrades/upgrade_7.6.23-7.6.24.pl 2009-05-27 10:41:08.273753555 -0430 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = "../.."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + --- webgui-7.6.24.orig/debian/patches/series +++ webgui-7.6.24/debian/patches/series @@ -0,0 +1,3 @@ +fix_shebang.patch +fix_webgui_root.patch +fix_upgrade_scripts.patch