1 |
commit: 7180d5f150295b7a8f5fd492a637f8a7b10f0253 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 24 21:27:39 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 24 21:27:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7180d5f1 |
7 |
|
8 |
www-apps/phpBB: Version bump to 3.2.7 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/678512 |
11 |
Closes: https://bugs.gentoo.org/615182 |
12 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
13 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
14 |
|
15 |
www-apps/phpBB/Manifest | 1 + |
16 |
www-apps/phpBB/files/permissions | 19 +++++++++++++ |
17 |
www-apps/phpBB/files/postinstall-en.txt | 30 ++++++++------------ |
18 |
www-apps/phpBB/metadata.xml | 11 ++++++++ |
19 |
www-apps/phpBB/phpBB-3.2.7.ebuild | 50 +++++++++++++++++++++++++++++++++ |
20 |
5 files changed, 92 insertions(+), 19 deletions(-) |
21 |
|
22 |
diff --git a/www-apps/phpBB/Manifest b/www-apps/phpBB/Manifest |
23 |
index ef210a44d71..06073694d4d 100644 |
24 |
--- a/www-apps/phpBB/Manifest |
25 |
+++ b/www-apps/phpBB/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST phpBB-3.1.10.tar.bz2 2150999 BLAKE2B c0dce8b554f9bfd19f0e470fa0b96637f26969339f4ef6f87d04d5e492f0028d24e0adc76c8600b7a7d95c6531aa6971b646a02f22f731195c5a9491ea465bd0 SHA512 077a529075ea4e0691f9125be521b3fa8d4a078f9234b40bc5495faf00e1389808da40176ab8c8d9c66db259ebbf252d7292919d5c8e96e93c0bbda8d19695e2 |
28 |
+DIST phpBB-3.2.7.tar.bz2 4384851 BLAKE2B 68af960efa04a30f81869b205d9c43ace86a4a4411a4cb969cdf5d52c8bf4f87f806fc3b2c71941f15be295afe5faa0d606af72a734356c3a7f0f97fb73d3f01 SHA512 f6cf728c022d803f2b39560037b987e832f4ee4583a377f63e01a1529b58e275db4f13386a0d70b50cfb40621d7573a26e349702f901a549cedda9db7f79d4d2 |
29 |
|
30 |
diff --git a/www-apps/phpBB/files/permissions b/www-apps/phpBB/files/permissions |
31 |
new file mode 100755 |
32 |
index 00000000000..b5c21c879eb |
33 |
--- /dev/null |
34 |
+++ b/www-apps/phpBB/files/permissions |
35 |
@@ -0,0 +1,19 @@ |
36 |
+#!/bin/bash -e |
37 |
+ |
38 |
+if [[ $1 = install ]]; then |
39 |
+ # Ensure database credentials are not world-readable. |
40 |
+ chmod -v o= "${MY_INSTALLDIR}"/config.php |
41 |
+ |
42 |
+ # These paths need to be writeable by the PHP user. |
43 |
+ PATHS=( "${MY_INSTALLDIR}"/{cache/,config.php,download/,files/,store/,images/avatars/upload/} ) |
44 |
+ |
45 |
+ # Assume the PHP user is in the config group. |
46 |
+ GID=${VHOST_CONFIG_GID} |
47 |
+ |
48 |
+ # If that group is root, assume the web server group instead. |
49 |
+ [[ ${GID} = 0 || ${GID} = root ]] && GID=${VHOST_SERVER_GID} |
50 |
+ |
51 |
+ # Make the paths writeable by that group. |
52 |
+ chgrp -v "${GID}" "${PATHS[@]}" |
53 |
+ chmod -v g+w "${PATHS[@]}" |
54 |
+fi |
55 |
|
56 |
diff --git a/www-apps/phpBB/files/postinstall-en.txt b/www-apps/phpBB/files/postinstall-en.txt |
57 |
index 6787a37ca81..8bdf1386e4d 100644 |
58 |
--- a/www-apps/phpBB/files/postinstall-en.txt |
59 |
+++ b/www-apps/phpBB/files/postinstall-en.txt |
60 |
@@ -1,22 +1,14 @@ |
61 |
-You are almost done! |
62 |
+IMPORTANT! Ensure that the group assigned to group-writeable paths |
63 |
+such as config.php (see above) is one your PHP user is a member |
64 |
+of. This may or may not be your web server group, ${VHOST_SERVER_GID}. |
65 |
+If not, adjust your PHP user and/or reinstall the application with |
66 |
+webapp-config while specifying an appropriate group with -g. Then... |
67 |
|
68 |
- 0. Setup a database (e.g. MySQL: see |
69 |
- http://www.gentoo.org/doc/en/mysql-howto.xml) |
70 |
+1. Set up a database. |
71 |
+2. Continue the installation by visiting the URL in your browser. |
72 |
+3. Delete the "install" folder as follows: |
73 |
|
74 |
- 1. Login on |
75 |
+ # cd ${MY_INSTALLDIR} |
76 |
+ # rm -rf install |
77 |
|
78 |
- http://${VHOST_HOSTNAME}/${VHOST_APPDIR} |
79 |
- |
80 |
- and finish the installation. |
81 |
- |
82 |
- 2. Move into the directory where you installed phpBB and remove |
83 |
- the "install" folder: |
84 |
- |
85 |
- # cd ${MY_INSTALLDIR} |
86 |
- # rm -rf install |
87 |
- |
88 |
- 3. You can now launch your browser and point it to your phpBB site: |
89 |
- |
90 |
- http://${VHOST_HOSTNAME}/${VHOST_APPDIR} |
91 |
- |
92 |
- Enjoy phpBB! |
93 |
+4. phpBB is now ready to use. Enjoy! |
94 |
|
95 |
diff --git a/www-apps/phpBB/metadata.xml b/www-apps/phpBB/metadata.xml |
96 |
index 575e4216b63..14d03d3e9a1 100644 |
97 |
--- a/www-apps/phpBB/metadata.xml |
98 |
+++ b/www-apps/phpBB/metadata.xml |
99 |
@@ -9,4 +9,15 @@ |
100 |
<email>chewi@g.o</email> |
101 |
<name>James Le Cuirot</name> |
102 |
</maintainer> |
103 |
+ <longdescription> |
104 |
+ phpBB is a free flat-forum bulletin board software solution that can be used |
105 |
+ to stay in touch with a group of people or can power your entire website. |
106 |
+ With an extensive database of user-created extensions and styles database |
107 |
+ containing hundreds of style and image packages to customise your board, |
108 |
+ you can create a very unique forum in minutes. |
109 |
+ </longdescription> |
110 |
+ <upstream> |
111 |
+ <bugs-to>https://tracker.phpbb.com</bugs-to> |
112 |
+ <remote-id type="github">phpbb/phpbb</remote-id> |
113 |
+ </upstream> |
114 |
</pkgmetadata> |
115 |
|
116 |
diff --git a/www-apps/phpBB/phpBB-3.2.7.ebuild b/www-apps/phpBB/phpBB-3.2.7.ebuild |
117 |
new file mode 100644 |
118 |
index 00000000000..c44df8c4c35 |
119 |
--- /dev/null |
120 |
+++ b/www-apps/phpBB/phpBB-3.2.7.ebuild |
121 |
@@ -0,0 +1,50 @@ |
122 |
+# Copyright 1999-2019 Gentoo Authors |
123 |
+# Distributed under the terms of the GNU General Public License v2 |
124 |
+ |
125 |
+EAPI=7 |
126 |
+ |
127 |
+inherit webapp |
128 |
+ |
129 |
+DESCRIPTION="An open-source PHP-based bulletin board package" |
130 |
+HOMEPAGE="https://www.phpbb.com/" |
131 |
+SRC_URI="https://www.phpbb.com/files/release/${P}.tar.bz2" |
132 |
+LICENSE="GPL-2" |
133 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~sparc ~x86" |
134 |
+IUSE="ftp gd mssql mysqli postgres sqlite zlib" |
135 |
+REQUIRED_USE="|| ( mssql mysqli postgres sqlite )" |
136 |
+ |
137 |
+PHPV="5.4:*" |
138 |
+RDEPEND=">=virtual/httpd-php-${PHPV} |
139 |
+ >=dev-lang/php-${PHPV}[ftp?,gd?,json,mssql?,mysqli?,postgres?,sqlite?,xml,zlib?]" |
140 |
+ |
141 |
+need_httpd_cgi |
142 |
+ |
143 |
+S="${WORKDIR}/${PN}${PV%%.*}" |
144 |
+ |
145 |
+src_install() { |
146 |
+ webapp_src_preinst |
147 |
+ |
148 |
+ insinto "${MY_HTDOCSDIR}" |
149 |
+ doins -r . |
150 |
+ |
151 |
+ webapp_configfile "${MY_HTDOCSDIR}"/config.php |
152 |
+ webapp_hook_script "${FILESDIR}"/permissions |
153 |
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
154 |
+ webapp_src_install |
155 |
+ |
156 |
+ # phpBB needs docs together with the other files. |
157 |
+ dosym "${MY_HTDOCSDIR}"/docs /usr/share/doc/${PF} |
158 |
+} |
159 |
+ |
160 |
+pkg_postinst() { |
161 |
+ einfo "phpBB needs a specific web server configuration. For Apache httpd, an" |
162 |
+ einfo "example configuration is provided via .htaccess files. For lighttpd and" |
163 |
+ einfo "NGINX, example configuration files can be found in the documentation." |
164 |
+ |
165 |
+ if use vhosts; then |
166 |
+ echo |
167 |
+ ewarn "When installing with webapp-config, specify a group that includes your" |
168 |
+ ewarn "PHP user with the -g option. It will default to the web server group" |
169 |
+ ewarn "when running webapp-config as root." |
170 |
+ fi |
171 |
+} |