Gentoo Archives: gentoo-commits

From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/jmbsvicetto:master commit in: www-apps/dokuwiki/files/, www-apps/dokuwiki/
Date: Tue, 27 Aug 2013 19:40:12
Message-Id: 1377632382.a606c16324ee3357fdf76bb0292c32bf8fa36fef.jmbsvicetto@gentoo
1 commit: a606c16324ee3357fdf76bb0292c32bf8fa36fef
2 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 27 19:39:42 2013 +0000
4 Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 27 19:39:42 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/jmbsvicetto.git;a=commit;h=a606c163
7
8 Add dokuwiki to my overlay and bump to the 20130510a release.
9
10 ---
11 www-apps/dokuwiki/Manifest | 2 +
12 www-apps/dokuwiki/dokuwiki-20121013.ebuild | 64 +++++++++++++++++++++++++++++
13 www-apps/dokuwiki/dokuwiki-20130510a.ebuild | 64 +++++++++++++++++++++++++++++
14 www-apps/dokuwiki/files/postinstall-en.txt | 47 +++++++++++++++++++++
15 www-apps/dokuwiki/metadata.xml | 16 ++++++++
16 5 files changed, 193 insertions(+)
17
18 diff --git a/www-apps/dokuwiki/Manifest b/www-apps/dokuwiki/Manifest
19 new file mode 100644
20 index 0000000..642f618
21 --- /dev/null
22 +++ b/www-apps/dokuwiki/Manifest
23 @@ -0,0 +1,2 @@
24 +DIST dokuwiki-2012-10-13.tgz 2810228 SHA256 27119ad9b62514dccf3afa4545370d5a775eb71ab794365a498e966f8b6c3834 SHA512 be3b14db2835576fa6df784608b078d36f9df1d126aa094b5ccc5df5b841807a3732301f191d5977815cd6eedcda12a8da9f0a8a209091706c4fc27126cecdd6 WHIRLPOOL d0bd2ed27c9828eba7200d5888ba44b95dcca848540043ee47679bf8d8f01e4b8a83242476ccb24ecb573eb6af9586c44fd8b1e5bc766b32eb50c58751f3ceef
25 +DIST dokuwiki-2013-05-10a.tgz 2961725 SHA256 af14b81ebb81b2cafa9db385596519a991e7654074d90a6953dfb2d6f0965ea7 SHA512 dcbd9c204d80bdda15a16485df1a4e73337d12cb360fd922996d995cf4242d0c8612a7dbae2f701d1fac58364643b62212671284f96b8eb77be0c401b83cfce0 WHIRLPOOL 18348c0031341231cade2f8bdbc5a98c1baf228599104b9bf0544ddaa3110a162edd323a22f1eed7add5530ebc5b755fd43ee8d23ad4d4abe8a90714b481dd3d
26
27 diff --git a/www-apps/dokuwiki/dokuwiki-20121013.ebuild b/www-apps/dokuwiki/dokuwiki-20121013.ebuild
28 new file mode 100644
29 index 0000000..1f4341b
30 --- /dev/null
31 +++ b/www-apps/dokuwiki/dokuwiki-20121013.ebuild
32 @@ -0,0 +1,64 @@
33 +# Copyright 1999-2012 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Header: /var/cvsroot/gentoo-x86/www-apps/dokuwiki/dokuwiki-20121013.ebuild,v 1.3 2012/12/27 17:42:04 ago Exp $
36 +
37 +EAPI="4"
38 +
39 +inherit webapp depend.php
40 +
41 +# upstream uses dashes in the datestamp
42 +MY_BASE_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
43 +MY_PV="${MY_BASE_PV}${PV:8:1}"
44 +
45 +DESCRIPTION="DokuWiki is a simple to use Wiki aimed at a small company's documentation needs."
46 +HOMEPAGE="http://wiki.splitbrain.org/wiki:dokuwiki"
47 +SRC_URI="http://www.splitbrain.org/_media/projects/${PN}/${PN}-${MY_PV}.tgz"
48 +
49 +LICENSE="GPL-2"
50 +KEYWORDS="amd64 ~ppc ~sparc x86"
51 +IUSE="gd"
52 +
53 +DEPEND=""
54 +RDEPEND="
55 + >=dev-lang/php-5.3[xml]
56 + gd? ( || ( dev-lang/php[gd]
57 + media-gfx/imagemagick )
58 + )"
59 +
60 +need_httpd_cgi
61 +need_php_httpd
62 +
63 +S="${WORKDIR}/${PN}-${MY_PV}"
64 +
65 +src_prepare() {
66 + # create initial changes file
67 + touch data/changes.log
68 +}
69 +
70 +src_install() {
71 + webapp_src_preinst
72 +
73 + dodoc README
74 + rm -f README COPYING
75 +
76 + docinto scripts
77 + dodoc bin/*
78 + rm -rf bin
79 +
80 + insinto "${MY_HTDOCSDIR}"
81 + doins -r .
82 +
83 + for x in $(find data/ -not -name '.htaccess'); do
84 + webapp_serverowned "${MY_HTDOCSDIR}"/${x}
85 + done
86 +
87 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess.dist
88 + webapp_configfile "${MY_HTDOCSDIR}"/conf
89 +
90 + for x in $(find conf/ -not -name 'msg'); do
91 + webapp_configfile "${MY_HTDOCSDIR}"/${x}
92 + done
93 +
94 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
95 + webapp_src_install
96 +}
97
98 diff --git a/www-apps/dokuwiki/dokuwiki-20130510a.ebuild b/www-apps/dokuwiki/dokuwiki-20130510a.ebuild
99 new file mode 100644
100 index 0000000..1f4341b
101 --- /dev/null
102 +++ b/www-apps/dokuwiki/dokuwiki-20130510a.ebuild
103 @@ -0,0 +1,64 @@
104 +# Copyright 1999-2012 Gentoo Foundation
105 +# Distributed under the terms of the GNU General Public License v2
106 +# $Header: /var/cvsroot/gentoo-x86/www-apps/dokuwiki/dokuwiki-20121013.ebuild,v 1.3 2012/12/27 17:42:04 ago Exp $
107 +
108 +EAPI="4"
109 +
110 +inherit webapp depend.php
111 +
112 +# upstream uses dashes in the datestamp
113 +MY_BASE_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
114 +MY_PV="${MY_BASE_PV}${PV:8:1}"
115 +
116 +DESCRIPTION="DokuWiki is a simple to use Wiki aimed at a small company's documentation needs."
117 +HOMEPAGE="http://wiki.splitbrain.org/wiki:dokuwiki"
118 +SRC_URI="http://www.splitbrain.org/_media/projects/${PN}/${PN}-${MY_PV}.tgz"
119 +
120 +LICENSE="GPL-2"
121 +KEYWORDS="amd64 ~ppc ~sparc x86"
122 +IUSE="gd"
123 +
124 +DEPEND=""
125 +RDEPEND="
126 + >=dev-lang/php-5.3[xml]
127 + gd? ( || ( dev-lang/php[gd]
128 + media-gfx/imagemagick )
129 + )"
130 +
131 +need_httpd_cgi
132 +need_php_httpd
133 +
134 +S="${WORKDIR}/${PN}-${MY_PV}"
135 +
136 +src_prepare() {
137 + # create initial changes file
138 + touch data/changes.log
139 +}
140 +
141 +src_install() {
142 + webapp_src_preinst
143 +
144 + dodoc README
145 + rm -f README COPYING
146 +
147 + docinto scripts
148 + dodoc bin/*
149 + rm -rf bin
150 +
151 + insinto "${MY_HTDOCSDIR}"
152 + doins -r .
153 +
154 + for x in $(find data/ -not -name '.htaccess'); do
155 + webapp_serverowned "${MY_HTDOCSDIR}"/${x}
156 + done
157 +
158 + webapp_configfile "${MY_HTDOCSDIR}"/.htaccess.dist
159 + webapp_configfile "${MY_HTDOCSDIR}"/conf
160 +
161 + for x in $(find conf/ -not -name 'msg'); do
162 + webapp_configfile "${MY_HTDOCSDIR}"/${x}
163 + done
164 +
165 + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
166 + webapp_src_install
167 +}
168
169 diff --git a/www-apps/dokuwiki/files/postinstall-en.txt b/www-apps/dokuwiki/files/postinstall-en.txt
170 new file mode 100644
171 index 0000000..b00cd47
172 --- /dev/null
173 +++ b/www-apps/dokuwiki/files/postinstall-en.txt
174 @@ -0,0 +1,47 @@
175 +To complete installation you need to perform the following steps:
176 +
177 + 1) Configure dokuwiki base options
178 + 2) Check the config
179 + 3) Notes
180 +
181 +1 - Configure dokuwiki base options
182 +
183 + The first thing we need to do is set base options of dokuwiki:
184 +
185 + $ cd ${MY_INSTALLDIR}/conf
186 +
187 + Edit dokuwiki/conf/dokuwiki.php (see config [1]) if you want to change
188 + anything within it. Better yet, create ${MY_INSTALLDIR}/conf/local.php containing
189 + those lines from dokuwiki.php which you want to change. This way, your
190 + changes are preserved when overwriting the dokuwiki.php with a new
191 + release.
192 +
193 + $ cp local.php.dist local.php
194 +
195 +2 - Check the config
196 +
197 + Finally, test if everything is set up correctly. Use the check option in a
198 + URL and pull it up into a browser:
199 +
200 + http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/doku.php?do=check
201 +
202 +3) - Notes
203 +
204 + Please see the website [2] for more information on setting up dokuwiki.
205 +
206 + Dokuwiki's default config leaves editing wide open, so please read the
207 + acl [3] and user [4] documentation before proceding farther. If you use
208 + the plaintext authentication, you may need to do the following:
209 +
210 + $ cd conf/
211 + $ cp users.auth.php.dist users.auth.php
212 + $ cp acl.auth.php.dist acl.auth.php
213 + $ chown apache:apache users.auth.php acl.auth.php
214 +
215 + This enables apache to write to the files for editing the acl/user
216 + creation capability.
217 +
218 +[1] http://wiki.splitbrain.org/wiki:config
219 +[2] http://wiki.splitbrain.org/wiki:dokuwiki
220 +[3] http://wiki.splitbrain.org/wiki:acl
221 +[4] http://wiki.splitbrain.org/wiki:auth_plain
222
223 diff --git a/www-apps/dokuwiki/metadata.xml b/www-apps/dokuwiki/metadata.xml
224 new file mode 100644
225 index 0000000..1f9ed01
226 --- /dev/null
227 +++ b/www-apps/dokuwiki/metadata.xml
228 @@ -0,0 +1,16 @@
229 +<?xml version="1.0" encoding="UTF-8"?>
230 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
231 +<pkgmetadata>
232 +<maintainer>
233 + <email>jmbsvicetto@g.o</email>
234 + <name>Jorge Manuel B. S. Vicetto</name>
235 +</maintainer>
236 +<longdescription lang="en">
237 + DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at
238 + creating documentation of any kind. It is targeted at developer teams,
239 + workgroups and small companies. It has a simple but powerful syntax
240 + which makes sure the datafiles remain readable outside the Wiki and
241 + eases the creation of structured texts. All data is stored in plain text
242 + files - no database is required.
243 +</longdescription>
244 +</pkgmetadata>