Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/liquid_feedback_frontend/files/, www-apps/liquid_feedback_frontend/
Date: Thu, 22 Apr 2021 06:22:37
Message-Id: 1619072541.890d14659f3f8e36c6d03d948d3e6f2f109b27bf.tupone@gentoo
1 commit: 890d14659f3f8e36c6d03d948d3e6f2f109b27bf
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 22 06:22:21 2021 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 22 06:22:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=890d1465
7
8 www-apps/liquid_feedback_frontend: remove old version
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 www-apps/liquid_feedback_frontend/Manifest | 3 -
14 .../files/lqfb-apache.conf | 41 -------------
15 .../files/lqfb.example.com.conf | 24 --------
16 .../liquid_feedback_frontend/files/myconfig.lua | 29 ---------
17 .../files/postinstall-en.txt | 52 ----------------
18 .../liquid_feedback_frontend-2.2.7.ebuild | 69 ----------------------
19 .../liquid_feedback_frontend-3.0.6.ebuild | 46 ---------------
20 7 files changed, 264 deletions(-)
21
22 diff --git a/www-apps/liquid_feedback_frontend/Manifest b/www-apps/liquid_feedback_frontend/Manifest
23 index 862e9f0e6bc..86e96754256 100644
24 --- a/www-apps/liquid_feedback_frontend/Manifest
25 +++ b/www-apps/liquid_feedback_frontend/Manifest
26 @@ -1,4 +1 @@
27 -DIST liquid_feedback_frontend-italian-2.2.7.tar.gz 7670 BLAKE2B 8131613849efdea1eaa1eda4f5620d7418d6b32c0f57b0aebb07c7dbe17afda2eee814733eada0656a159a93dda97a5a21e17db71baf3ca84e708caf502a4247 SHA512 63cfcb4a565fa570777c2f3d2dcec2e98f16415ad9f8a6d62076f4e2cdf0ddae95610688b6b7751a865344acb7b65f78e7cb1ae4103b24dacf63e3e346405918
28 -DIST liquid_feedback_frontend-v2.2.7.tar.gz 362509 BLAKE2B 980e261ac9bddfb0f87757457fe58e93481e6d56dc0199b9fc72308e094aec21730f6d901f2e5c1b18a7f5993d1704cc91f64870c16c6215cbbf806095aabe12 SHA512 aa8c99e53c329dbf4659dabe617938d63b2aa42bab99ff4e200d4e15be8ed8ef5f64a71293fa796adde47525d1a76ece3b04cff982474eb2307a3fcd4f269d78
29 -DIST liquid_feedback_frontend-v3.0.6.tar.gz 497521 BLAKE2B a9e7e7944b418a707a459093b41798818644e2d8aed47a48808c2bf7800acdcde61a04e07483dbb387264df2236b1b02f2410cb34f62bdec6244405db0cf3474 SHA512 d283d277cf6836c53398480c566158481fc65400e128bc4817975fd39c41e6e56b17f7f789a74b1b2a89f84aaf315101e9aa86a474c1817362443d03610fe6e9
30 DIST liquid_feedback_frontend-v3.2.1.tar.gz 499832 BLAKE2B 6d9ead85fa7e47c04c4169b85ffa119737a798d94b236dbd7d11ae4c5d38cc072a71a45b52e250effa62dac65c3ebcd723061e395b05d9f31d0bb01f8e82f9b9 SHA512 1b5e5fc390a2a705c99145ea36556f9b14de4c052c4673e2c7f12148efe485feaf1a91781c016015c41465559204e906e3cad78e37f41289abd5ca27c4257bb3
31
32 diff --git a/www-apps/liquid_feedback_frontend/files/lqfb-apache.conf b/www-apps/liquid_feedback_frontend/files/lqfb-apache.conf
33 deleted file mode 100644
34 index 3f1924b6ae3..00000000000
35 --- a/www-apps/liquid_feedback_frontend/files/lqfb-apache.conf
36 +++ /dev/null
37 @@ -1,41 +0,0 @@
38 -RewriteEngine on
39 -
40 -RewriteRule ^/$ /lf/ [R]
41 -
42 -RewriteRule ^/lf/static/(.*)$ /lf/static/$1 [L,PT]
43 -
44 -RewriteCond %{QUERY_STRING} (.*)?
45 -RewriteRule ^/lf/$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=0&_webmcp_module=index&_webmcp_view=index&%1 [PT]
46 -
47 -RewriteCond %{QUERY_STRING} (.*)?
48 -RewriteRule ^/lf/([^/]+)/$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=index&%1 [PT]
49 -
50 -RewriteCond %{QUERY_STRING} (.*)?
51 -RewriteRule ^/lf/([^/]+)/([^/\.]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_action=$2&%1 [PT]
52 -
53 -RewriteCond %{QUERY_STRING} (.*)?
54 -RewriteRule ^/lf/([^/]+)/([^/\.]+)\.([^/]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=1&_webmcp_module=$1&_webmcp_view=$2&_webmcp_suffix=$3&%1 [PT]
55 -
56 -RewriteCond %{QUERY_STRING} (.*)?
57 -RewriteRule ^/lf/([^/]+)/([^/]+)/([^/\.]+)\.([^/]+)$ /lf/webmcp-wrapper.lua?_webmcp_urldepth=2&_webmcp_module=$1&_webmcp_view=$2&_webmcp_id=$3&_webmcp_suffix=$4&%1 [PT]
58 -
59 -Alias /lf/static /var/lib/liquid_feedback_frontend/static
60 -
61 -ScriptAlias /lf/ /usr/lib/webmcp/framework/cgi-bin/
62 -
63 -<Directory "/var/lib/liquid_feedback_frontend/static">
64 - AllowOverride None
65 - Order allow,deny
66 - Allow from all
67 -</Directory>
68 -
69 -<Directory "/usr/lib/webmcp/framework/cgi-bin">
70 - AllowOverride None
71 - Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
72 - Order allow,deny
73 - Allow from all
74 -</Directory>
75 -
76 -<Location /lf>
77 - SetEnv WEBMCP_APP_BASEPATH '/var/lib/liquid_feedback_frontend'
78 -</Location>
79
80 diff --git a/www-apps/liquid_feedback_frontend/files/lqfb.example.com.conf b/www-apps/liquid_feedback_frontend/files/lqfb.example.com.conf
81 deleted file mode 100644
82 index 14908413868..00000000000
83 --- a/www-apps/liquid_feedback_frontend/files/lqfb.example.com.conf
84 +++ /dev/null
85 @@ -1,24 +0,0 @@
86 -<VirtualHost *:80>
87 - ServerName lqfb.example.com
88 -
89 - RewriteEngine On
90 - RewriteRule (.*) https://lqfb.example.com%{REQUEST_URI}
91 -</VirtualHost>
92 -
93 -<VirtualHost *:443>
94 - ServerName lqfb.example.com
95 -
96 - SSLEngine on
97 - SSLProtocol all -SSLv2
98 - SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
99 - SSLCertificateFile /etc/ssl/apache2/wildcard/server.crt
100 - SSLCertificateKeyFile /etc/ssl/apache2/wildcard/server.key
101 -
102 - include /usr/share/liquid_feedback_frontend/lqfb-apache.conf
103 -
104 - <Location /lf>
105 - SetEnv WEBMCP_CONFIG_NAME 'myconfig'
106 - </Location>
107 -
108 - ErrorLog /var/log/apache2/lqfb.example.com-error.log
109 -</VirtualHost>
110
111 diff --git a/www-apps/liquid_feedback_frontend/files/myconfig.lua b/www-apps/liquid_feedback_frontend/files/myconfig.lua
112 deleted file mode 100644
113 index 19c259cd7cb..00000000000
114 --- a/www-apps/liquid_feedback_frontend/files/myconfig.lua
115 +++ /dev/null
116 @@ -1,29 +0,0 @@
117 -config.absolute_base_url = "https://lqfb.example.com/lf"
118 -config.instance_name = "lf"
119 -config.database = { engine='postgresql', dbname='liquid_feedback', user='liquid_feedback', password='xxx'}
120 -config.enable_debug_trace = true
121 -
122 -execute.config("init")
123 -
124 -config.formatting_engine_executeables = {
125 - rocketwiki= "rocketwiki-lqfb",
126 - compat = "rocketwiki-lqfb-compat"
127 -}
128 -
129 --- Checkbox(es) the user has to accept while registering
130 ---
131 ---
132 -----
133 ---------------------------------------------------------------------------
134 -config.use_terms_checkboxes = {
135 - {
136 - name = "terms_of_use_v1",
137 - html = "I accept the terms of use.",
138 - not_accepted_error = "You have to accept the terms of use to be able to regi ster."
139 - },
140 --- {
141 --- name = "extra_terms_of_use_v1",
142 --- html = "I accept the extra terms of use.",
143 --- not_accepted_error = "You have to accept the extra terms of use to be able to register."
144 --- }
145 -}
146
147 diff --git a/www-apps/liquid_feedback_frontend/files/postinstall-en.txt b/www-apps/liquid_feedback_frontend/files/postinstall-en.txt
148 deleted file mode 100644
149 index 80758792d81..00000000000
150 --- a/www-apps/liquid_feedback_frontend/files/postinstall-en.txt
151 +++ /dev/null
152 @@ -1,52 +0,0 @@
153 -0. DATABASE SETUP
154 -
155 -To use Liquid Feedback you have to follow these
156 -simple steps, which have to be done as the postgres system user (or
157 -which ever is the database superuser):
158 -
159 -$ createuser liquid_feedback
160 -and answer the following
161 -Shall the new role be a superuser? (y/n) n
162 -Shall the new role be allowed to create databases? (y/n) y
163 -Shall the new role be allowed to create more new roles? (y/n) n
164 -
165 -$ psql
166 -postgres=# ALTER USER liquid_feedback WITH PASSWORD 'the_new_password';
167 -
168 -$ createdb -U liquid_feedback liquid_feedback
169 -$ psql -U liquid_feedback liquid_feedback
170 -liquid_feedback=# \i ${MY_INSTALLDIR}/liquid_feedback_core/core.sql
171 -liquid_feedback=# \i ${MY_INSTALLDIR}/liquid_feedback_core/init.sql
172 -INSERT INTO system_setting (member_ttl) VALUES ('1 year');
173 -INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (false, '1 hour', 20, 6);
174 -INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (false, '1 day', 80, 12);
175 -INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (true, '1 hour', 200, 60);
176 -INSERT INTO contingent (polling, time_frame, text_entry_limit, initiative_limit) VALUES (true, '1 day', 800, 120);
177 -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);
178 -
179 -cd /var/lib/liquid_feedback_frontend
180 -/usr/lib/webmcp/framework/bin/webmcp_shell myconfig
181 -Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
182 -> member = Member:by_id(1)
183 -> member:set_password("type-password-here")
184 -> member:save()
185 -> os.exit()
186 -
187 -Ensure that "lf_update dbname=liquid_feedback" and
188 -"lf_update_suggestion_order dbname=liquid_feedback" are called
189 -regularly! It is required to run these commands regularly
190 -(i.e. every 5 minutes via cron) to update cached supporter counts,
191 -to change the state of issues when neccessary, to calculate the
192 -result of votings, etc. If you wish, copy the created lf_update
193 -and lf_update_suggestion_order files to /usr/local/bin or a
194 -similar directory.
195 -
196 -It is possible to run these two commands in parallel, if a setup
197 -requires splitting the load to multiple processor cores. In other
198 -cases it is recommended to run "lf_update" first, and then
199 -"lf_update_suggestion_order".
200 -
201 -To create an export file, which is containing all but private data,
202 -you may use the lf_export shell-script:
203 -$ lf_export liquid_feedback export.sql.gz
204 -
205
206 diff --git a/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-2.2.7.ebuild b/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-2.2.7.ebuild
207 deleted file mode 100644
208 index a7499d4ea06..00000000000
209 --- a/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-2.2.7.ebuild
210 +++ /dev/null
211 @@ -1,69 +0,0 @@
212 -# Copyright 1999-2021 Gentoo Authors
213 -# Distributed under the terms of the GNU General Public License v2
214 -
215 -EAPI=7
216 -
217 -inherit estack toolchain-funcs
218 -
219 -PN_F=${PN}
220 -PV_F=v${PV}
221 -MY_P=${PN}-v${PV}
222 -
223 -DESCRIPTION="Internet platforms for proposition development and decision making"
224 -HOMEPAGE="https://www.public-software-group.org/liquid_feedback"
225 -SRC_URI="https://www.public-software-group.org/pub/projects/liquid_feedback/frontend/v${PV}/${MY_P}.tar.gz
226 -l10n_it? ( mirror://gentoo/${PN}-italian-${PV}.tar.gz )"
227 -
228 -LICENSE="HPND CC-BY-2.5"
229 -SLOT="0"
230 -KEYWORDS="~amd64"
231 -IUSE="l10n_de l10n_el l10n_en l10n_eo l10n_it"
232 -
233 -RDEPEND=">=www-apps/liquid_feedback_core-2.2.6"
234 -DEPEND="www-apps/rocketwiki-lqfb
235 - www-servers/apache
236 - ${RDEPEND}"
237 -
238 -S=${WORKDIR}/${MY_P}
239 -
240 -src_prepare() {
241 - for lang in zh-Hans zh-TW ; do
242 - rm -f locale/help/*.${lang}.txt
243 - done
244 - for lang in de el en eo it ; do
245 - if ! use l10n_${lang}; then
246 - rm -f locale/help/*.${lang}.txt
247 - fi
248 - done
249 - default
250 -}
251 -
252 -src_compile() {
253 - emake -C locale
254 -}
255 -
256 -src_install() {
257 - dodoc README
258 - dodoc "${FILESDIR}"/lqfb.example.com.conf
259 - dodoc "${FILESDIR}"/postinstall-en.txt
260 -
261 - insinto /var/lib/${PN}
262 - doins -r app db env model static tmp utils
263 - insinto /var/lib/${PN}/locale
264 - doins locale/*.lua
265 - insinto /var/lib/${PN}/locale/help
266 - eshopts_push -s nullglob
267 - for helpFile in locale/help/*.html ; do
268 - doins $helpFile
269 - done
270 - eshopts_pop
271 -
272 - insinto /etc/${PN}
273 - doins "${FILESDIR}"/myconfig.lua config/*
274 - dosym ../../../etc/${PN} /var/lib/${PN}/config
275 -
276 - insinto /usr/share/${PN}
277 - doins "${FILESDIR}"/lqfb-apache.conf
278 -
279 - fowners apache:apache /var/lib/${PN}/tmp
280 -}
281
282 diff --git a/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-3.0.6.ebuild b/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-3.0.6.ebuild
283 deleted file mode 100644
284 index 657b3f1fabe..00000000000
285 --- a/www-apps/liquid_feedback_frontend/liquid_feedback_frontend-3.0.6.ebuild
286 +++ /dev/null
287 @@ -1,46 +0,0 @@
288 -# Copyright 1999-2021 Gentoo Authors
289 -# Distributed under the terms of the GNU General Public License v2
290 -
291 -EAPI=7
292 -
293 -inherit toolchain-funcs
294 -
295 -PN_F=${PN}
296 -PV_F=v${PV}
297 -MY_P=${PN}-v${PV}
298 -
299 -DESCRIPTION="Internet platforms for proposition development and decision making"
300 -HOMEPAGE="https://www.public-software-group.org/liquid_feedback"
301 -SRC_URI="https://www.public-software-group.org/pub/projects/liquid_feedback/frontend/v${PV}/${MY_P}.tar.gz"
302 -
303 -LICENSE="HPND CC-BY-2.5"
304 -SLOT="0"
305 -KEYWORDS="~amd64"
306 -IUSE=""
307 -
308 -RDEPEND=">=www-apps/liquid_feedback_core-3.0.4"
309 -DEPEND="www-apps/rocketwiki-lqfb
310 - www-servers/apache
311 - >=www-apps/webmcp-1.2.6
312 - ${RDEPEND}"
313 -
314 -S=${WORKDIR}/${MY_P}
315 -
316 -src_install() {
317 - dodoc "${FILESDIR}"/lqfb.example.com.conf
318 - dodoc "${FILESDIR}"/postinstall-en.txt
319 -
320 - insinto /var/lib/${PN}
321 - doins -r app db env model static tmp
322 - insinto /var/lib/${PN}/locale
323 - doins locale/*.lua
324 -
325 - insinto /etc/${PN}
326 - doins "${FILESDIR}"/myconfig.lua config/*
327 - dosym ../../../etc/${PN} /var/lib/${PN}/config
328 -
329 - insinto /usr/share/${PN}
330 - doins "${FILESDIR}"/lqfb-apache.conf
331 -
332 - fowners apache:apache /var/lib/${PN}/tmp
333 -}