* [gentoo-commits] repo/gentoo:master commit in: www-apps/liquid_feedback_core/files/, www-apps/liquid_feedback_core/
@ 2021-04-10 18:39 Alfredo Tupone
0 siblings, 0 replies; 4+ messages in thread
From: Alfredo Tupone @ 2021-04-10 18:39 UTC (permalink / raw
To: gentoo-commits
commit: 7a6e7bdea0fbadbb6a05609271eca7d8a680136e
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 10 18:38:56 2021 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Apr 10 18:38:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a6e7bde
www-apps/liquid_feedback_core: bump to 3.2.2
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
www-apps/liquid_feedback_core/Manifest | 1 +
.../files/liquid_feedback_core-3.2.2-gentoo.patch | 51 ++++++++++++++++++++++
.../liquid_feedback_core/files/postinstall-en.txt | 17 +++-----
.../liquid_feedback_core-3.2.2.ebuild | 42 ++++++++++++++++++
4 files changed, 101 insertions(+), 10 deletions(-)
diff --git a/www-apps/liquid_feedback_core/Manifest b/www-apps/liquid_feedback_core/Manifest
index 39220e88882..11e79310b42 100644
--- a/www-apps/liquid_feedback_core/Manifest
+++ b/www-apps/liquid_feedback_core/Manifest
@@ -1,2 +1,3 @@
DIST liquid_feedback_core-v2.2.6.tar.gz 127440 BLAKE2B d62ecd8c9947259a7213f92ecaf1491a5e858ff2fdaff5e020fc4ec0c433297d8a7701a812de200130a1ed7f08ded1d9f31d42de7fffa2981361efee0e31646c SHA512 6f680398a7d2e529e642dc94ba16bc1b33d25459ddbf629c06387391ef13c0e212a108cc337cd2bc29505f4f6436b6e92994e63eaa09fe1c07733d2821d9b7f1
DIST liquid_feedback_core-v3.0.4.tar.gz 142983 BLAKE2B 05e8c1630a8fa3932b4fc291843dd0c45e2333940394a0632309c9041dc850cc894a6cb54fb840329f67812ebcde5d540c338cf27a88ad428aaa066329725409 SHA512 baea8a61c94e640557d0169b6171247ff0303ff1a9c8b587c6769e367cf56805c1a1e660aadf7178d984182be6dde326770240b3ffeda42139c4a94445a2bbf8
+DIST liquid_feedback_core-v3.2.2.tar.gz 162505 BLAKE2B dc6e9d0b8d1e596150520e068e7743a6e839f7e6ffc3c605d090973a179652858c037c4f12c75774d158adfc60484d1ac321350fa7f8d16329043051ae2cd98c SHA512 60a3548008235822e83c6614e990d87200b342d8e5c5fd1ca1f6092bc48d918f9dbfcc130039f4acf2956a19100cc96187ac1c7f5174f7e69a45f651643ab1d9
diff --git a/www-apps/liquid_feedback_core/files/liquid_feedback_core-3.2.2-gentoo.patch b/www-apps/liquid_feedback_core/files/liquid_feedback_core-3.2.2-gentoo.patch
new file mode 100644
index 00000000000..541464723f8
--- /dev/null
+++ b/www-apps/liquid_feedback_core/files/liquid_feedback_core-3.2.2-gentoo.patch
@@ -0,0 +1,51 @@
+--- a/lf_update_issue_order.c 2021-04-10 18:32:19.101947834 +0200
++++ b/lf_update_issue_order.c 2021-04-10 18:36:07.377117090 +0200
+@@ -1,3 +1,5 @@
++#define _GNU_SOURCE
++
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -417,7 +419,7 @@
+ logging = 1;
+ }
+ for (i=argb; i<argc; i++) len += strlen(argv[i]) + 1;
+- conninfo = malloc(len * sizeof(char));
++ conninfo = malloc(len * sizeof(char) + 1);
+ if (!conninfo) {
+ fprintf(stderr, "Error: Could not allocate memory for conninfo string.\n");
+ abort();
+--- a/lf_update_suggestion_order.c 2021-04-10 18:38:31.138743181 +0200
++++ b/lf_update_suggestion_order.c 2021-04-10 18:39:29.851786017 +0200
+@@ -1,3 +1,5 @@
++#define _GNU_SOURCE
++
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -474,7 +476,7 @@
+ logging = 1;
+ }
+ for (i=argb; i<argc; i++) len += strlen(argv[i]) + 1;
+- conninfo = malloc(len * sizeof(char));
++ conninfo = malloc(len * sizeof(char) + 1);
+ if (!conninfo) {
+ fprintf(stderr, "Error: Could not allocate memory for conninfo string.\n");
+ abort();
+--- a/lf_update.c 2021-04-10 18:40:48.036510216 +0200
++++ b/lf_update.c 2021-04-10 18:55:46.869758233 +0200
+@@ -1,3 +1,5 @@
++#define _GNU_SOURCE
++
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -51,7 +53,7 @@
+ {
+ size_t len = 0;
+ for (i=1; i<argc; i++) len += strlen(argv[i]) + 1;
+- conninfo = malloc(len * sizeof(char));
++ conninfo = malloc(len * sizeof(char) + 1);
+ if (!conninfo) {
+ fprintf(stderr, "Error: Could not allocate memory for conninfo string\n");
+ return 1;
diff --git a/www-apps/liquid_feedback_core/files/postinstall-en.txt b/www-apps/liquid_feedback_core/files/postinstall-en.txt
index 128c7b20ee7..e1eb550eeea 100644
--- a/www-apps/liquid_feedback_core/files/postinstall-en.txt
+++ b/www-apps/liquid_feedback_core/files/postinstall-en.txt
@@ -1,25 +1,22 @@
-Merge info from README file with these.
-
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
+$ createuser -d liquid_feedback
$ 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 /usr/share/liquid_feedback_code/core.sql
-liquid_feedback=# \i /usr/share/liquid_feedback_code/init.sql
+liquid_feedback=# \i /usr/share/liquid_feedback_core/core.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);
+
+and Create an invite code for an admin user:
+
+$ psql -U liquid_feedback liquid_feedback
+liquid_feedback=# INSERT INTO member (invite_code, admin) VALUES ('sesam', true);
diff --git a/www-apps/liquid_feedback_core/liquid_feedback_core-3.2.2.ebuild b/www-apps/liquid_feedback_core/liquid_feedback_core-3.2.2.ebuild
new file mode 100644
index 00000000000..13d55279376
--- /dev/null
+++ b/www-apps/liquid_feedback_core/liquid_feedback_core-3.2.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+MY_P=${PN}-v${PV}
+
+DESCRIPTION="Internet platforms for proposition development and decision making"
+HOMEPAGE="https://www.public-software-group.org/liquid_feedback"
+SRC_URI="https://www.public-software-group.org/pub/projects/liquid_feedback/backend/v${PV}/${MY_P}.tar.gz"
+
+LICENSE="HPND CC-BY-2.5"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-db/postgresql:="
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.0.4-gentoo.patch
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ CPPFLAGS="-I $(pg_config --includedir)" \
+ LDFLAGS="${LDFLAGS} -L $(pg_config --libdir)"
+}
+
+src_install() {
+ dobin lf_update lf_update_suggestion_order lf_export
+ insinto /usr/share/${PN}
+ doins -r {core,init,demo,test}.sql update
+ dodoc README "${FILESDIR}"/postinstall-en.txt
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: www-apps/liquid_feedback_core/files/, www-apps/liquid_feedback_core/
@ 2024-01-25 11:04 Alfredo Tupone
0 siblings, 0 replies; 4+ messages in thread
From: Alfredo Tupone @ 2024-01-25 11:04 UTC (permalink / raw
To: gentoo-commits
commit: 708167085bbacc7172b0045364883e958f9cef4a
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 25 11:03:57 2024 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Jan 25 11:03:57 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70816708
www-apps/liquid_feedback_core: add 4.0.0
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
www-apps/liquid_feedback_core/Manifest | 1 +
.../files/liquid_feedback_core-4.0.0-gentoo.patch | 51 ++++++++++++++++++++++
.../liquid_feedback_core-4.0.0.ebuild | 43 ++++++++++++++++++
3 files changed, 95 insertions(+)
diff --git a/www-apps/liquid_feedback_core/Manifest b/www-apps/liquid_feedback_core/Manifest
index 11e79310b42a..9da9f60aed94 100644
--- a/www-apps/liquid_feedback_core/Manifest
+++ b/www-apps/liquid_feedback_core/Manifest
@@ -1,3 +1,4 @@
DIST liquid_feedback_core-v2.2.6.tar.gz 127440 BLAKE2B d62ecd8c9947259a7213f92ecaf1491a5e858ff2fdaff5e020fc4ec0c433297d8a7701a812de200130a1ed7f08ded1d9f31d42de7fffa2981361efee0e31646c SHA512 6f680398a7d2e529e642dc94ba16bc1b33d25459ddbf629c06387391ef13c0e212a108cc337cd2bc29505f4f6436b6e92994e63eaa09fe1c07733d2821d9b7f1
DIST liquid_feedback_core-v3.0.4.tar.gz 142983 BLAKE2B 05e8c1630a8fa3932b4fc291843dd0c45e2333940394a0632309c9041dc850cc894a6cb54fb840329f67812ebcde5d540c338cf27a88ad428aaa066329725409 SHA512 baea8a61c94e640557d0169b6171247ff0303ff1a9c8b587c6769e367cf56805c1a1e660aadf7178d984182be6dde326770240b3ffeda42139c4a94445a2bbf8
DIST liquid_feedback_core-v3.2.2.tar.gz 162505 BLAKE2B dc6e9d0b8d1e596150520e068e7743a6e839f7e6ffc3c605d090973a179652858c037c4f12c75774d158adfc60484d1ac321350fa7f8d16329043051ae2cd98c SHA512 60a3548008235822e83c6614e990d87200b342d8e5c5fd1ca1f6092bc48d918f9dbfcc130039f4acf2956a19100cc96187ac1c7f5174f7e69a45f651643ab1d9
+DIST liquid_feedback_core-v4.0.0.tar.gz 194817 BLAKE2B d33c4f60371050664e19425b3e344435c2b35d7e48fa682b9857d0bbc22032e59f4811ce41b8cad2f8d325e26a9adbd573bf205289b6f419c32829392014cbdf SHA512 499a60d4d71e85357ffe45fe0cbcd13bdf131f80c2b24e320b06646e56c7cd422e44306132d7fbe3dc22bf1be9af208ef9bfa143142cd2aa0880382dfe874aa4
diff --git a/www-apps/liquid_feedback_core/files/liquid_feedback_core-4.0.0-gentoo.patch b/www-apps/liquid_feedback_core/files/liquid_feedback_core-4.0.0-gentoo.patch
new file mode 100644
index 000000000000..cb57a08870ec
--- /dev/null
+++ b/www-apps/liquid_feedback_core/files/liquid_feedback_core-4.0.0-gentoo.patch
@@ -0,0 +1,51 @@
+--- a/lf_update_issue_order.c 2021-04-10 18:32:19.101947834 +0200
++++ b/lf_update_issue_order.c 2021-04-10 18:36:07.377117090 +0200
+@@ -1,3 +1,5 @@
++#define _GNU_SOURCE
++
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -417,7 +419,7 @@
+ logging = 1;
+ }
+ for (i=argb; i<argc; i++) len += strlen(argv[i]) + 1;
+- conninfo = malloc(len * sizeof(char));
++ conninfo = malloc(len * sizeof(char) + 1);
+ if (!conninfo) {
+ fprintf(stderr, "Error: Could not allocate memory for conninfo string.\n");
+ abort();
+--- a/lf_update_suggestion_order.c 2021-04-10 18:38:31.138743181 +0200
++++ b/lf_update_suggestion_order.c 2021-04-10 18:39:29.851786017 +0200
+@@ -1,3 +1,5 @@
++#define _GNU_SOURCE
++
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -474,7 +476,7 @@
+ logging = 1;
+ }
+ for (i=argb; i<argc; i++) len += strlen(argv[i]) + 1;
+- conninfo = malloc(len * sizeof(char));
++ conninfo = malloc(len * sizeof(char) + 1);
+ if (!conninfo) {
+ fprintf(stderr, "Error: Could not allocate memory for conninfo string.\n");
+ abort();
+--- a/lf_update.c 2021-04-10 18:40:48.036510216 +0200
++++ b/lf_update.c 2021-04-10 18:55:46.869758233 +0200
+@@ -1,3 +1,5 @@
++#define _GNU_SOURCE
++
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -78,7 +78,7 @@
+ }
+ len += seglen;
+ }
+- conninfo = malloc(len * sizeof(char));
++ conninfo = malloc(len * sizeof(char) + 1);
+ if (!conninfo) {
+ fprintf(stderr, "Error: Could not allocate memory for conninfo string\n");
+ return 1;
diff --git a/www-apps/liquid_feedback_core/liquid_feedback_core-4.0.0.ebuild b/www-apps/liquid_feedback_core/liquid_feedback_core-4.0.0.ebuild
new file mode 100644
index 000000000000..d80161e4dd89
--- /dev/null
+++ b/www-apps/liquid_feedback_core/liquid_feedback_core-4.0.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+MY_P=${PN}-v${PV}
+
+DESCRIPTION="Internet platforms for proposition development and decision making"
+HOMEPAGE="https://www.public-software-group.org/liquid_feedback"
+SRC_URI="https://www.public-software-group.org/pub/projects/liquid_feedback/backend/v${PV}/${MY_P}.tar.gz
+ https://dev.gentoo.org/~tupone/distfiles/${MY_P}.tar.gz"
+
+LICENSE="HPND CC-BY-2.5"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-db/postgresql:="
+RDEPEND="${DEPEND}
+ dev-db/pgLatLon"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.0.4-gentoo.patch
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ CPPFLAGS="-I $(pg_config --includedir)" \
+ LDFLAGS="${LDFLAGS} -L $(pg_config --libdir)"
+}
+
+src_install() {
+ dobin lf_update lf_update_suggestion_order lf_export
+ insinto /usr/share/${PN}
+ doins -r {core,init,demo,test}.sql update
+ dodoc README "${FILESDIR}"/postinstall-en.txt
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: www-apps/liquid_feedback_core/files/, www-apps/liquid_feedback_core/
@ 2024-02-16 17:40 Alfredo Tupone
0 siblings, 0 replies; 4+ messages in thread
From: Alfredo Tupone @ 2024-02-16 17:40 UTC (permalink / raw
To: gentoo-commits
commit: c2aaddd0d81adb6a8697ed159b3ed1c6f1693ba3
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 16 17:32:04 2024 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Feb 16 17:36:42 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2aaddd0
www-apps/liquid_feedback_core: add 4.2.2, drop 4.0.0
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
www-apps/liquid_feedback_core/Manifest | 2 +-
www-apps/liquid_feedback_core/files/lf_update.sh | 8 ++++++
.../files/liquid_feedback_core.confd | 2 ++
.../files/liquid_feedback_core.initd | 10 +++++++
.../files/postinstall-en-4.txt | 32 ++++++++++++++++++++++
....0.ebuild => liquid_feedback_core-4.2.2.ebuild} | 16 +++++++----
6 files changed, 64 insertions(+), 6 deletions(-)
diff --git a/www-apps/liquid_feedback_core/Manifest b/www-apps/liquid_feedback_core/Manifest
index 9da9f60aed94..c6a235edc4b7 100644
--- a/www-apps/liquid_feedback_core/Manifest
+++ b/www-apps/liquid_feedback_core/Manifest
@@ -1,4 +1,4 @@
DIST liquid_feedback_core-v2.2.6.tar.gz 127440 BLAKE2B d62ecd8c9947259a7213f92ecaf1491a5e858ff2fdaff5e020fc4ec0c433297d8a7701a812de200130a1ed7f08ded1d9f31d42de7fffa2981361efee0e31646c SHA512 6f680398a7d2e529e642dc94ba16bc1b33d25459ddbf629c06387391ef13c0e212a108cc337cd2bc29505f4f6436b6e92994e63eaa09fe1c07733d2821d9b7f1
DIST liquid_feedback_core-v3.0.4.tar.gz 142983 BLAKE2B 05e8c1630a8fa3932b4fc291843dd0c45e2333940394a0632309c9041dc850cc894a6cb54fb840329f67812ebcde5d540c338cf27a88ad428aaa066329725409 SHA512 baea8a61c94e640557d0169b6171247ff0303ff1a9c8b587c6769e367cf56805c1a1e660aadf7178d984182be6dde326770240b3ffeda42139c4a94445a2bbf8
DIST liquid_feedback_core-v3.2.2.tar.gz 162505 BLAKE2B dc6e9d0b8d1e596150520e068e7743a6e839f7e6ffc3c605d090973a179652858c037c4f12c75774d158adfc60484d1ac321350fa7f8d16329043051ae2cd98c SHA512 60a3548008235822e83c6614e990d87200b342d8e5c5fd1ca1f6092bc48d918f9dbfcc130039f4acf2956a19100cc96187ac1c7f5174f7e69a45f651643ab1d9
-DIST liquid_feedback_core-v4.0.0.tar.gz 194817 BLAKE2B d33c4f60371050664e19425b3e344435c2b35d7e48fa682b9857d0bbc22032e59f4811ce41b8cad2f8d325e26a9adbd573bf205289b6f419c32829392014cbdf SHA512 499a60d4d71e85357ffe45fe0cbcd13bdf131f80c2b24e320b06646e56c7cd422e44306132d7fbe3dc22bf1be9af208ef9bfa143142cd2aa0880382dfe874aa4
+DIST liquid_feedback_core-v4.2.2.tar.gz 226473 BLAKE2B 4df49d1e1734c72ac439f772dfa1bf2b10d6cfb739f323735c39b2ed1c28ae19a26a00ad5fb3c55ead74e8d35773bbb39112936f5a4bf3321cd5f1847f7721a2 SHA512 f2542c3c38aa22cd7b8de4a47afb51e851f7f8e4b791d7bf90648e2e8abc6f71f687386f6aa028717c4ef042f3e3366b5458933e43dcf51476b3514f858eb20d
diff --git a/www-apps/liquid_feedback_core/files/lf_update.sh b/www-apps/liquid_feedback_core/files/lf_update.sh
new file mode 100644
index 000000000000..5cd452d81153
--- /dev/null
+++ b/www-apps/liquid_feedback_core/files/lf_update.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+while true; do
+ nice /usr/bin/lf_update dbname=$1
+ nice /usr/bin/lf_update_issue_order dbname=$1
+ nice /usr/bin/lf_update_suggestion_order dbname=$1
+ sleep 5m
+done
diff --git a/www-apps/liquid_feedback_core/files/liquid_feedback_core.confd b/www-apps/liquid_feedback_core/files/liquid_feedback_core.confd
new file mode 100644
index 000000000000..1e1ed6b29296
--- /dev/null
+++ b/www-apps/liquid_feedback_core/files/liquid_feedback_core.confd
@@ -0,0 +1,2 @@
+# name of db for liquid feedback
+dbname=liquid_feedback
diff --git a/www-apps/liquid_feedback_core/files/liquid_feedback_core.initd b/www-apps/liquid_feedback_core/files/liquid_feedback_core.initd
new file mode 100644
index 000000000000..fe97906ee4ee
--- /dev/null
+++ b/www-apps/liquid_feedback_core/files/liquid_feedback_core.initd
@@ -0,0 +1,10 @@
+#!/sbin/openrc-run
+description="liquid feedback updator"
+
+command="/usr/bin/lf_update.sh"
+command_args="$dbname"
+command_background=yes
+command_user="apache:apache"
+error_log=/var/log/liquid_feedback/lf_update.err
+output_log=/var/log/liquid_feedback/lf_update.log
+pidfile=/run/lqfb_core.pid
diff --git a/www-apps/liquid_feedback_core/files/postinstall-en-4.txt b/www-apps/liquid_feedback_core/files/postinstall-en-4.txt
new file mode 100644
index 000000000000..1ce7b7431495
--- /dev/null
+++ b/www-apps/liquid_feedback_core/files/postinstall-en-4.txt
@@ -0,0 +1,32 @@
+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 -d apache
+
+$ psql
+postgres=# ALTER USER apache WITH PASSWORD 'the_new_password';
+
+$ createdb -U apache liquid_feedback
+$ psql -U apache liquid_feedback
+\i /usr/share/liquid_feedback_core/core.sql
+\i /usr/share/liquid_feedback_core/geoindex_install.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);
+
+and Create an invite code for an admin user:
+
+$ psql -U liquid_feedback liquid_feedback
+liquid_feedback=# INSERT INTO member (invite_code, admin) VALUES ('sesam', true);
+
+Then you can start the periodic task of liquid_feedback_core by running
+/etc/init.d/liquid_feedback_core restart
+
+and eventually adding this to the default level
+
+rc-update add liquid_feedback_core
+
+For other info look at the README file
diff --git a/www-apps/liquid_feedback_core/liquid_feedback_core-4.0.0.ebuild b/www-apps/liquid_feedback_core/liquid_feedback_core-4.2.2.ebuild
similarity index 65%
rename from www-apps/liquid_feedback_core/liquid_feedback_core-4.0.0.ebuild
rename to www-apps/liquid_feedback_core/liquid_feedback_core-4.2.2.ebuild
index d80161e4dd89..e7ba5a90feb1 100644
--- a/www-apps/liquid_feedback_core/liquid_feedback_core-4.0.0.ebuild
+++ b/www-apps/liquid_feedback_core/liquid_feedback_core-4.2.2.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit toolchain-funcs
@@ -18,13 +18,14 @@ KEYWORDS="~amd64"
DEPEND="dev-db/postgresql:="
RDEPEND="${DEPEND}
+ acct-user/apache
dev-db/pgLatLon"
S=${WORKDIR}/${MY_P}
PATCHES=(
"${FILESDIR}"/${PN}-3.0.4-gentoo.patch
- "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${PN}-4.0.0-gentoo.patch
)
src_compile() {
@@ -36,8 +37,13 @@ src_compile() {
}
src_install() {
- dobin lf_update lf_update_suggestion_order lf_export
+ dobin lf_update lf_update_issue_order lf_update_suggestion_order lf_export
+ dobin "${FILESDIR}"/lf_update.sh
insinto /usr/share/${PN}
- doins -r {core,init,demo,test}.sql update
- dodoc README "${FILESDIR}"/postinstall-en.txt
+ doins -r {core,init,demo,test,geoindex_install}.sql update
+ dodoc README "${FILESDIR}"/postinstall-en-4.txt
+ keepdir /var/log/liquid_feedback
+ fowners apache:apache /var/log/liquid_feedback
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: www-apps/liquid_feedback_core/files/, www-apps/liquid_feedback_core/
@ 2024-02-20 7:33 Alfredo Tupone
0 siblings, 0 replies; 4+ messages in thread
From: Alfredo Tupone @ 2024-02-20 7:33 UTC (permalink / raw
To: gentoo-commits
commit: 5e5f9e054b630fedfeb33d87b0db4e4cd6e2b5c0
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 20 07:32:56 2024 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Feb 20 07:33:09 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e5f9e05
www-apps/liquid_feedback_core: drop 2.2.6, 3.0.4, 3.2.2
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
www-apps/liquid_feedback_core/Manifest | 3 --
.../files/liquid_feedback_core-2.2.3-gentoo.patch | 24 ----------
.../files/liquid_feedback_core-3.2.2-gentoo.patch | 51 ----------------------
.../liquid_feedback_core/files/postinstall-en.txt | 22 ----------
.../liquid_feedback_core-2.2.6.ebuild | 43 ------------------
.../liquid_feedback_core-3.0.4.ebuild | 38 ----------------
.../liquid_feedback_core-3.2.2.ebuild | 41 -----------------
7 files changed, 222 deletions(-)
diff --git a/www-apps/liquid_feedback_core/Manifest b/www-apps/liquid_feedback_core/Manifest
index c6a235edc4b7..f397c4a9d85a 100644
--- a/www-apps/liquid_feedback_core/Manifest
+++ b/www-apps/liquid_feedback_core/Manifest
@@ -1,4 +1 @@
-DIST liquid_feedback_core-v2.2.6.tar.gz 127440 BLAKE2B d62ecd8c9947259a7213f92ecaf1491a5e858ff2fdaff5e020fc4ec0c433297d8a7701a812de200130a1ed7f08ded1d9f31d42de7fffa2981361efee0e31646c SHA512 6f680398a7d2e529e642dc94ba16bc1b33d25459ddbf629c06387391ef13c0e212a108cc337cd2bc29505f4f6436b6e92994e63eaa09fe1c07733d2821d9b7f1
-DIST liquid_feedback_core-v3.0.4.tar.gz 142983 BLAKE2B 05e8c1630a8fa3932b4fc291843dd0c45e2333940394a0632309c9041dc850cc894a6cb54fb840329f67812ebcde5d540c338cf27a88ad428aaa066329725409 SHA512 baea8a61c94e640557d0169b6171247ff0303ff1a9c8b587c6769e367cf56805c1a1e660aadf7178d984182be6dde326770240b3ffeda42139c4a94445a2bbf8
-DIST liquid_feedback_core-v3.2.2.tar.gz 162505 BLAKE2B dc6e9d0b8d1e596150520e068e7743a6e839f7e6ffc3c605d090973a179652858c037c4f12c75774d158adfc60484d1ac321350fa7f8d16329043051ae2cd98c SHA512 60a3548008235822e83c6614e990d87200b342d8e5c5fd1ca1f6092bc48d918f9dbfcc130039f4acf2956a19100cc96187ac1c7f5174f7e69a45f651643ab1d9
DIST liquid_feedback_core-v4.2.2.tar.gz 226473 BLAKE2B 4df49d1e1734c72ac439f772dfa1bf2b10d6cfb739f323735c39b2ed1c28ae19a26a00ad5fb3c55ead74e8d35773bbb39112936f5a4bf3321cd5f1847f7721a2 SHA512 f2542c3c38aa22cd7b8de4a47afb51e851f7f8e4b791d7bf90648e2e8abc6f71f687386f6aa028717c4ef042f3e3366b5458933e43dcf51476b3514f858eb20d
diff --git a/www-apps/liquid_feedback_core/files/liquid_feedback_core-2.2.3-gentoo.patch b/www-apps/liquid_feedback_core/files/liquid_feedback_core-2.2.3-gentoo.patch
deleted file mode 100644
index bd5874583e3a..000000000000
--- a/www-apps/liquid_feedback_core/files/liquid_feedback_core-2.2.3-gentoo.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- a/Makefile
-+++ b/Makefile
-@@ -1,16 +1,10 @@
- all:: lf_update lf_update_suggestion_order
-
--lf_update: lf_update.c
-- cc -Wall -O2 \
-- -I "`pg_config --includedir`" \
-- -L "`pg_config --libdir`" \
-- -o lf_update lf_update.c -lpq
--
--lf_update_suggestion_order: lf_update_suggestion_order.c
-- cc -Wall -O2 \
-- -I "`pg_config --includedir`" \
-- -L "`pg_config --libdir`" \
-- -o lf_update_suggestion_order lf_update_suggestion_order.c -lpq
-+CPPFLAGS=-I `pg_config --includedir`
-+LDFLAGS=-L `pg_config --libdir`
-+CFLAGS=-Wall -O2
-+CC=cc
-+LDLIBS=-lpq
-
- clean::
- rm -f lf_update lf_update_suggestion_order
diff --git a/www-apps/liquid_feedback_core/files/liquid_feedback_core-3.2.2-gentoo.patch b/www-apps/liquid_feedback_core/files/liquid_feedback_core-3.2.2-gentoo.patch
deleted file mode 100644
index 541464723f83..000000000000
--- a/www-apps/liquid_feedback_core/files/liquid_feedback_core-3.2.2-gentoo.patch
+++ /dev/null
@@ -1,51 +0,0 @@
---- a/lf_update_issue_order.c 2021-04-10 18:32:19.101947834 +0200
-+++ b/lf_update_issue_order.c 2021-04-10 18:36:07.377117090 +0200
-@@ -1,3 +1,5 @@
-+#define _GNU_SOURCE
-+
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-@@ -417,7 +419,7 @@
- logging = 1;
- }
- for (i=argb; i<argc; i++) len += strlen(argv[i]) + 1;
-- conninfo = malloc(len * sizeof(char));
-+ conninfo = malloc(len * sizeof(char) + 1);
- if (!conninfo) {
- fprintf(stderr, "Error: Could not allocate memory for conninfo string.\n");
- abort();
---- a/lf_update_suggestion_order.c 2021-04-10 18:38:31.138743181 +0200
-+++ b/lf_update_suggestion_order.c 2021-04-10 18:39:29.851786017 +0200
-@@ -1,3 +1,5 @@
-+#define _GNU_SOURCE
-+
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-@@ -474,7 +476,7 @@
- logging = 1;
- }
- for (i=argb; i<argc; i++) len += strlen(argv[i]) + 1;
-- conninfo = malloc(len * sizeof(char));
-+ conninfo = malloc(len * sizeof(char) + 1);
- if (!conninfo) {
- fprintf(stderr, "Error: Could not allocate memory for conninfo string.\n");
- abort();
---- a/lf_update.c 2021-04-10 18:40:48.036510216 +0200
-+++ b/lf_update.c 2021-04-10 18:55:46.869758233 +0200
-@@ -1,3 +1,5 @@
-+#define _GNU_SOURCE
-+
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
-@@ -51,7 +53,7 @@
- {
- size_t len = 0;
- for (i=1; i<argc; i++) len += strlen(argv[i]) + 1;
-- conninfo = malloc(len * sizeof(char));
-+ conninfo = malloc(len * sizeof(char) + 1);
- if (!conninfo) {
- fprintf(stderr, "Error: Could not allocate memory for conninfo string\n");
- return 1;
diff --git a/www-apps/liquid_feedback_core/files/postinstall-en.txt b/www-apps/liquid_feedback_core/files/postinstall-en.txt
deleted file mode 100644
index e1eb550eeea1..000000000000
--- a/www-apps/liquid_feedback_core/files/postinstall-en.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-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 -d liquid_feedback
-
-$ 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 /usr/share/liquid_feedback_core/core.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);
-
-and Create an invite code for an admin user:
-
-$ psql -U liquid_feedback liquid_feedback
-liquid_feedback=# INSERT INTO member (invite_code, admin) VALUES ('sesam', true);
diff --git a/www-apps/liquid_feedback_core/liquid_feedback_core-2.2.6.ebuild b/www-apps/liquid_feedback_core/liquid_feedback_core-2.2.6.ebuild
deleted file mode 100644
index a847294716dd..000000000000
--- a/www-apps/liquid_feedback_core/liquid_feedback_core-2.2.6.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs
-
-MY_P=${PN}-v${PV}
-
-DESCRIPTION="Internet platforms for proposition development and decision making"
-HOMEPAGE="https://www.public-software-group.org/liquid_feedback"
-SRC_URI="https://www.public-software-group.org/pub/projects/liquid_feedback/backend/v${PV}/${MY_P}.tar.gz"
-
-LICENSE="HPND CC-BY-2.5"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="dev-db/postgresql:="
-DEPEND="${RDEPEND}"
-
-S=${WORKDIR}/${MY_P}
-
-PATCHES=( "${FILESDIR}"/${PN}-2.2.3-gentoo.patch )
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- CFLAGS="${CFLAGS}" \
- CPPFLAGS="-I $(pg_config --includedir)" \
- LDFLAGS="${LDFLAGS} -L $(pg_config --libdir)"
-}
-
-src_install() {
- dobin lf_update lf_update_suggestion_order lf_export
- insinto /usr/share/${PN}
- doins -r {core,init,demo,test}.sql update
- dodoc README "${FILESDIR}"/postinstall-en.txt
-}
-
-pkg_postinst() {
- elog "If you just upgraded, remember to update database schema"
- elog "with the scripts in /usr/share/${PN}/update"
-}
diff --git a/www-apps/liquid_feedback_core/liquid_feedback_core-3.0.4.ebuild b/www-apps/liquid_feedback_core/liquid_feedback_core-3.0.4.ebuild
deleted file mode 100644
index 98e769144c7e..000000000000
--- a/www-apps/liquid_feedback_core/liquid_feedback_core-3.0.4.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs
-
-MY_P=${PN}-v${PV}
-
-DESCRIPTION="Internet platforms for proposition development and decision making"
-HOMEPAGE="https://www.public-software-group.org/liquid_feedback"
-SRC_URI="https://www.public-software-group.org/pub/projects/liquid_feedback/backend/v${PV}/${MY_P}.tar.gz"
-
-LICENSE="HPND CC-BY-2.5"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="dev-db/postgresql:="
-DEPEND="${RDEPEND}"
-
-S=${WORKDIR}/${MY_P}
-
-PATCHES=( "${FILESDIR}"/${PN}-3.0.4-gentoo.patch )
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- CFLAGS="${CFLAGS}" \
- CPPFLAGS="-I $(pg_config --includedir)" \
- LDFLAGS="${LDFLAGS} -L $(pg_config --libdir)"
-}
-
-src_install() {
- dobin lf_update lf_update_suggestion_order lf_export
- insinto /usr/share/${PN}
- doins -r {core,init,demo,test}.sql update
- dodoc README "${FILESDIR}"/postinstall-en.txt
-}
diff --git a/www-apps/liquid_feedback_core/liquid_feedback_core-3.2.2.ebuild b/www-apps/liquid_feedback_core/liquid_feedback_core-3.2.2.ebuild
deleted file mode 100644
index a5264bbe9822..000000000000
--- a/www-apps/liquid_feedback_core/liquid_feedback_core-3.2.2.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs
-
-MY_P=${PN}-v${PV}
-
-DESCRIPTION="Internet platforms for proposition development and decision making"
-HOMEPAGE="https://www.public-software-group.org/liquid_feedback"
-SRC_URI="https://www.public-software-group.org/pub/projects/liquid_feedback/backend/v${PV}/${MY_P}.tar.gz"
-
-LICENSE="HPND CC-BY-2.5"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RDEPEND="dev-db/postgresql:="
-DEPEND="${RDEPEND}"
-
-S=${WORKDIR}/${MY_P}
-
-PATCHES=(
- "${FILESDIR}"/${PN}-3.0.4-gentoo.patch
- "${FILESDIR}"/${P}-gentoo.patch
-)
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- CFLAGS="${CFLAGS}" \
- CPPFLAGS="-I $(pg_config --includedir)" \
- LDFLAGS="${LDFLAGS} -L $(pg_config --libdir)"
-}
-
-src_install() {
- dobin lf_update lf_update_suggestion_order lf_export
- insinto /usr/share/${PN}
- doins -r {core,init,demo,test}.sql update
- dodoc README "${FILESDIR}"/postinstall-en.txt
-}
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-20 7:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-16 17:40 [gentoo-commits] repo/gentoo:master commit in: www-apps/liquid_feedback_core/files/, www-apps/liquid_feedback_core/ Alfredo Tupone
-- strict thread matches above, loose matches on Subject: below --
2024-02-20 7:33 Alfredo Tupone
2024-01-25 11:04 Alfredo Tupone
2021-04-10 18:39 Alfredo Tupone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox