diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2013-05-28 12:52:14 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2013-05-28 12:52:14 +0000 |
commit | 4f1dd7bee25ef8a425520a3d18c7edff0d07f893 (patch) | |
tree | a026ae6b544ffbcdb3cf6e085a19da67db2e0c3b /www-apps/liquid_feedback_frontend | |
parent | Update locales list, thanks to Nikoli <nikoli AT lavabit.com> (diff) | |
download | historical-4f1dd7bee25ef8a425520a3d18c7edff0d07f893.tar.gz historical-4f1dd7bee25ef8a425520a3d18c7edff0d07f893.tar.bz2 historical-4f1dd7bee25ef8a425520a3d18c7edff0d07f893.zip |
Nuw package
Package-Manager: portage-2.1.11.62/cvs/Linux x86_64
Manifest-Sign-Key: 0x0145142D
Diffstat (limited to 'www-apps/liquid_feedback_frontend')
8 files changed, 254 insertions, 0 deletions
diff --git a/www-apps/liquid_feedback_frontend/ChangeLog b/www-apps/liquid_feedback_frontend/ChangeLog new file mode 100644 index 000000000000..d8094d94f265 --- /dev/null +++ b/www-apps/liquid_feedback_frontend/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for www-apps/liquid_feedback_frontend +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/liquid_feedback_frontend/ChangeLog,v 1.1 2013/05/28 12:51:56 tupone Exp $ + +*liquid_feedback_frontend-2.2.2 (28 May 2013) + + 28 May 2013; Alfredo Tupone <tupone@gentoo.org> + +liquid_feedback_frontend-2.2.2.ebuild, +files/lqfb.example.com.conf, + +files/lqfb-apache.conf, +files/myconfig.lua, +files/postinstall-en.txt, + +metadata.xml: + New package + diff --git a/www-apps/liquid_feedback_frontend/Manifest b/www-apps/liquid_feedback_frontend/Manifest new file mode 100644 index 000000000000..70b3d2216f1b --- /dev/null +++ b/www-apps/liquid_feedback_frontend/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX lqfb-apache.conf 1433 SHA256 62e66e40998a7c499f7ef81022c64f0773d1f55b4e522972794f96f63c906086 SHA512 732869250eedef711f5513090c2b756da8242929cbe027aa90abb015b4a0d473b995cc09d6ae5744a4933e7c8db717d76503ece410eee98e8357116c7c6ef9b5 WHIRLPOOL f3fe1bb56b4483109fc0ca1e30486a2177456c14d0cbe43461f4a4c69bbd1518061937a39abcba856b145e272a2cfc9dccf33fa34dfb33699a27c0131a7a2372 +AUX lqfb.example.com.conf 624 SHA256 5364ee5828189771987603d182410e7c72e7267d76a297b20ddf94c29f534265 SHA512 2e55fa22f7217aad6a83b15ceb723872e9b506b0199d224ff8a08592ce884341354a40c9b2ae6d4f9fb62d6fff80d6c77954b0d1056f18b44831c3d5bb705d4c WHIRLPOOL 045c52fa68f237b432c2851cb336845410e828785ed83cf1e7faa20b621c47053927cedccaea85fd7ef63b68458274e4a4abf1116dde3a1004047514546ac5aa +AUX myconfig.lua 904 SHA256 a6d530e28847c016c7a2d00dd4b9940d1d0a5f6a1b6536fc899ab8338dc6e676 SHA512 acd21b4e4ae5a43ed8d31fdb13a7531f43df78897792987cf1eeb6b0f85fae30dd61ce96ac6fcc383f857093739ecfe92de84cdf21a8210218cd4cc4801769c6 WHIRLPOOL e4c88fba9007f8d220e0bce6989027121491c13c0cf2d1bdd9dc0962cb9c932727240a28c80efcc72a6a880e2a1500341f3583a55d9e427bb87d0dc070f46e62 +AUX postinstall-en.txt 2546 SHA256 ec21eebe2d95e50eb47193fdfbde1ec8927c521147d60e1ff75c6a7975f192f9 SHA512 480470eeff371bbdd87faaec8200ad14811c8d2ee279b5bc3125dda6bfdccce76056d66e2cf92f645a96c2aeda43e8e1d71e894531d63abf623b6f30e330a064 WHIRLPOOL bd12db413f1e50d1a2be681d1d18c2b0fff2ade1d3dbbf52399a5f768ad6c5a46bd535e7e00eb4941232b6135340d85558ea28244b76c7dbae793b0350d68425 +DIST liquid_feedback_frontend-italian-2.2.2.tar.gz 7496 SHA256 c894a8c9ca2d628e50ff9836ded017e37e68a87be50032ebb298e55556815a62 SHA512 e58e8efa1c68d35dd23e286eb5720516e2f9ccf21be9697376e3c263eea50bfc80d68497959d07c26482317d6787d53ac19be68c21d0a3b5b65cbe457fbbb322 WHIRLPOOL 0e85294ffa3de77fb6179aebf806aaa03ae505c60d8a6932ee391b3bfff30bed7ba9978c6143ff1a9de9a20413ecfee8eba150a97cbe781536cfee1d2812acd3 +DIST liquid_feedback_frontend-v2.2.2.tar.gz 356003 SHA256 83ca1f019078ddde8e034521545b95182a500d0c8a49cf6de4706eab81f29643 SHA512 0b145130814b9e6969189733ce9ccd523672e605f1cd8d4b2a8b931607ffe6b0110b142197ca50ec81326f381fdd4479c929b9eac0e92a5713749df72518962b WHIRLPOOL f08a9906d872dd322befeab769436d0a6387fa3676b698ea5736e8ea01633569fc46cfd97edae3e22c25e8caeab9599cc6594d106a73870c633e76d55c3b6892 +EBUILD liquid_feedback_frontend-2.2.2.ebuild 1591 SHA256 ae1698a0cebec20b709dc9b4d70d9257d163c1051442d02488c582792b262c04 SHA512 5e31244b635be228f4b8a8ab4cc361f1f82d2a2dcf15b3280a1f64c4b7fdfd1a2b84c8cdb7689c0c4e025c8edb1adf6619b9877d21a747a51b7b56ca2076c7a6 WHIRLPOOL e8318ae210cc612dbd7eb8048463dc84328464cd75348cf28a43538bbbd80beae96abe8d8391144fbf2e0c6d56c29d56bfd5523d9d6c10f55c2ac0cdeb9b3f7e +MISC ChangeLog 515 SHA256 b7f26d84fc96b847389f510b3716925d650c99d5a16c8364a041e23b51ec24cd SHA512 574c5d6c7ccd968a9857c5b35c7a8fd2e118627fbe0da9c11356f1791d72c208c0be1b13a8dd5ae10b2d3bbebd3b217c6f9e3ca3241c42a423154cd657c80373 WHIRLPOOL c61b45170f9ee032d7d2c6280eafaab5e51b79fc3a7eb93515da100bd903d2fce45e9b208359b92d67578b18b51030b3a8ecd3921afd75fc7dd570ea49863c4f +MISC metadata.xml 685 SHA256 18b88d993ae3f8b635194470ee60b4f5a6b37f501c852f66760cd59f6d9a4923 SHA512 a2a2a6f8e7af36a898edec6412ad7ae1669f686b43bb5ea19a829b8f15417b5ffb58374615165d6895ee87d608fb54efec495b91071074d75576a01055b27035 WHIRLPOOL aadce0a7b5301fd76231547a3a292183736c2f35209b71291ec1a072116636e996c386567af8ebcf98166422228f09bc11d2b6be1bbae25fbafd12d88c8500bf +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEUEAREIAAYFAlGkqHYACgkQIY77eQFFFC1yTwCYuKHEP9u7aUVcX+vTvRJ/grmI +bwCfSGcDIPWEm26J72O73gzRponLxFI= +=asPw +-----END PGP SIGNATURE----- diff --git a/www-apps/liquid_feedback_frontend/files/lqfb-apache.conf b/www-apps/liquid_feedback_frontend/files/lqfb-apache.conf new file mode 100644 index 000000000000..3f1924b6ae3a --- /dev/null +++ b/www-apps/liquid_feedback_frontend/files/lqfb-apache.conf @@ -0,0 +1,41 @@ +RewriteEngine on + +RewriteRule ^/$ /lf/ [R] + +RewriteRule ^/lf/static/(.*)$ /lf/static/$1 [L,PT] + +RewriteCond %{QUERY_STRING} (.*)? +RewriteRule ^/lf/$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&%1 [PT] + +RewriteCond %{QUERY_STRING} (.*)? +RewriteRule ^/lf/([^/]+)/$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&%1 [PT] + +RewriteCond %{QUERY_STRING} (.*)? +RewriteRule ^/lf/([^/]+)/([^/\.]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&%1 [PT] + +RewriteCond %{QUERY_STRING} (.*)? +RewriteRule ^/lf/([^/]+)/([^/\.]+)\.([^/]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&%1 [PT] + +RewriteCond %{QUERY_STRING} (.*)? +RewriteRule ^/lf/([^/]+)/([^/]+)/([^/\.]+)\.([^/]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=2&_webmcp_module=$1&_webmcp_view=$2&_webmcp_id=$3&_webmcp_suffix=$4&%1 [PT] + +Alias /lf/static /var/lib/liquid_feedback_frontend/static + +ScriptAlias /lf/ /usr/lib/webmcp/framework/cgi-bin/ + +<Directory "/var/lib/liquid_feedback_frontend/static"> + AllowOverride None + Order allow,deny + Allow from all +</Directory> + +<Directory "/usr/lib/webmcp/framework/cgi-bin"> + AllowOverride None + Options ExecCGI -MultiViews +SymLinksIfOwnerMatch + Order allow,deny + Allow from all +</Directory> + +<Location /lf> + SetEnv WEBMCP_APP_BASEPATH '/var/lib/liquid_feedback_frontend' +</Location> diff --git a/www-apps/liquid_feedback_frontend/files/lqfb.example.com.conf b/www-apps/liquid_feedback_frontend/files/lqfb.example.com.conf new file mode 100644 index 000000000000..149084138683 --- /dev/null +++ b/www-apps/liquid_feedback_frontend/files/lqfb.example.com.conf @@ -0,0 +1,24 @@ +<VirtualHost *:80> + ServerName lqfb.example.com + + RewriteEngine On + RewriteRule (.*) https://lqfb.example.com%{REQUEST_URI} +</VirtualHost> + +<VirtualHost *:443> + ServerName lqfb.example.com + + SSLEngine on + SSLProtocol all -SSLv2 + SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM + SSLCertificateFile /etc/ssl/apache2/wildcard/server.crt + SSLCertificateKeyFile /etc/ssl/apache2/wildcard/server.key + + include /usr/share/liquid_feedback_frontend/lqfb-apache.conf + + <Location /lf> + SetEnv WEBMCP_CONFIG_NAME 'myconfig' + </Location> + + ErrorLog /var/log/apache2/lqfb.example.com-error.log +</VirtualHost> diff --git a/www-apps/liquid_feedback_frontend/files/myconfig.lua b/www-apps/liquid_feedback_frontend/files/myconfig.lua new file mode 100644 index 000000000000..19c259cd7cbd --- /dev/null +++ b/www-apps/liquid_feedback_frontend/files/myconfig.lua @@ -0,0 +1,29 @@ +config.absolute_base_url = "https://lqfb.example.com/lf" +config.instance_name = "lf" +config.database = { engine='postgresql', dbname='liquid_feedback', user='liquid_feedback', password='xxx'} +config.enable_debug_trace = true + +execute.config("init") + +config.formatting_engine_executeables = { + rocketwiki= "rocketwiki-lqfb", + compat = "rocketwiki-lqfb-compat" +} + +-- Checkbox(es) the user has to accept while registering +-- +-- +---- +-------------------------------------------------------------------------- +config.use_terms_checkboxes = { + { + name = "terms_of_use_v1", + html = "I accept the terms of use.", + not_accepted_error = "You have to accept the terms of use to be able to regi ster." + }, +-- { +-- name = "extra_terms_of_use_v1", +-- html = "I accept the extra terms of use.", +-- not_accepted_error = "You have to accept the extra terms of use to be able to register." +-- } +} diff --git a/www-apps/liquid_feedback_frontend/files/postinstall-en.txt b/www-apps/liquid_feedback_frontend/files/postinstall-en.txt new file mode 100644 index 000000000000..688f693c48cb --- /dev/null +++ b/www-apps/liquid_feedback_frontend/files/postinstall-en.txt @@ -0,0 +1,52 @@ +0. DATABASE SETUP + +To use Liquid Feedback you have to follow these +simple steps, which have to be done as the postgres system user (or +which ever is the database superuser): + +$ createuser liquid_feedback +and answer the following +Shall the new role be a superuser? (y/n) n +Shall the new role be allowed to create databases? (y/n) y +Shall the new role be allowed to create more new roles? (y/n) n + +$ psql +postgres=# ALTER USER liquid_feedback WITH PASSWORD 'the_new_password'; + +$ createdb -U liquid_feedback liquid_feedback +$ psql -U liquid_feedback liquid_feedback +liquid_feedback=# \i ${MY_INSTALLDIR}/liquid_feedback_core/core.sql +liquid_feedback=# \i ${MY_INSTALLDIR}/liquid_feedback_core/init.sql +INSERT INTO system_setting (member_ttl) VALUES ('1 year'); +INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (false, '1 hour', 20, 6); +INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (false, '1 day', 80, 12); +INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (true, '1 hour', 200, 60); +INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (true, '1 day', 800, 120); +INSERT INTO policy (index, name, admission_time, discussion_time, verification_time, voting_time, issue_quorum_num, issue_quorum_den, initiative_quorum_num, initiative_quorum_den) VALUES (1, 'Default policy', '8 days', '15 days', '8 days', '15 days', 10, 100, 10, 100); + +cd /var/liquid_feedback_frontend +/usr/lib/webmcp/framework/bin/webmcp_shell myconfig +Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio +> member = Member:by_id(1) +> member:set_password("type-password-here") +> member:save() +> os.exit() + +Ensure that "lf_update dbname=liquid_feedback" and +"lf_update_suggestion_order dbname=liquid_feedback" are called +regularly! It is required to run these commands regularly +(i.e. every 5 minutes via cron) to update cached supporter counts, +to change the state of issues when neccessary, to calculate the +result of votings, etc. If you wish, copy the created lf_update +and lf_update_suggestion_order files to /usr/local/bin or a +similar directory. + +It is possible to run these two commands in parallel, if a setup +requires splitting the load to multiple processor cores. In other +cases it is recommended to run "lf_update" first, and then +"lf_update_suggestion_order". + +To create an export file, which is containing all but private data, +you may use the lf_export shell-script: +$ lf_export liquid_feedback export.sql.gz + diff --git a/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-2.2.2.ebuild b/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-2.2.2.ebuild new file mode 100644 index 000000000000..772104cd0dde --- /dev/null +++ b/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-2.2.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-2.2.2.ebuild,v 1.1 2013/05/28 12:51:56 tupone Exp $ + +EAPI=4 + +inherit eutils toolchain-funcs + +PN_F=${PN} +PV_F=v${PV} +MY_P=${PN}-v${PV} + +DESCRIPTION="Internet platforms for proposition development and decision making" +HOMEPAGE="http://www.public-software-group.org/liquid_feedback" +SRC_URI="http://www.public-software-group.org/pub/projects/liquid_feedback/frontend/v${PV}/${MY_P}.tar.gz +linguas_it? ( mirror://gentoo/${PN}-italian-${PV}.tar.gz )" + +LICENSE="HPND CC-BY-2.5" +SLOT="0" +KEYWORDS="~amd64" +IUSE="linguas_de linguas_el linguas_en linguas_eo linguas_it" + +RDEPEND="" +DEPEND="www-apps/rocketwiki-lqfb + ${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare () { + for lang in zh-Hans zh-TW ; do + rm -f locale/help/*.${lang}.txt + done + for lang in de el en eo it ; do + if ! use linguas_${lang}; then + rm -f locale/help/*.${lang}.txt + fi + done +} + +src_compile() { + emake -C locale +} + +src_install() { + dodoc README + dodoc "${FILESDIR}"/lqfb.example.com.conf + dodoc "${FILESDIR}"/postinstall-en.txt + + insinto /var/lib/${PN} + doins -r app db env model static tmp utils + insinto /var/lib/${PN}/locale + doins locale/*.lua + insinto /var/lib/${PN}/locale/help + doins locale/help/*html + + insinto /etc/${PN} + doins "${FILESDIR}"/myconfig.lua config/* + dosym /etc/${PN} /var/lib/${PN}/config + + insinto /usr/share/${PN} + doins "${FILESDIR}"/lqfb-apache.conf + + fowners apache:apache /var/lib/${PN}/tmp +} diff --git a/www-apps/liquid_feedback_frontend/metadata.xml b/www-apps/liquid_feedback_frontend/metadata.xml new file mode 100644 index 000000000000..1971333113c6 --- /dev/null +++ b/www-apps/liquid_feedback_frontend/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>tupone@gentoo.org</email> +<name>Alfredo Tupone</name> +</maintainer> +<longdescription lang="en"> +LiquidFeedback is an open-source software, powering internet platforms for proposition development and decision making. +LiquidFeedback is an independent open source project published under MIT license by the Public Software Group of Berlin, Germany. +The developers of LiquidFeedback have joined together in the Interaktive Demokratie association to promote the use of electronic media for democratic processes. +</longdescription> +</pkgmetadata> |