Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/dev/jmbsvicetto:master commit in: www-apps/limesurvey/, eclass/, net-nds/phpldapadmin/, profiles/
Date: Tue, 03 Jan 2023 10:51:06
Message-Id: 1672743046.2c144cecedebd295bbebc352197c74671d7407a3.jmbsvicetto@gentoo
1 commit: 2c144cecedebd295bbebc352197c74671d7407a3
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 10:49:39 2023 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 10:50:46 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/dev/jmbsvicetto.git/commit/?id=2c144cec
7
8 Several QA fixes.
9
10 Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org>
11
12 eclass/horde-v2.eclass | 180 ---------------------------
13 net-nds/phpldapadmin/metadata.xml | 5 +-
14 profiles/categories | 11 +-
15 www-apps/limesurvey/Manifest | 1 +
16 www-apps/limesurvey/limesurvey-5.3.22.ebuild | 58 +++++++++
17 5 files changed, 63 insertions(+), 192 deletions(-)
18
19 diff --git a/eclass/horde-v2.eclass b/eclass/horde-v2.eclass
20 deleted file mode 100644
21 index 63be48d..0000000
22 --- a/eclass/horde-v2.eclass
23 +++ /dev/null
24 @@ -1,180 +0,0 @@
25 -# Copyright 1999-2016 Gentoo Foundation
26 -# Distributed under the terms of the GNU General Public License v2
27 -
28 -# @ECLASS: horde-v2.eclass
29 -# @MAINTAINER:
30 -# Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>
31 -# @BLURB: Eclass to install horde project packages
32 -# @DESCRIPTION:
33 -# Help manage the horde project http://www.horde.org/
34 -#
35 -# Based on the horde eclass:
36 -# Author: Mike Frysinger <vapier@g.o>
37 -# CVS additions by Chris Aniszczyk <zx@×××××××××.net>
38 -# SNAP additions by Jonathan Polansky <jpolansky@×××××××××.edu>
39 -#
40 -# This eclass provides generic functions to make the writing of horde
41 -# ebuilds fairly trivial since there are many horde applications and
42 -# they all share the same basic install process.
43 -
44 -# @ECLASS-VARIABLE: EHORDE_SNAP
45 -# @DESCRIPTION:
46 -# Track whether this a snapshot version or not
47 -
48 -# @ECLASS-VARIABLE: EHORDE_SNAP_BRANCH
49 -# @DESCRIPTION:
50 -# You set this via the ebuild to whatever branch you wish to grab a
51 -# snapshot of. Typically this is 'HEAD' or 'RELENG'.
52 -
53 -# @ECLASS-VARIABLE: EHORDE_SNAP_PV
54 -# @DESCRIPTION:
55 -# The date of the snapshot to fetch
56 -
57 -# @ECLASS-VARIABLE: EHORDE_VCS
58 -# @DESCRIPTION:
59 -# Track whether this is a live version or not
60 -
61 -# This eclass requires at least EAPI-3
62 -case ${EAPI:-0} in
63 - 5|4|3) : ;;
64 - *) die "EAPI=${EAPI} is not supported" ;;
65 -esac
66 -
67 -if [[ ${PV} == *9999 ]]; then
68 - EHORDE_VCS="git-2"
69 -fi
70 -
71 -inherit webapp eutils php-pear-r1 ${EHORDE_VCS}
72 -
73 -HOMEPAGE="http://www.horde.org/${HORDE_PN}"
74 -LICENSE="LGPL-2"
75 -
76 -[[ -z ${HORDE_PN} ]] && HORDE_PN="${PN/horde-}"
77 -[[ -z ${HORDE_MAJ} ]] && HORDE_MAJ=""
78 -HORDE_P="${HORDE_PN}-${PV}"
79 -
80 -S=${WORKDIR}/${HORDE_PN}${HORDE_MAJ}-${PV/_/-}
81 -
82 -case ${PV} in
83 - *9999)
84 - EGIT_REPO_URI="git://github.com/horde/${HORDE_PN}"
85 - SRC_URI=""
86 - RESTRICT="mirror"
87 - ;;
88 - *9998)
89 - EHORDE_SNAP="true"
90 - if [[ -z ${EHORDE_SNAP_PV} ]]; then
91 - let date=$(date +%s)-24*60*60
92 - EHORDE_SNAP_PV=$(date -d @${date} +%Y-%m-%d)
93 - fi
94 -
95 - SRC_URI="http://ftp.horde.org/pub/snaps/${EHORDE_SNAP_PV}/${HORDE_PN}-git.tar.gz"
96 - S=${WORKDIR}/${HORDE_PN}
97 - ;;
98 - *)
99 - SRC_URI="http://pear.horde.org/get/${HORDE_P}.tgz"
100 - ;;
101 -esac
102 -
103 -IUSE="vhosts"
104 -
105 -EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst
106 -
107 -# INSTALL_DIR is used by webapp.eclass when USE=-vhosts
108 -INSTALL_DIR="/horde"
109 -[[ ${HORDE_PN} != "horde" && ${HORDE_PN} != "horde-groupware" && ${HORDE_PN} != "horde-webmail" ]] && INSTALL_DIR="${INSTALL_DIR}/${HORDE_PN}"
110 -
111 -HORDE_APPLICATIONS="${HORDE_APPLICATIONS} ."
112 -
113 -horde-v2_pkg_setup() {
114 - webapp_pkg_setup
115 -}
116 -
117 -horde-v2_src_unpack() {
118 - if [[ -n ${EHORDE_VCS} ]] ; then
119 - ${EHORDE_VCS}_src_unpack
120 - else
121 - unpack ${A}
122 - fi
123 - cd "${S}"
124 -
125 - [[ -n ${EHORDE_PATCHES} ]] && epatch ${EHORDE_PATCHES}
126 -
127 - for APP in ${HORDE_APPLICATIONS}
128 - do
129 - [[ -f ${APP}/test.php ]] && chmod 000 ${APP}/test.php
130 - done
131 -}
132 -
133 -horde-v2_src_install() {
134 - webapp_src_preinst
135 -
136 - local destdir=${MY_HTDOCSDIR}
137 -
138 - # Work-around when dealing with live sources
139 - [[ -n ${EHORDE_VCS} ]] && cd ${HORDE_PN}
140 -
141 - # Install docs and then delete them (except for CREDITS which
142 - # many horde apps include in their help page #121003)
143 - dodoc README docs/*
144 - mv docs/CREDITS "${T}"/
145 - rm -rf COPYING LICENSE README docs/*
146 - mv "${T}"/CREDITS docs/
147 -
148 - dodir ${destdir}
149 - cp -r . "${D}"/${destdir}/ || die "install files"
150 -
151 - for APP in ${HORDE_APPLICATIONS}
152 - do
153 - for DISTFILE in ${APP}/config/*.dist
154 - do
155 - if [[ -f ${DISTFILE/.dist/} ]] ; then
156 - webapp_configfile "${MY_HTDOCSDIR}"/${DISTFILE/.dist/}
157 - fi
158 - done
159 - if [[ -f ${APP}/config/conf.php ]] ; then
160 - webapp_serverowned "${MY_HTDOCSDIR}"/${APP}/config/conf.php
161 - webapp_configfile "${MY_HTDOCSDIR}"/${APP}/config/conf.php
162 - fi
163 - done
164 -
165 - [[ -n ${HORDE_RECONFIG} ]] && webapp_hook_script ${HORDE_RECONFIG}
166 - [[ -n ${HORDE_POSTINST} ]] && webapp_postinst_txt en ${HORDE_POSTINST}
167 -
168 - webapp_src_install
169 -}
170 -
171 -horde-v2_pkg_postinst() {
172 - if [ -e ${ROOT}/usr/share/doc/${PF}/INSTALL* ] ; then
173 - elog "Please read the INSTALL file in /usr/share/doc/${PF}."
174 - fi
175 -
176 - einfo "Before this package will work, you have to setup the configuration files."
177 - einfo "Please review the config/ subdirectory of ${HORDE_PN} in the webroot."
178 -
179 - if [ -e ${ROOT}/usr/share/doc/${PF}/SECURITY* ] ; then
180 - ewarn
181 - ewarn "Users are HIGHLY recommended to consult the SECURITY guide in"
182 - ewarn "/usr/share/doc/${PF} before going into production with Horde."
183 - fi
184 -
185 - if [[ ${HORDE_PN} != "horde" && ${HORDE_PN} != "horde-groupware" && ${HORDE_PN} != "horde-webmail" ]] ; then
186 - ewarn
187 - ewarn "Make sure ${HORDE_PN} is accounted for in Horde\'s root"
188 - ewarn " config/registry.php"
189 - fi
190 -
191 - if [[ -n ${EHORDE_VCS} ]] ; then
192 - ewarn
193 - ewarn "Use these live versions at your own risk."
194 - ewarn "They tend to break things when working with the non live versions of horde."
195 - fi
196 -
197 - if use vhosts ; then
198 - ewarn
199 - ewarn "When installing Horde into a vhost dir, you will need to use the"
200 - ewarn "-d option so that it is installed into the proper location."
201 - fi
202 -
203 - webapp_pkg_postinst
204 -}
205
206 diff --git a/net-nds/phpldapadmin/metadata.xml b/net-nds/phpldapadmin/metadata.xml
207 index 79c647a..784fca0 100644
208 --- a/net-nds/phpldapadmin/metadata.xml
209 +++ b/net-nds/phpldapadmin/metadata.xml
210 @@ -9,10 +9,7 @@
211 <email>web-apps@g.o</email>
212 <name>Gentoo Webapps</name>
213 </maintainer>
214 - <longdescription>
215 - phpLDAPadmin is a web-based tool for managing all aspects of your LDAP server.
216 -</longdescription>
217 <upstream>
218 - <remote-id type="sourceforge">phpldapadmin</remote-id>
219 + <remote-id type="github">leenooks/phpLDAPadmin</remote-id>
220 </upstream>
221 </pkgmetadata>
222
223 diff --git a/profiles/categories b/profiles/categories
224 index f9195e8..ee73d62 100644
225 --- a/profiles/categories
226 +++ b/profiles/categories
227 @@ -1,13 +1,8 @@
228 app-admin
229 -app-misc
230 -dev-perl
231 -dev-php
232 -dev-python
233 -games-strategy
234 +dev-db
235 net-analyzer
236 net-misc
237 -sci-geosciences
238 -www-apache
239 +net-nds
240 +net-vpn
241 www-apps
242 www-misc
243 -www-servers
244
245 diff --git a/www-apps/limesurvey/Manifest b/www-apps/limesurvey/Manifest
246 index 78c3807..7cf2f1f 100644
247 --- a/www-apps/limesurvey/Manifest
248 +++ b/www-apps/limesurvey/Manifest
249 @@ -4,3 +4,4 @@ DIST limesurvey-2.57.1.tar.gz 75910330 SHA256 10dd9675eb7e02873d45a147f1a695faac
250 DIST limesurvey-2.63.1.tar.gz 73655219 SHA256 6165b7fbaae9dbcd7ff28a734889439fdcd60a40bdaf01a0fe23a3d323d0874a SHA512 e6a72ff5b4d5fa53cc8092f02cb6321d427ec9c7067dbb301b055249a42c6238b159b2d580b63955245cc22728ef2453ef4e60884cc254aa98b81f661466384e WHIRLPOOL 03c23cbf40d3f0e5cfd68343d23e858268e83f277beeec9e8ffdb26890057e019c30bc4e657b5f780ef0027d9cd9637c8ad1c70b038f728d2fb2366bb7e2cfec
251 DIST limesurvey-2.64.1.tar.gz 29598 SHA256 5e1ec9035ca4213c0107b177085d033bd8832bcfbac292a049a1220ca0abf483 SHA512 3cdf4677e7bf0cf51f2038c9fc2d9e63c4223a034e6e29baf41f85029197dbdffd07d1cc2bdfde6dd410511068be8272e5e0bede67fef378beb90b70dc0285f9 WHIRLPOOL ed3c52b592eccd703c31fed152a54494ef95451771ca7e167976b632f736879cc9387916e7cf114fc441f158ce2bccef19735118ebb02defe2f0d9f2ede471e9
252 DIST limesurvey-2.72.5.tar.gz 75156451 SHA256 35aee519db72aede8f677bfcbaeaa332c50ca4095d4ba4d34ae51f7f660bad67 SHA512 2c1c388b2e4d7faa267adc04e04ca0f0d5984d61b7ea02be01af865fcafefa1513550ec35db5e2093d0e1f1a42e0c3480f83a8aa21b35599814e903b69c3303f WHIRLPOOL 4ee9cce6672173ecc2c084be3a4559ab4305be2c82c6fca88da3b31c27f194ea937dc3c00b0e505ed2bad746a3aeeff26d484abeb585bebb6261c2b3dc8bd9b4
253 +DIST limesurvey5.3.22+220628.zip 83649913 BLAKE2B c769828e67e3f22c277f7e3feb1f7cb7dd4c420b6f7a5ada264a9c26e7ac99806b6599b50fa8776077e8e7d32802eda98eac75ea23f9376af9d1500ccad3dc94 SHA512 747c05ea9bf65c3231afa8e2a0c10500b5ee8081e572d5e6609f5a5314b738606c4d90d57047039cbe84027a26f5e9d814ea12a3e61747cca8683a39186ef555
254
255 diff --git a/www-apps/limesurvey/limesurvey-5.3.22.ebuild b/www-apps/limesurvey/limesurvey-5.3.22.ebuild
256 new file mode 100644
257 index 0000000..846a7d9
258 --- /dev/null
259 +++ b/www-apps/limesurvey/limesurvey-5.3.22.ebuild
260 @@ -0,0 +1,58 @@
261 +# Copyright 1999-2022 Gentoo Authors
262 +# Distributed under the terms of the GNU General Public License v2
263 +
264 +EAPI=7
265 +
266 +inherit webapp
267 +
268 +MY_PN="LimeSurvey"
269 +MY_DATE="220628"
270 +MY_PV="${PV}+${MY_DATE}"
271 +
272 +DESCRIPTION="LimeSurvey is a popular Free Open Source Software survey tool"
273 +HOMEPAGE="https://www.limesurvey.org/"
274 +#SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
275 +SRC_URI="https://download.limesurvey.org/latest-stable-release/$PN$MY_PV.zip"
276 +LICENSE="GPL-2"
277 +KEYWORDS="~amd64 ~x86"
278 +IUSE="+gd ldap mssql mysql postgres zip"
279 +REQUIRED_USE="^^ ( mssql mysql postgres )"
280 +
281 +DEPEND="
282 + app-admin/webapp-config
283 +"
284 +RDEPEND="
285 + dev-lang/php[gd?,hash,ldap?,session,zip?,zlib]
286 + mssql? ( dev-lang/php[mssql] )
287 + mysql? ( dev-lang/php[mysqli] )
288 + postgres? ( dev-lang/php[postgres] )
289 +"
290 +S="${WORKDIR}/${MY_PN}-${PV}-${MY_DATE}"
291 +
292 +pkg_config () {
293 +
294 + webapp_pkg_setup
295 +}
296 +
297 +src_install () {
298 +
299 + webapp_src_preinst
300 +
301 + einfo "Installing files"
302 + insinto "${MY_HTDOCSDIR}"
303 + doins -r .
304 +
305 + webapp_src_install
306 +}
307 +
308 +pkg_preinst () {
309 +
310 + fowners -R root:apache "${MY_HTDOCSDIR}"
311 + fperms -R g-w,o-rwx "${MY_HTDOCSDIR}"
312 +
313 + # Allow writing to the tmp, upload and application/config directories
314 + for dir in tmp upload application/config ; do
315 +
316 + fperms -R g+w "${MY_HTDOCSDIR}/${dir}"
317 + done
318 +}