View | Details | Raw Unified | Return to bug 261542 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/dokuwiki-devel/Makefile (+171 lines)
Added Link Here
1
PORTNAME=	dokuwiki
2
PORTVERSION=	20220127
3
CATEGORIES=	www
4
PKGNAMESUFFIX=	-devel
5
6
MAINTAINER=	rozhuk.im@gmail.com
7
COMMENT=	Simple and easy to use wiki, no database required
8
9
LICENSE=		BSD3CLAUSE GPLv2 GPLv2+ GPLv3 MIT
10
LICENSE_COMB=		multi
11
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/vendor/simplepie/simplepie/LICENSE.txt
12
LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
13
LICENSE_FILE_GPLv2+ =	${WRKSRC}/vendor/geshi/geshi/LICENSE
14
LICENSE_FILE_GPLv3=	${WRKSRC}/vendor/marcusschwarz/lesserphp/LICENSE
15
LICENSE_FILE_MIT=	${WRKSRC}/vendor/composer/LICENSE
16
17
CONFLICTS_INSTALL=	dokuwiki
18
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	splitbrain
21
GH_TAGNAME=	4ef5d38db53e045a81f129b29a8b886cecc38497
22
USES=		cpe php:web shebangfix
23
USE_PHP=	gd hash json mbstring openssl pcre session xml zlib
24
NO_ARCH=	YES
25
NO_BUILD=	YES
26
27
SHEBANG_FILES=	bin/*.php
28
SUB_FILES=	pkg-message
29
SUB_LIST+=	PORTNAME=${PORTNAME}
30
SHAREOWN=	${WWWOWN}
31
SHAREGRP=	${WWWGRP}
32
CONF_FILES=	acl.auth.php local.php local.php.bak plugins.local.php \
33
		plugins.local.php.bak users.auth.php
34
35
OPTIONS_GROUP=	PLUGINS
36
OPTIONS_GROUP_PLUGINS=	CATLIST CLEANUP CUSTOMBUTTONS EDITTABLE MOVE \
37
			SEARCHINDEX TAG TRANSLATION UPGRADE
38
OPTIONS_SUB=	yes
39
40
CATLIST_DESC=		Adds a form to create a new page in the current namespace
41
CATLIST_DIRS=		catlist
42
CATLIST_GH_ACCOUNT=	xif-fr:plugin_catlist
43
CATLIST_GH_PROJECT=	dokuwiki-plugin-catlist:plugin_catlist
44
CATLIST_GH_TAGNAME=	065f8d2f4817409989b9342b901163452fb9f547:plugin_catlist
45
46
CLEANUP_DESC=		Perform file cleanup in the wiki
47
CLEANUP_DIRS=		cleanup
48
CLEANUP_GH_ACCOUNT=	cosmocode:plugin_cleanup
49
CLEANUP_GH_PROJECT=	dokuwiki-plugin-cleanup:plugin_cleanup
50
CLEANUP_GH_TAGNAME=	dc8184bc282ab1ef78586026d5dced37c5705eb6:plugin_cleanup
51
52
CUSTOMBUTTONS_DESC=	Adding custom buttons to the toolbar
53
CUSTOMBUTTONS_DIRS=	custombuttons
54
CUSTOMBUTTONS_GH_ACCOUNT= ConX:plugin_custombuttons
55
CUSTOMBUTTONS_GH_PROJECT= dokuwiki-plugin-custombuttons:plugin_custombuttons
56
CUSTOMBUTTONS_GH_TAGNAME= fe62df3de7f643225d6767b481f478e901f35a40:plugin_custombuttons
57
58
EDITTABLE_DESC=		Provides a visual table editing and inserting interface
59
EDITTABLE_DIRS=		edittable
60
EDITTABLE_GH_ACCOUNT=	cosmocode:plugin_edittable
61
EDITTABLE_GH_PROJECT=	edittable:plugin_edittable
62
EDITTABLE_GH_TAGNAME=	3e7b1bdcbf8a188f6f2f3b97232f3ccbed899645:plugin_edittable
63
64
MOVE_DESC=		Extended edit functions such as renaming or deleting a page
65
MOVE_DIRS=		move
66
MOVE_GH_ACCOUNT=	michitux:plugin_move
67
MOVE_GH_PROJECT=	dokuwiki-plugin-move:plugin_move
68
MOVE_GH_TAGNAME=	f2416147498d9b33e36445820b54e015f1968776:plugin_move
69
70
SEARCHINDEX_DESC=	Rebuild the search index
71
SEARCHINDEX_DIRS=	searchindex
72
SEARCHINDEX_GH_ACCOUNT=	splitbrain:plugin_searchindex
73
SEARCHINDEX_GH_PROJECT=	dokuwiki-plugin-searchindex:plugin_searchindex
74
SEARCHINDEX_GH_TAGNAME=	32e56a59996ea3a10b3a70f0239fc13d58f1174b:plugin_searchindex
75
76
TAG_DESC=		Assign category tags to wiki pages
77
TAG_DIRS=		tag
78
TAG_GH_ACCOUNT=		dokufreaks:plugin_tag
79
TAG_GH_PROJECT=		plugin-tag:plugin_tag
80
TAG_GH_TAGNAME=		43e7b584f35e6242758fdf42b45e96571abb1ef1:plugin_tag
81
82
TRANSLATION_DESC=	Help with translation efforts in a multilingual wiki
83
TRANSLATION_DIRS=	translation
84
TRANSLATION_GH_ACCOUNT=	splitbrain:plugin_translation
85
TRANSLATION_GH_PROJECT=	dokuwiki-plugin-translation:plugin_translation
86
TRANSLATION_GH_TAGNAME=	c3bb052a4dbd63809835e68809b904fafb5e613e:plugin_translation
87
88
UPGRADE_DESC=		Update with a few clicks from the admin interface
89
UPGRADE_DIRS=		upgrade
90
UPGRADE_GH_ACCOUNT=	splitbrain:plugin_upgrade
91
UPGRADE_GH_PROJECT=	dokuwiki-plugin-upgrade:plugin_upgrade
92
UPGRADE_GH_TAGNAME=	dd8327d13a27f455530fc12f7b0cfaeca0b415b3:plugin_upgrade
93
94
post-extract-CATLIST-on:
95
	@${MKDIR} ${WRKSRC}/lib/plugins/catlist/
96
	@${MV} ${WRKSRC_plugin_catlist}/* ${WRKSRC}/lib/plugins/catlist/
97
98
post-extract-CLEANUP-on:
99
	@${MKDIR} ${WRKSRC}/lib/plugins/cleanup/
100
	@${MV} ${WRKSRC_plugin_cleanup}/* ${WRKSRC}/lib/plugins/cleanup/
101
102
post-extract-CUSTOMBUTTONS-on:
103
	@${MKDIR} ${WRKSRC}/lib/plugins/custombuttons/
104
	@${MV} ${WRKSRC_plugin_custombuttons}/* ${WRKSRC}/lib/plugins/custombuttons/
105
106
post-extract-EDITTABLE-on:
107
	@${MKDIR} ${WRKSRC}/lib/plugins/edittable/
108
	@${MV} ${WRKSRC_plugin_edittable}/* ${WRKSRC}/lib/plugins/edittable/
109
110
post-extract-MOVE-on:
111
	@${MKDIR} ${WRKSRC}/lib/plugins/move/
112
	@${MV} ${WRKSRC_plugin_move}/* ${WRKSRC}/lib/plugins/move/
113
114
post-extract-SEARCHINDEX-on:
115
	@${MKDIR} ${WRKSRC}/lib/plugins/searchindex/
116
	@${MV} ${WRKSRC_plugin_searchindex}/* ${WRKSRC}/lib/plugins/searchindex/
117
118
post-extract-TAG-on:
119
	@${MKDIR} ${WRKSRC}/lib/plugins/tag/
120
	@${MV} ${WRKSRC_plugin_tag}/* ${WRKSRC}/lib/plugins/tag/
121
122
post-extract-TRANSLATION-on:
123
	@${MKDIR} ${WRKSRC}/lib/plugins/translation/
124
	@${MV} ${WRKSRC_plugin_translation}/* ${WRKSRC}/lib/plugins/translation/
125
126
post-extract-UPGRADE-on:
127
	@${MKDIR} ${WRKSRC}/lib/plugins/upgrade/
128
	@${MV} ${WRKSRC_plugin_upgrade}/* ${WRKSRC}/lib/plugins/upgrade/
129
130
do-install:
131
	# Prepare.
132
	@${FIND} ${WRKSRC} -type f \( \
133
		-name '*.orig' \
134
		-o -name '*.bak' \
135
		-o -name 'deleted.files' \
136
		-o -name '.gitignore' \) -delete
137
	@${FIND} ${WRKSRC}/conf -type f \( \
138
		-name '*.php' \
139
		-o -name '*.conf' \
140
		-o -name '*.json' \
141
		\) -exec ${MV} {} {}.sample \;
142
	@${FIND} ${WRKSRC}/lib/plugins -type f \( \
143
		-name 'default.php' \
144
		-o -name 'metadata.php' \
145
		\) -exec ${MV} {} {}.sample \;
146
	# Create empty config files to set perm on install.
147
.for __FILE in ${CONF_FILES}
148
	@${TOUCH} "${WWWDIR}/conf/${__FILE}"
149
.endfor
150
	# Install base files.
151
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
152
153
post-stage:
154
	# Generate plist.
155
	@${SETENV} ${CO_ENV} ${SH} ${SCRIPTSDIR}/check-stagedir.sh makeplist | \
156
		${GREP} -v ^\/ | \
157
		${SED} -e 's|%%WWWDIR%%|www/${PORTNAME}|' \
158
			-e 's|%%PORTEXAMPLES%%||' \
159
			-e 's|%%EXAMPLESDIR%%|share/examples/${PORTNAME}|' \
160
			> ${TMPPLIST}
161
	# Mark config files as samples in plist.
162
	@${REINPLACE_CMD} -E "s|(.*\.sample)$$|@sample \1|" ${TMPPLIST}
163
	# Force perms.
164
	@${ECHO_CMD} "@postexec chown -R root:${WWWGRP} ${WWWDIR}" >> ${TMPPLIST}
165
	@${ECHO_CMD} "@postexec chmod -R =t,u=rwX,g=rX,o= ${WWWDIR}" >> ${TMPPLIST}
166
	@${ECHO_CMD} "@postexec chmod -R u=rwX,g=rwX,o= ${WWWDIR}/data" >> ${TMPPLIST}
167
.for __FILE in ${CONF_FILES}
168
	@${ECHO_CMD} "@postexec chmod 0660 ${WWWDIR}/conf/${__FILE}" >> ${TMPPLIST}
169
.endfor
170
171
.include <bsd.port.mk>
(-)b/www/dokuwiki-devel/distinfo (+21 lines)
Added Link Here
1
TIMESTAMP = 1643419731
2
SHA256 (splitbrain-dokuwiki-20220127-4ef5d38db53e045a81f129b29a8b886cecc38497_GH0.tar.gz) = fe72a2bb717a6f07fdf1679df8b21e2982415cfdb3fca738a1c8adbb97372a42
3
SIZE (splitbrain-dokuwiki-20220127-4ef5d38db53e045a81f129b29a8b886cecc38497_GH0.tar.gz) = 3874356
4
SHA256 (xif-fr-dokuwiki-plugin-catlist-065f8d2f4817409989b9342b901163452fb9f547_GH0.tar.gz) = 6163e7b05391cae0f3cfdf9e2fe20dbc2ac19e42dc70b91b29e1271cc8f490ab
5
SIZE (xif-fr-dokuwiki-plugin-catlist-065f8d2f4817409989b9342b901163452fb9f547_GH0.tar.gz) = 11566
6
SHA256 (cosmocode-dokuwiki-plugin-cleanup-dc8184bc282ab1ef78586026d5dced37c5705eb6_GH0.tar.gz) = a0a88a07253b2a0ffe9ed95124832031551445271aad7a8319e708cd60e652d4
7
SIZE (cosmocode-dokuwiki-plugin-cleanup-dc8184bc282ab1ef78586026d5dced37c5705eb6_GH0.tar.gz) = 10559
8
SHA256 (ConX-dokuwiki-plugin-custombuttons-fe62df3de7f643225d6767b481f478e901f35a40_GH0.tar.gz) = 320562458a67b96f42d2e86702b5cbf4a6c1fd0f79338591a8756d543290db28
9
SIZE (ConX-dokuwiki-plugin-custombuttons-fe62df3de7f643225d6767b481f478e901f35a40_GH0.tar.gz) = 365913
10
SHA256 (cosmocode-edittable-3e7b1bdcbf8a188f6f2f3b97232f3ccbed899645_GH0.tar.gz) = c03f1d233b3c6b356fa10844780390c2d5f421dbe290da5a34f9bd67648efc94
11
SIZE (cosmocode-edittable-3e7b1bdcbf8a188f6f2f3b97232f3ccbed899645_GH0.tar.gz) = 339636
12
SHA256 (michitux-dokuwiki-plugin-move-f2416147498d9b33e36445820b54e015f1968776_GH0.tar.gz) = 26906823bc056dda92712b33a7df8183188d29f3ea90691e553b3a699c1b43ec
13
SIZE (michitux-dokuwiki-plugin-move-f2416147498d9b33e36445820b54e015f1968776_GH0.tar.gz) = 86121
14
SHA256 (splitbrain-dokuwiki-plugin-searchindex-32e56a59996ea3a10b3a70f0239fc13d58f1174b_GH0.tar.gz) = 7a2d33dbe1bf7c1ab9eaf722a92bc0996a261fe72fa16e9b0a4ce828b8ce1d40
15
SIZE (splitbrain-dokuwiki-plugin-searchindex-32e56a59996ea3a10b3a70f0239fc13d58f1174b_GH0.tar.gz) = 13313
16
SHA256 (dokufreaks-plugin-tag-43e7b584f35e6242758fdf42b45e96571abb1ef1_GH0.tar.gz) = 74920e3fe7a570ca9abaa36e6fadb06624553584edcd5ef95879a6d3956bc81b
17
SIZE (dokufreaks-plugin-tag-43e7b584f35e6242758fdf42b45e96571abb1ef1_GH0.tar.gz) = 43405
18
SHA256 (splitbrain-dokuwiki-plugin-translation-c3bb052a4dbd63809835e68809b904fafb5e613e_GH0.tar.gz) = e9fd9aac29348942c07a64262f58ec340d1a52d4f4965dd0e01894caabaa9859
19
SIZE (splitbrain-dokuwiki-plugin-translation-c3bb052a4dbd63809835e68809b904fafb5e613e_GH0.tar.gz) = 132342
20
SHA256 (splitbrain-dokuwiki-plugin-upgrade-dd8327d13a27f455530fc12f7b0cfaeca0b415b3_GH0.tar.gz) = 28ead579c33ba6fb51932b4b6502a42e82c77c8192f923f30cb13f7dc5327342
21
SIZE (splitbrain-dokuwiki-plugin-upgrade-dd8327d13a27f455530fc12f7b0cfaeca0b415b3_GH0.tar.gz) = 60653
(-)b/www/dokuwiki-devel/files/patch-wrong-2388-fix (+11 lines)
Added Link Here
1
--- inc/httputils.php.orig	2018-04-22 11:17:57 UTC
2
+++ inc/httputils.php
3
@@ -82,8 +82,6 @@ function http_sendfile($file) {
4
         ob_end_clean();
5
         exit;
6
     }elseif($conf['xsendfile'] == 3){
7
-        // FS#2388 nginx just needs the relative path.
8
-        $file = DOKU_REL.substr($file, strlen(fullpath(DOKU_INC)) + 1);
9
         header("X-Accel-Redirect: $file");
10
         ob_end_clean();
11
         exit;
(-)b/www/dokuwiki-devel/files/pkg-message.in (+25 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
The wiki program have been installed to %%WWWDIR%%.
5
6
Please configure your web server to allow running PHP scripts there.
7
8
Please create dedicated data directory outside the installation directory
9
and make it owned by the process running these PHP scripts.  It is important
10
to make sure that your PHP intepreter does not allow running PHP scripts
11
there.
12
13
For first install, you may have to manually copy the contents from
14
%%WWWDIR%%/data into the newly created data directory and change
15
the owner of %%WWWDIR%%/conf to the web server.
16
17
Please go to http://www.your.host/dokuwiki/install.php to finish the
18
installation.  For FULL configuration instructions, see
19
http://wiki.splitbrain.org/wiki:config
20
21
After installation please change the permissions of
22
%%WWWDIR%%/conf back to root:wheel.
23
EOM
24
}
25
]
(-)b/www/dokuwiki-devel/pkg-descr (+8 lines)
Added Link Here
1
DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at
2
creating documentation of any kind. It is targeted at developer teams,
3
workgroups and small companies. It has a simple but powerful syntax which
4
makes sure the datafiles remain readable outside the Wiki and eases the
5
creation of structured texts.
6
All data is stored in plain text files - no database is required.
7
8
WWW: https://www.dokuwiki.org/

Return to bug 261542