--- webgui-7.7.29.orig/debian/control +++ webgui-7.7.29/debian/control @@ -0,0 +1,102 @@ +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.3 + +Package: webgui +Architecture: all +Depends: ${perl:Depends}, + mysql-client, + apache2, apache2-mpm-prefork, + ghostscript, + libapache2-mod-perl2, libapache2-mod-apreq2, libapache2-request-perl, + perl (>= 5.10.1) | libio-zlib-perl (>= 1.09), + libarchive-any-perl, + libbusiness-tax-vat-validation-perl, + libclass-c3-perl (>= 0.21), + libclass-insideout-perl (>= 1.06), + libclone-perl (>= 0.31), + libcolor-calc-perl, + libcss-packer-perl, libcss-minifier-xs-perl, + perl (>= 5.10.0) | libcompress-zlib-perl (>= 2.015), + libconfig-json-perl (>= 1.3.1), + libdata-structure-util-perl (>= 0.11), + libdatetime-perl (>= 0.4501), libdatetime-format-mail-perl (>= 0.2901), + libdatetime-format-strptime-perl (>= 1.08), + libdbi-perl (>= 1.605), libdbd-mysql-perl (>= 4.007), + perl (>= 5.10.1) | libdigest-sha-perl (>= 5.47), + libexception-class-perl (>= 1.26), + libfinance-quote-perl (>= 1.15), + libhtml-packer-perl, + libhtml-parser-perl (>= 3.56), + 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.07), + libimage-exiftool-perl (>= 7.67), + libjavascript-packer-perl, libjavascript-minifier-xs-perl, + libjson-perl (>= 2.04), + libjs-yui (>= 2.6.0), + liblist-moreutils-perl, + liblog-log4perl-perl (>= 1.2), + libmime-tools-perl (>= 5.419), + libnet-ldap-perl (>= 0.39), + libnet-cidr-lite-perl | libnet-subnets-perl (>= 0.21), + libpath-class-perl, + libpod-coverage-perl (>= 0.17), + libpoe-perl (>= 2:1.005), + libpoe-component-ikc-perl (>= 0.18), + libpoe-component-client-http-perl (>= 0.88), + libreadonly-perl, + libscope-guard-perl (>= 0.03), + libsoap-lite-perl (>= 0.60), + libtemplate-perl, + libtest-class-perl (>= 0.30), + libtest-deep-perl (>= 0.095), + libtest-mockobject-perl (>= 1.02), + perl (>= 5.10.1) | libtest-simple-perl (>= 0.82), + 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.833), + libxml-feedpp-perl (>= 0.37), + libxml-simple-perl (>= 2.09), + libweather-com-perl, + lsb-base (>= 3.0-6), + 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, libtest-perl-critic-perl, + perltidy +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.7.29.orig/debian/README.Debian +++ webgui-7.7.29/debian/README.Debian @@ -0,0 +1,328 @@ +WebGUI for Debian +================= + +GETTING STARTED +--------------- + +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.7.28 + 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 participate in the WebGUI Community +Statistics Program. WebGUI can send usage statistics to a central +statistics repository in webgui.org, helping developers understand the +way WebGUI is used. If you click 'Enable', only anonymous statistical +information will be sent to the repository. + +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-syncToCdn +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 attempts the automatic upgrade +using those scripts and they work out of the box in most cases. + +If the automatic upgrade fails, you may want to perform the upgrade +manually using the scripts provided in /usr/share/webgui/upgrades. + +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.5.24 on. + +ENABLING SPELL CHECKING +----------------------- + +WebGUI uses TinyMCE as the rich text editor for content managers and +also for writing in forums. If you want to add server-side spell checking +facilities for one or more languages: + +1. Install aspell and needed languages. For instance, to have english +and spanish server-side spell checking you would need + +aptitude install aspell aspell-en aspell-es + +2. Change WebGUI' s configuration file to include the available +dictionaries and mark one of them as default. In this example + + "availableDictionaries" : [ + { + "id" : "en_US", + "name" : "English", + "default" : "1" + }, + { + "id" : "es", + "name" : "Castellano" + } + ], + +The "id" field must have any of the valid aspell dictionary names, +as shown by + +$ aspell dicts + +whereas the "name" field can have any suitable description intended +for the user, since it will show verbatim in the Spell Checking menu. + +3. You must add the Spell Checker button in the TinyMCE Templates. +Working as a WebGUI Administrator, use the Admin Console and go to +the Asset Manager. Navigate through the Asset Browser following the +path + + Root -> Import -> RichEdit + +There you'll find the Templates for the Content Manager's Rich Edit +and the Forum Rich Edit. Following the Edit link for each one you'll +be able to enable the "Server Side Spell Checker" button, by adding it +to any of the three rows of TinyMCE's toolbar. + +4. The next time you use either Rich Editor, you should have a +Spell Check button. If you've defined more than one available dictionary, +you'll see a drop down menu listing them. + +EXTENDING WEBGUI +---------------- + +If you intend to write extensions for WebGUI as Macros or Assets, you +should place the additional Perl modules in /usr/share/local/webgui/lib +mimicking the structure of /usr/share/webgui/lib. Apache will load +any modules under this directory on startup and reload, so after +adding your Perl modules there, you should restart Apache to make +WebGUI use them. If you want to have several directories holding +custom Perl modules for WebGUI, add them to /etc/webgui/preload.custom. + +Note that you *must* create the needed directories before installing +your custom modules. For instance, if you write your own Foo.pm for +a WebGUI Macro named 'foo', you should + +# mkdir -p /usr/local/share/webgui/lib/WebGUI/Macro +# cp Foo.pm /usr/local/share/webgui/lib/WebGUI/Macro +# chmod 644 /usr/local/share/webgui/lib/WebGUI/Macro.pm +# /etc/init.d/apache2 restart + +If you write your own Frobnicator.pm for a WebGUI Asset named Frobnicator, +you should + +# mkdir -p /usr/local/share/webgui/lib/WebGUI/Asset +# cp Frobnicator.pm /usr/local/share/webgui/lib/WebGUI/Asset +# chmod 644 /usr/local/share/webgui/lib/WebGUI/Asset/Frobnicator.pm +# /etc/init.d/apache2 restart + +There's plenty of information in http://www.webgui.org for developers, +and you can find template modules in + +/usr/share/webgui/lib/WebGUI/Macro/_macro.skeleton +/usr/share/webgui/lib/WebGUI/Asset/_NewAsset.skeleton + +If you intend to submit patches or extensions to the core WebGUI, please +make sure your code adheres to WebGUI's coding standards. Just configure +perltidy so it uses WebGUI's preferred configuration, which can be copied +from /usr/share/doc/webgui/examples/.perltidyrc to your WebGUI's +development or personal directory. + +TESTING WEBGUI's CODEBASE +------------------------- + +You can test all of WebGUI's installed codebase using wg-testCodebase. +This is particularly useful if you develop additional Assets and Macros, +or change WebGUI's code in any way you see fit, and want to be sure +you haven't broken anything. To be able to use wg-testCodebase, you need +to install + +libtest-pod-perl +libtest-pod-coverage-perl, +libtest-www-mechanize-perl +libdevel-cover-perl +libtest-perl-critic-perl + +Several tests are *destructive*, that's why testing is strongly recommended +on *testing* installations. + +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 +Fri, 06 Nov 2009 09:18:57 -0430 --- webgui-7.7.29.orig/debian/dirs +++ webgui-7.7.29/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.7.29.orig/debian/copyright +++ webgui-7.7.29/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 © 2009 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.7.29.orig/debian/webgui.init +++ webgui-7.7.29/debian/webgui.init @@ -0,0 +1,145 @@ +#!/bin/sh +# Startup script for WebGUI's Spectre Daemon +# +# Author: Ernesto Hernández-Novich +# Version: @(#) webgui 1.1 2009-08-11 emhn@usb.ve +# +### BEGIN INIT INFO +# Provides: webgui +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Should-Start: apache2 +# Should-Stop: apache2 +# Default-Start: 2 3 4 5 +# Default-Stop: 0 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 should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DESC="WebGUI's Spectre Daemon" +NAME=spectre +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS="--options args" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/webgui + +# Edit /etc/default/webgui to change this +ENABLED=no + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/webgui ] && . /etc/default/webgui + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- --daemon \ + || return 2 +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet \ + --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet \ + --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +if [ "$ENABLED" != "yes" ] +then + log_daemon_msg "WebGUI's Spectre daemon disabled in /etc/default/webgui" + log_end_msg 0 + exit 0 +fi + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + status) + log_daemon_msg "Testing $DESC" "$NAME" + echo + $DAEMON --status + log_end_msg 0 + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|restart|status|force-reload}" >&2 + exit 3 + ;; +esac + +: --- webgui-7.7.29.orig/debian/prerm +++ webgui-7.7.29/debian/prerm @@ -0,0 +1,18 @@ +#!/bin/sh +set -e + +case "$1" in + remove) + # Remove local customization directories, if empty. + if [ "$1" = remove ]; then + rmdir /usr/local/share/webgui/lib 2>/dev/null || true + rmdir /usr/local/share/webgui 2>/dev/null || true + fi + ;; + *) # Nothing to do here, move along + ;; +esac + +#DEBHELPER# + +exit 0 --- webgui-7.7.29.orig/debian/watch +++ webgui-7.7.29/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://update.webgui.org/7.x.x/ webgui-([\d.]+)-stable\.tar\.gz --- webgui-7.7.29.orig/debian/apache.config +++ webgui-7.7.29/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.7.29.orig/debian/preload.perl +++ webgui-7.7.29/debian/preload.perl @@ -0,0 +1,89 @@ +use strict; + +my $webguiRoot = "/usr/share/webgui"; + +@INC = grep { $_ ne q{.} } @INC; + +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.7.29.orig/debian/webgui.examples +++ webgui-7.7.29/debian/webgui.examples @@ -0,0 +1,13 @@ +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 +docs/maintenance.html +www/extras/accordion/ +www/extras/colorpicker/ +www/extras/styleDesigner/ +www/extras/yui-webgui/build/datepicker/ +.perltidyrc --- webgui-7.7.29.orig/debian/postrm +++ webgui-7.7.29/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.7.29.orig/debian/webgui.conf-standalone +++ webgui-7.7.29/debian/webgui.conf-standalone @@ -0,0 +1,1081 @@ +# 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" : "/", + +# 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", + "WebGUI::Shop::PayDriver::PayPal::PayPalStd", + "WebGUI::Shop::PayDriver::PayPal::ExpressCheckout", + "WebGUI::Shop::PayDriver::Ogone" + ], + +# List the shipping drivers you have installed and wish to be +# available for configuration on the site. + +"shippingDrivers" : [ + "WebGUI::Shop::ShipDriver::FlatRate", + "WebGUI::Shop::ShipDriver::USPS" + ], + +# Specify the list of template parsers available in the system. + +"templateParsers" : [ + "WebGUI::Asset::Template::HTMLTemplate" + ], + +# Enable the Survey Expression Engine, which allows goto expressions in +# the config + +"enableSurveyExpressionEngine" : 0, + +# 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", + "ps" : "/usr/bin/ps2ascii", + "pdf" : "/usr/bin/ps2ascii" + }, + + +# 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);" + }, + "assetHistory" : { + "icon" : "assetHistory.gif", + "groupSetting" : "groupIdAdminHistory", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=assetHistory);", + "title" : "^International(assetHistory,Asset);" + }, + "graphics" : { + "icon" : "graphics.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=listGraphicsOptions);", + "title" : "^International(manage graphics,Graphics);", + "groupSetting" : "groupIdAdminGraphics" + }, + "passiveAnalytics" : { + "icon" : "passiveAnalytics.png", + "uiLevel" : 1, + "url" : "^PageUrl(\"\",op=passiveAnalytics;func=editRuleflow);", + "title" : "^International(Passive Analytics,PassiveAnalytics);", + "groupSetting" : "3" + }, + "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" + }, + "adminConsoleOff" : { + "icon" : "adminConsoleOff.gif", + "uiLevel" : 1, + "group" : "12", + "url" : "^PageUrl(\"\",op=switchOffAdmin);", + "title" : "^International(12,WebGUI);" + }, + "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" + }, + "filePump" : { + "icon" : "filePump.png", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=filePump);", + "title" : "^International(File Pump,FilePump);", + "groupSetting" : "groupIdAdminFilePump" + } +}, + +# 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::Ad" : { + "category" : "shop" + }, + "WebGUI::Asset::Sku::Donation" : { + "category" : "shop" + }, + "WebGUI::Asset::Sku::ThingyRecord" : { + "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::StoryArchive" : { + "isContainer" : 1, + "category" : "community" + }, + "WebGUI::Asset::Wobject::StoryTopic" : { + "category" : "community" + }, + "WebGUI::Asset::Wobject::Carousel" : { + "category" : "utilities" + }, + "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" + }, + "WebGUI::Asset::Wobject::Map" : { + "category" : "basic" + } +}, + +# 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" + }, + { + "identifier" : "friendManager", + "title" : "^International(title,Account_FriendManager);", + "className" : "WebGUI::Account::FriendManager" + } +], + +# 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", + "ConvertToUTC" : "ConvertToUTC", + "c" : "c_companyName", + "D" : "D_date", + "DeactivateAccount": "DeactivateAccount", + "EditableToggle" : "EditableToggle", + "e" : "e_companyEmail", + "Extras" : "Extras", + "FetchMimeType" : "FetchMimeType", + "FilePump" : "FilePump", + "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::ArchiveOldStories", + "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::Workflow::Activity::SummarizePassiveAnalytics", + "WebGUI::Workflow::Activity::BucketPassiveAnalytics", + "WebGUI::Workflow::Activity::ExpirePurchasedThingyRecords" + ], + "WebGUI::Asset::Wobject::Thingy" : [ + "WebGUI::Workflow::Activity::NotifyAboutThing" + ], + "WebGUI::User" : [ + "WebGUI::Workflow::Activity::CreateCronJob", + "WebGUI::Workflow::Activity::NotifyAboutUser", + "WebGUI::Workflow::Activity::ActivateUser", + "WebGUI::Workflow::Activity::DeactivateUser", + "WebGUI::Workflow::Activity::DeleteUser" + ], + "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::PassiveAnalytics", + "WebGUI::Content::AjaxI18N", + "WebGUI::Content::Account", + "WebGUI::Content::AssetHistory", + "WebGUI::Content::FilePump", + "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" +], + +# Drivers for the pluggable tax system +"taxDrivers" : [ + "WebGUI::Shop::TaxDriver::Generic", + "WebGUI::Shop::TaxDriver::EU" +], + +# Content Delivery Network - for use with WebGUI::Storage +# required for CDN: enabled, url, queuePath, syncProgram, deleteProgram +# optional for CDN: sslAlt, sslUrl, extrasCdn, extrasSsl, extrasExclude +#"cdn" : { "enabled" : 0, +# "url" : "http://content.example.com", +# "sslAlt" : 0, +# "sslUrl" : "https://ssl.example.com", +# "queuePath" : "/data/cdnqueue", +# "syncProgram" : "/usr/bin/rsync -av --chmod=u+rwx -- '%s' user@content.example.com:/path", +# "deleteProgram" : "/usr/bin/ssh user@content.example.com 'rm -Rf -- %s'", +# "extrasCdn" : "http://content.example.com/extras", +# "extrasSsl" : "https://content.example.com/extras", +# "extrasExclude": ["tinymce", "^blah$"] +# }, + +#A list of UserAgents of recognized mobile platforms. If useMobileStyle is set in the +#Admin settings, then the mobile style will be used for these browsers. + + "mobileUserAgents" : [ + "AvantGo", + "DoCoMo", + "Vodafone", + "EudoraWeb", + "Minimo", + "UP\\.Browser", + "PLink", + "Plucker", + "NetFront", + "^WM5 PIE$", + "Xiino", + "iPhone", + "Opera Mobi", + "BlackBerry", + "Opera Mini", + "HP iPAQ", + "IEMobile", + "Profile/MIDP", + "Smartphone", + "Symbian ?OS", + "J2ME/MIDP", + "PalmSource", + "PalmOS", + "Windows CE", + "Opera Mini" + ], + +} + --- webgui-7.7.29.orig/debian/compat +++ webgui-7.7.29/debian/compat @@ -0,0 +1 @@ +5 --- webgui-7.7.29.orig/debian/webgui.install +++ webgui-7.7.29/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.7.29.orig/debian/log.conf +++ webgui-7.7.29/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.7.29.orig/debian/apache.config-standalone +++ webgui-7.7.29/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.7.29.orig/debian/README.source +++ webgui-7.7.29/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.7.29.orig/debian/webgui.manpages +++ webgui-7.7.29/debian/webgui.manpages @@ -0,0 +1,17 @@ +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 +wg-syncToCdn.1 --- webgui-7.7.29.orig/debian/changelog +++ webgui-7.7.29/debian/changelog @@ -0,0 +1,419 @@ +webgui (7.7.29-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Wed, 23 Dec 2009 10:55:32 -0430 + +webgui (7.7.28-1) unstable; urgency=low + + * New upstream release. + * Added versioned Dependency on libtest-simple-perl, also satisfiabe + with perl itself, in order to have the required Test::More version + needed for the automated code base testing utility. + * Changed versioned dependencies on perl-modules for versioned + dependencies on perl instead. + * Properly place the supplied sample .perltidyrc as an example + and add a note in README.Debian. Added a Suggests on perltidy. + + -- Ernesto Hernández-Novich (USB) Wed, 09 Dec 2009 07:16:17 -0430 + +webgui (7.7.27-1) unstable; urgency=low + + * New upstream release. + * Updated versioned Depends on libwww-perl as required by gotchas.txt. + * Added a preferred alternative Depends on libnet-cidr-lite-perl + instead of libnet-subnets-perl, since the latter has been removed + from CPAN and will be removed from the archive soon. Upstream + switched to using either of them, favoring Net::CIDR::Lite, but + will deprecate Net::Subnets from WebGUI 7.8 onwards. + * Make sure postinst restarts Apache before and after the automatic + upgrade. The restart is needed before so that the newer WebGUI + modules are available for the upgrade. The restart is needed after + just in case cacheing settings, database settings or handler + modules have changed during the upgrade. + + -- Ernesto Hernández-Novich (USB) Wed, 25 Nov 2009 07:43:33 -0430 + +webgui (7.7.26-1) unstable; urgency=low + + * New upstream release + + -- Ernesto Hernández-Novich (USB) Wed, 11 Nov 2009 07:15:05 -0430 + +webgui (7.7.25-1) unstable; urgency=low + + * New upstream release. + * Enable /usr/local/share/webgui/lib as default directory + for locally customized WebGUI Macros, Assets or general modules. + Add a note in README.Debian explaining its use. Added the + relevant creation commands to postinst and a new prerm to + remove the directories if they are empty. + + -- Ernesto Hernández-Novich (USB) Mon, 09 Nov 2009 19:38:27 -0430 + +webgui (7.7.24-1) unstable; urgency=low + + * New upstream release. + Upstream fixed a serious upgrade bug that was breaking upgrades + from 7.6.35 on to 7.7.17 and subsequent versions. + + -- Ernesto Hernández-Novich (USB) Fri, 30 Oct 2009 09:09:07 -0430 + +webgui (7.7.23-1) unstable; urgency=low + + * New upstream release. + * Added missing Dependencies on libcss-minifier-xs-perl and + libjavascript-minifier-xs-perl (Closes: 552062, 552063) + * Make sure logrotate rotates any .log file in /var/log/webgui instead + of simply rotating webgui.log. This allows having several WebGUI + instances each one having a different logfile. + + -- Ernesto Hernández-Novich (USB) Wed, 28 Oct 2009 07:18:14 -0430 + +webgui (7.7.22-1) unstable; urgency=low + + * New upstream release. + * Updated Standards-Version. + * Added a versioned Depends on libxml-feedpp-perl. Versions older than + 0.37 trigger an UTF-8 bug in Syndicated Contents. + * Added a versioned Depends on libclone-perl. Versions older than + 0.31 trigger a bug in workflow management. + * control: updated the versioned dependencies according to WebGUI's + latest requirements. + * quilt: Refreshed patches on account of obsoleted files being removed. + Rewrote all patch headers following DEP3 guidelines. + * Updated sample configuration file to include newer functionality. + * init script: apply patch suggested by Petter Reinholdtsen so it + works properly under dependency based boot sequencing (Closes: 547564). + + -- Ernesto Hernández-Novich (USB) Fri, 16 Oct 2009 10:09:47 -0430 + +webgui (7.6.35.2-1) unstable; urgency=low + + * This is the last release of the 7.6 series upstream. It really is. + Upstream released 7.6.35.2 to fix a couple of regressions and + an i18n bugfix that appeared in 7.6.35.1 due to a wrong SVN commit + upstream. Sources can be downloaded from + + http://www.webgui.org/bazaar/webgui-7.6.35.2 + + instead of the usual place. Since the full URL is tricky, is not + worth the trouble adding it to watch for a single case. + + -- Ernesto Hernández-Novich (USB) Wed, 26 Aug 2009 12:06:01 -0430 + +webgui (7.6.35.1-2) unstable; urgency=low + + * The postinst script was attempting the automatic upgrade unconditionally, + thus failing miserably on first time installs where there isn't any + database nor templates to upgrade. The postinst now correctly attempts + the automatica upgrade only on package upgrades. + + -- Ernesto Hernández-Novich (USB) Fri, 21 Aug 2009 17:21:33 -0430 + +webgui (7.6.35.1-1) unstable; urgency=low + + * wg-testCodebase works out of the box (finally!) thanks to a last + minute patch sent upstream. + * This is the last release of the 7.6 series upstream. There will + be NO 7.6.36 ever. Upstream released 7.6.35.1 just to have the + testCodebase patch along with a couple of i18n bugfixes. Sources + can be downloaded from + + http://www.webgui.org/bazaar/webgui-7.6.35.1 + + instead of the usual place. Since the full URL is tricky, is not + worth the trouble adding it to watch for a single case. + * Added a Suggest on libtest-perl-critic needed for wg-testCodebase's + deeper test suite (coverage, documentation and style testing). + * Added some notes in README.Debian regarding wg-testCodebase. + * Updated README.Debian regarding automatic upgrades and minimal + upgradeable version. + * Made /usr/share/webgui/etc be a symlink to /etc/webgui instead of + having separate links for each file. This allows having more than + one WebGUI configuration or renaming the single configuration. This + required a preinst script to handle the transition. + * Added a patch to change some hardcoded pathnames in wg-testCodebase. + * Refreshed all patches to a consistent format following + Debian Perl Group's practices. + + -- Ernesto Hernández-Novich (USB) Wed, 19 Aug 2009 16:58:34 -0430 + +webgui (7.6.35-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Wed, 12 Aug 2009 08:36:38 -0430 + +webgui (7.6.34-1) unstable; urgency=low + + * New upstream release. + * WebGUI's Spectre daemon now has a proper PID file, therefore the + sample spectre.conf includes the PID file location and the init + scipt has been refreshed to cope with that. + * Added a missing versioned Depends on lsb-base, needed for + init-functions in the new init script. + * WebGUI's Search feature is based on having "anything to text" + converters available so additional conversion programs + to handle PDF and PostScript files where added to the sample + configuration file. This required adding additional + dependencies on ghostscript to have ps2ascii. + + -- Ernesto Hernández-Novich (USB) Tue, 11 Aug 2009 11:10:41 -0430 + +webgui (7.6.33-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Thu, 30 Jul 2009 10:48:30 -0430 + +webgui (7.6.32-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Sat, 25 Jul 2009 13:50:10 -0430 + +webgui (7.6.31-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Wed, 15 Jul 2009 09:09:26 -0430 + +webgui (7.6.30-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Wed, 08 Jul 2009 08:00:40 -0430 + +webgui (7.6.29-1) unstable; urgency=low + + * New upstream release. + + -- Ernesto Hernández-Novich (USB) Wed, 01 Jul 2009 08:48:09 -0430 + +webgui (7.6.28-1) unstable; urgency=low + + * New upstream release. + * Updated Standards Version. + * Added a versioned dependency as suggested by lintian, since + perl-modules 5.10 already includes libcompress-zlib-perl. + + -- Ernesto Hernández-Novich (USB) Thu, 25 Jun 2009 12:00:00 -0430 + +webgui (7.6.27-1) unstable; urgency=low + + * New upstream release. + * Updated copyright notice for UKPlayer. + * Modified postinst so /var/lib/webgui belongs to user www-data + instead of root. This is needed for uploads, exports and cache + to work properly. + * Added notes in README.Debian regarding the proper way to enable + server-side spellchecking for the Rich Editor. + + -- Ernesto Hernández-Novich (USB) Mon, 15 Jun 2009 09:41:14 -0430 + +webgui (7.6.25-1) unstable; urgency=low + + * New upstream release. + * Added new dependency on libclone-perl. + + -- Ernesto Hernández-Novich (USB) Fri, 05 Jun 2009 09:54:34 -0430 + +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.7.29.orig/debian/webgui.docs +++ webgui-7.7.29/debian/webgui.docs @@ -0,0 +1 @@ +docs --- webgui-7.7.29.orig/debian/webgui.conf +++ webgui-7.7.29/debian/webgui.conf @@ -0,0 +1,1081 @@ +# 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", + "WebGUI::Shop::PayDriver::PayPal::PayPalStd", + "WebGUI::Shop::PayDriver::PayPal::ExpressCheckout", + "WebGUI::Shop::PayDriver::Ogone" + ], + +# List the shipping drivers you have installed and wish to be +# available for configuration on the site. + +"shippingDrivers" : [ + "WebGUI::Shop::ShipDriver::FlatRate", + "WebGUI::Shop::ShipDriver::USPS" + ], + +# Specify the list of template parsers available in the system. + +"templateParsers" : [ + "WebGUI::Asset::Template::HTMLTemplate" + ], + +# Enable the Survey Expression Engine, which allows goto expressions in +# the config + +"enableSurveyExpressionEngine" : 0, + +# 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", + "ps" : "/usr/bin/ps2ascii", + "pdf" : "/usr/bin/ps2ascii" + }, + + +# 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);" + }, + "assetHistory" : { + "icon" : "assetHistory.gif", + "groupSetting" : "groupIdAdminHistory", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=assetHistory);", + "title" : "^International(assetHistory,Asset);" + }, + "graphics" : { + "icon" : "graphics.gif", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=listGraphicsOptions);", + "title" : "^International(manage graphics,Graphics);", + "groupSetting" : "groupIdAdminGraphics" + }, + "passiveAnalytics" : { + "icon" : "passiveAnalytics.png", + "uiLevel" : 1, + "url" : "^PageUrl(\"\",op=passiveAnalytics;func=editRuleflow);", + "title" : "^International(Passive Analytics,PassiveAnalytics);", + "groupSetting" : "3" + }, + "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" + }, + "adminConsoleOff" : { + "icon" : "adminConsoleOff.gif", + "uiLevel" : 1, + "group" : "12", + "url" : "^PageUrl(\"\",op=switchOffAdmin);", + "title" : "^International(12,WebGUI);" + }, + "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" + }, + "filePump" : { + "icon" : "filePump.png", + "uiLevel" : 5, + "url" : "^PageUrl(\"\",op=filePump);", + "title" : "^International(File Pump,FilePump);", + "groupSetting" : "groupIdAdminFilePump" + } +}, + +# 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::Ad" : { + "category" : "shop" + }, + "WebGUI::Asset::Sku::Donation" : { + "category" : "shop" + }, + "WebGUI::Asset::Sku::ThingyRecord" : { + "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::StoryArchive" : { + "isContainer" : 1, + "category" : "community" + }, + "WebGUI::Asset::Wobject::StoryTopic" : { + "category" : "community" + }, + "WebGUI::Asset::Wobject::Carousel" : { + "category" : "utilities" + }, + "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" + }, + "WebGUI::Asset::Wobject::Map" : { + "category" : "basic" + } +}, + +# 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" + }, + { + "identifier" : "friendManager", + "title" : "^International(title,Account_FriendManager);", + "className" : "WebGUI::Account::FriendManager" + } +], + +# 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", + "ConvertToUTC" : "ConvertToUTC", + "c" : "c_companyName", + "D" : "D_date", + "DeactivateAccount": "DeactivateAccount", + "EditableToggle" : "EditableToggle", + "e" : "e_companyEmail", + "Extras" : "Extras", + "FetchMimeType" : "FetchMimeType", + "FilePump" : "FilePump", + "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::ArchiveOldStories", + "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::Workflow::Activity::SummarizePassiveAnalytics", + "WebGUI::Workflow::Activity::BucketPassiveAnalytics", + "WebGUI::Workflow::Activity::ExpirePurchasedThingyRecords" + ], + "WebGUI::Asset::Wobject::Thingy" : [ + "WebGUI::Workflow::Activity::NotifyAboutThing" + ], + "WebGUI::User" : [ + "WebGUI::Workflow::Activity::CreateCronJob", + "WebGUI::Workflow::Activity::NotifyAboutUser", + "WebGUI::Workflow::Activity::ActivateUser", + "WebGUI::Workflow::Activity::DeactivateUser", + "WebGUI::Workflow::Activity::DeleteUser" + ], + "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::PassiveAnalytics", + "WebGUI::Content::AjaxI18N", + "WebGUI::Content::Account", + "WebGUI::Content::AssetHistory", + "WebGUI::Content::FilePump", + "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" +], + +# Drivers for the pluggable tax system +"taxDrivers" : [ + "WebGUI::Shop::TaxDriver::Generic", + "WebGUI::Shop::TaxDriver::EU" +], + +# Content Delivery Network - for use with WebGUI::Storage +# required for CDN: enabled, url, queuePath, syncProgram, deleteProgram +# optional for CDN: sslAlt, sslUrl, extrasCdn, extrasSsl, extrasExclude +#"cdn" : { "enabled" : 0, +# "url" : "http://content.example.com", +# "sslAlt" : 0, +# "sslUrl" : "https://ssl.example.com", +# "queuePath" : "/data/cdnqueue", +# "syncProgram" : "/usr/bin/rsync -av --chmod=u+rwx -- '%s' user@content.example.com:/path", +# "deleteProgram" : "/usr/bin/ssh user@content.example.com 'rm -Rf -- %s'", +# "extrasCdn" : "http://content.example.com/extras", +# "extrasSsl" : "https://content.example.com/extras", +# "extrasExclude": ["tinymce", "^blah$"] +# }, + +#A list of UserAgents of recognized mobile platforms. If useMobileStyle is set in the +#Admin settings, then the mobile style will be used for these browsers. + + "mobileUserAgents" : [ + "AvantGo", + "DoCoMo", + "Vodafone", + "EudoraWeb", + "Minimo", + "UP\\.Browser", + "PLink", + "Plucker", + "NetFront", + "^WM5 PIE$", + "Xiino", + "iPhone", + "Opera Mobi", + "BlackBerry", + "Opera Mini", + "HP iPAQ", + "IEMobile", + "Profile/MIDP", + "Smartphone", + "Symbian ?OS", + "J2ME/MIDP", + "PalmSource", + "PalmOS", + "Windows CE", + "Opera Mini" + ], + +} + --- webgui-7.7.29.orig/debian/preinst +++ webgui-7.7.29/debian/preinst @@ -0,0 +1,41 @@ +#!/bin/sh +# preinst script for webgui +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Handle /usr/share/webgui/etc dir-to-link transition + if [ "$1" = upgrade -a -d /usr/share/webgui/etc ]; then + rm -rf /usr/share/webgui/etc + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst 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.7.29.orig/debian/preload.custom +++ webgui-7.7.29/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/lib --- webgui-7.7.29.orig/debian/spectre.conf +++ webgui-7.7.29/debian/spectre.conf @@ -0,0 +1,56 @@ +# 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, 8081 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, + +# The location of the file that keeps track of the master spectre processId. + +"pidFile" : "/var/run/spectre.pid" + +} + --- webgui-7.7.29.orig/debian/preload.exclude +++ webgui-7.7.29/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.7.29.orig/debian/rules +++ webgui-7.7.29/debian/rules @@ -0,0 +1,105 @@ +#!/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 \ + --exclude=maintenance.html + 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.7.29.orig/debian/webgui.logrotate +++ webgui-7.7.29/debian/webgui.logrotate @@ -0,0 +1,5 @@ +/var/log/webgui/*.log { + weekly + compress + rotate 12 +} --- webgui-7.7.29.orig/debian/webgui.links +++ webgui-7.7.29/debian/webgui.links @@ -0,0 +1,4 @@ +etc/webgui usr/share/webgui/etc +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.7.29.orig/debian/postinst +++ webgui-7.7.29/debian/postinst @@ -0,0 +1,92 @@ +#! /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 www-data: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 + + # Make sure local customization directory exists + if [ ! -e /usr/local/share/webgui/lib ] + then + if mkdir -p /usr/local/share/webgui/lib 2>/dev/null + then + chown root:staff /usr/local/share/webgui/lib + chmod 2775 /usr/local/share/webgui/lib + fi + fi + + ### Automatic data upgrade + + # This should only be attempted on upgrades. + if [ -n "$2" ]; then + + # Stop WebGUI's Spectre daemon + /etc/init.d/webgui stop + + # Reload Apache so the latest WebGUI modules are loaded + # before attempting the upgrade. + if [ -x "/etc/init.d/apache2" ]; then + if [ -x "/usr/sbin/invoke-rc.d" ]; then + invoke-rc.d apache2 restart || true + else + /etc/init.d/apache2 restart || true + fi + fi + + # Attempt WebGUI's upgrade + wg-upgrade --doit + + # Reload Apache after the upgrade + if [ -x "/etc/init.d/apache2" ]; then + if [ -x "/usr/sbin/invoke-rc.d" ]; then + invoke-rc.d apache2 restart || true + else + /etc/init.d/apache2 restart || true + fi + fi + + # Start WebGUI's Spectre daemon + /etc/init.d/webgui start + fi + + ;; + + 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.7.29.orig/debian/webgui.default +++ webgui-7.7.29/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.7.29.orig/debian/patches/fix_webgui_root.patch +++ webgui-7.7.29/debian/patches/fix_webgui_root.patch @@ -0,0 +1,191 @@ +Description: 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. +Forwarded: not-needed +Author: Ernesto Hernández-Novich + +--- a/sbin/changeIobStatus.pl ++++ b/sbin/changeIobStatus.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/diskUsage.pl ++++ b/sbin/diskUsage.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/fileImport.pl ++++ b/sbin/fileImport.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot, @nailable); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + @nailable = qw(jpg jpeg png gif); + unshift (@INC, $webguiRoot."/lib"); + } +--- a/sbin/generateContent.pl ++++ b/sbin/generateContent.pl +@@ -14,7 +14,7 @@ + our $webguiRoot; + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/maintenanceMode.pl ++++ b/sbin/maintenanceMode.pl +@@ -14,7 +14,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/purgeWGAccess.pl ++++ b/sbin/purgeWGAccess.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/rebuildLineage.pl ++++ b/sbin/rebuildLineage.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/search.pl ++++ b/sbin/search.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/spectre.pl ++++ b/sbin/spectre.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/testEnvironment.pl ++++ b/sbin/testEnvironment.pl +@@ -14,7 +14,7 @@ + our $webguiRoot; + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/thumbnailer.pl ++++ b/sbin/thumbnailer.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/upgrade.pl ++++ b/sbin/upgrade.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/userImport.pl ++++ b/sbin/userImport.pl +@@ -13,7 +13,7 @@ + our ($webguiRoot); + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift (@INC, $webguiRoot."/lib"); + } + +--- a/sbin/galleryImport.pl ++++ b/sbin/galleryImport.pl +@@ -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); +--- a/sbin/installClass.pl ++++ b/sbin/installClass.pl +@@ -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; +--- a/sbin/syncToCdn.pl ++++ b/sbin/syncToCdn.pl +@@ -12,7 +12,7 @@ + our $webguiRoot; + + BEGIN { +- $webguiRoot = ".."; ++ $webguiRoot = "/usr/share/webgui"; + unshift( @INC, $webguiRoot . "/lib" ); + } + --- webgui-7.7.29.orig/debian/patches/fix_shebang.patch +++ webgui-7.7.29/debian/patches/fix_shebang.patch @@ -0,0 +1,141 @@ +Description: WebGUI provides several utility scripts written in Perl that + have #!/usr/bin/env as shebang. This patch changes the shebangs to + #!/usr/bin/perl in order to comply with Debian Policy. +Forwarded: not-needed +Author: Ernesto Hernández-Novich + +--- a/sbin/changeIobStatus.pl ++++ b/sbin/changeIobStatus.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/diskUsage.pl ++++ b/sbin/diskUsage.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/fileImport.pl ++++ b/sbin/fileImport.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/generateContent.pl ++++ b/sbin/generateContent.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/rebuildLineage.pl ++++ b/sbin/rebuildLineage.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/search.pl ++++ b/sbin/search.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/spectre.pl ++++ b/sbin/spectre.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/testCodebase.pl ++++ b/sbin/testCodebase.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/testEnvironment.pl ++++ b/sbin/testEnvironment.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/thumbnailer.pl ++++ b/sbin/thumbnailer.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/upgrade.pl ++++ b/sbin/upgrade.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/userImport.pl ++++ b/sbin/userImport.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/purgeWGAccess.pl ++++ b/sbin/purgeWGAccess.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/galleryImport.pl ++++ b/sbin/galleryImport.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + # ------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/installClass.pl ++++ b/sbin/installClass.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + + #------------------------------------------------------------------- +--- a/sbin/maintenanceMode.pl ++++ b/sbin/maintenanceMode.pl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. +--- a/sbin/syncToCdn.pl ++++ b/sbin/syncToCdn.pl +@@ -1,3 +1,4 @@ ++#!/usr/bin/perl + #------------------------------------------------------------------- + # WebGUI is Copyright 2001-2009 Plain Black Corporation. + #------------------------------------------------------------------- --- webgui-7.7.29.orig/debian/patches/fix_upgrade_scripts.patch +++ webgui-7.7.29/debian/patches/fix_upgrade_scripts.patch @@ -0,0 +1,575 @@ +Description: WebGUI provides several upgrade scripts to handle upgrading + existing installations from one version to the next. This patch fixes + shebang lines, the path to WebGUI's Perl libraries and several hardcoded + filenames. +Forwarded: not-needed +Author: Ernesto Hernández-Novich + +--- a/docs/upgrades/_upgrade.skeleton ++++ b/docs/upgrades/_upgrade.skeleton +@@ -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"); + } + +--- a/sbin/upgrade.pl ++++ b/sbin/upgrade.pl +@@ -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); + + +--- a/docs/upgrades/upgrade_7.6.14-7.7.0.pl ++++ b/docs/upgrades/upgrade_7.6.14-7.7.0.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.6.35-7.7.17.pl ++++ b/docs/upgrades/upgrade_7.6.35-7.7.17.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.0-7.7.1.pl ++++ b/docs/upgrades/upgrade_7.7.0-7.7.1.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.1-7.7.2.pl ++++ b/docs/upgrades/upgrade_7.7.1-7.7.2.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.2-7.7.3.pl ++++ b/docs/upgrades/upgrade_7.7.2-7.7.3.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.3-7.7.4.pl ++++ b/docs/upgrades/upgrade_7.7.3-7.7.4.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.4-7.7.5.pl ++++ b/docs/upgrades/upgrade_7.7.4-7.7.5.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.5-7.7.6.pl ++++ b/docs/upgrades/upgrade_7.7.5-7.7.6.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.6-7.7.7.pl ++++ b/docs/upgrades/upgrade_7.7.6-7.7.7.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.7-7.7.8.pl ++++ b/docs/upgrades/upgrade_7.7.7-7.7.8.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.8-7.7.9.pl ++++ b/docs/upgrades/upgrade_7.7.8-7.7.9.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.9-7.7.10.pl ++++ b/docs/upgrades/upgrade_7.7.9-7.7.10.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.10-7.7.11.pl ++++ b/docs/upgrades/upgrade_7.7.10-7.7.11.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.11-7.7.12.pl ++++ b/docs/upgrades/upgrade_7.7.11-7.7.12.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.12-7.7.13.pl ++++ b/docs/upgrades/upgrade_7.7.12-7.7.13.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.13-7.7.14.pl ++++ b/docs/upgrades/upgrade_7.7.13-7.7.14.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.14-7.7.15.pl ++++ b/docs/upgrades/upgrade_7.7.14-7.7.15.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.15-7.7.16.pl ++++ b/docs/upgrades/upgrade_7.7.15-7.7.16.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.16-7.7.17.pl ++++ b/docs/upgrades/upgrade_7.7.16-7.7.17.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.17-7.7.18.pl ++++ b/docs/upgrades/upgrade_7.7.17-7.7.18.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.18-7.7.19.pl ++++ b/docs/upgrades/upgrade_7.7.18-7.7.19.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.19-7.7.20.pl ++++ b/docs/upgrades/upgrade_7.7.19-7.7.20.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.20-7.7.21.pl ++++ b/docs/upgrades/upgrade_7.7.20-7.7.21.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.21-7.7.22.pl ++++ b/docs/upgrades/upgrade_7.7.21-7.7.22.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.22-7.7.23.pl ++++ b/docs/upgrades/upgrade_7.7.22-7.7.23.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.23-7.7.24.pl ++++ b/docs/upgrades/upgrade_7.7.23-7.7.24.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.24-7.7.25.pl ++++ b/docs/upgrades/upgrade_7.7.24-7.7.25.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.25-7.7.26.pl ++++ b/docs/upgrades/upgrade_7.7.25-7.7.26.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.26-7.7.27.pl ++++ b/docs/upgrades/upgrade_7.7.26-7.7.27.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.27-7.7.28.pl ++++ b/docs/upgrades/upgrade_7.7.27-7.7.28.pl +@@ -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"); + } + +--- a/docs/upgrades/upgrade_7.7.28-7.7.29.pl ++++ b/docs/upgrades/upgrade_7.7.28-7.7.29.pl +@@ -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.7.29.orig/debian/patches/fix_testcodebase.patch +++ webgui-7.7.29/debian/patches/fix_testcodebase.patch @@ -0,0 +1,78 @@ +Description: WebGUI provides a script to run several tests on the code base, + useful for developers looking to extend WebGUI. This patch changes the + hardcoded place to look for configuration files and the included POD to + use and refer to /etc/webgui instead. +Forwarded: not-needed +Author: Ernesto Hernández-Novich + +--- a/sbin/testCodebase.pl ++++ b/sbin/testCodebase.pl +@@ -47,17 +47,16 @@ + if (! -e $configFile) { + ##Probably given the name of the config file with no path, + ##attempt to prepend the path to it. +- warn "Config file $configFile does not exist, assuming that you supplied a bare config and are running from inside the sbin directory\n"; +- $configFile = File::Spec->canonpath($FindBin::Bin.'/../etc/'.$configFile); ++ warn "Config file $configFile does not exist, assuming that you supplied a bare config.\n"; ++ $configFile = File::Spec->canonpath('/etc/webgui/'.$configFile); + } + + die "Unable to use $configFile as a WebGUI config file\n" + unless(-e $configFile and -f _); + + my (undef, $directories, $file) = File::Spec->splitpath($configFile); +-my $webguiRoot = File::Spec->canonpath(File::Spec->catdir($directories, File::Spec->updir)); +-my $webguiTest = File::Spec->catdir($webguiRoot, 't'); +- ++my $webguiRoot = '/usr/share/webgui'; ++$configFile = File::Spec->catfile( $webguiRoot, 'etc', $file ); + my $prefix = "WEBGUI_CONFIG=".$configFile; + + ##Run all tests unless explicitly forbidden +@@ -66,8 +65,16 @@ + # Add coverage tests + $prefix .= " HARNESS_PERL_SWITCHES='-MDevel::Cover=-db,/tmp/coverdb'" if $coverage; + +-print(join ' ', $prefix, $perlBase."prove", $verboseFlag, '-r', $webguiTest); print "\n"; +-system(join ' ', $prefix, $perlBase."prove", $verboseFlag, '-r', $webguiTest); ++chdir $webguiRoot; ++my $cmd = join ' ', ++ $prefix, ++ $perlBase."prove", ++ $verboseFlag, ++ '-r', ++ "-I$webguiRoot/lib", ++ 't'; ++print $cmd,"\n"; ++system $cmd; + + __END__ + +@@ -77,7 +84,7 @@ + + =head1 SYNOPSIS + +- testCodebase --configFile /data/WebGUI/etc/config.conf ++ testCodebase --configFile /etc/webgui/config.conf + [--coverage] + [--noLongTests] + [--perlBase path] +@@ -97,7 +104,7 @@ + + =over + +-=item B<--configFile /data/WebGUI/etc/config.conf> ++=item B<--configFile /etc/webgui/config.conf> + + A WebGUI config file is required for testing. If one cannot be + found based on input from the user, then the script aborts +@@ -106,8 +113,7 @@ + Config files can be supplied on the command line, or via the environment + variable, WEBGUI_CONFIG being used as a fallback. If the config file + cannot be found, the script assumes that a bare filename was provided and +-that it is being from from the WebGUI sbin directory. It then looks in +-the parallel directory, '../etc', for the config file. ++it will look in /etc/webgui for the config file. + + Be aware that some of the tests are destructive, and running tests + on production sites is not recommended. --- webgui-7.7.29.orig/debian/patches/series +++ webgui-7.7.29/debian/patches/series @@ -0,0 +1,4 @@ +fix_shebang.patch +fix_webgui_root.patch +fix_upgrade_scripts.patch +fix_testcodebase.patch