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

Collapse All | Expand All

(-)b/www/dokuwiki-devel/Makefile (+163 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
33
OPTIONS_GROUP=	PLUGINS
34
OPTIONS_GROUP_PLUGINS=	CATLIST CLEANUP CUSTOMBUTTONS EDITTABLE MOVE \
35
			SEARCHINDEX TAG TRANSLATION UPGRADE
36
OPTIONS_SUB=	yes
37
38
CATLIST_DESC=		Adds a form to create a new page in the current namespace
39
CATLIST_DIRS=		catlist
40
CATLIST_GH_ACCOUNT=	xif-fr:plugin_catlist
41
CATLIST_GH_PROJECT=	dokuwiki-plugin-catlist:plugin_catlist
42
CATLIST_GH_TAGNAME=	065f8d2f4817409989b9342b901163452fb9f547:plugin_catlist
43
44
CLEANUP_DESC=		Perform file cleanup in the wiki
45
CLEANUP_DIRS=		cleanup
46
CLEANUP_GH_ACCOUNT=	cosmocode:plugin_cleanup
47
CLEANUP_GH_PROJECT=	dokuwiki-plugin-cleanup:plugin_cleanup
48
CLEANUP_GH_TAGNAME=	dc8184bc282ab1ef78586026d5dced37c5705eb6:plugin_cleanup
49
50
CUSTOMBUTTONS_DESC=	Adding custom buttons to the toolbar
51
CUSTOMBUTTONS_DIRS=	custombuttons
52
CUSTOMBUTTONS_GH_ACCOUNT= ConX:plugin_custombuttons
53
CUSTOMBUTTONS_GH_PROJECT= dokuwiki-plugin-custombuttons:plugin_custombuttons
54
CUSTOMBUTTONS_GH_TAGNAME= fe62df3de7f643225d6767b481f478e901f35a40:plugin_custombuttons
55
56
EDITTABLE_DESC=		Provides a visual table editing and inserting interface
57
EDITTABLE_DIRS=		edittable
58
EDITTABLE_GH_ACCOUNT=	cosmocode:plugin_edittable
59
EDITTABLE_GH_PROJECT=	edittable:plugin_edittable
60
EDITTABLE_GH_TAGNAME=	3e7b1bdcbf8a188f6f2f3b97232f3ccbed899645:plugin_edittable
61
62
MOVE_DESC=		Extended edit functions such as renaming or deleting a page
63
MOVE_DIRS=		move
64
MOVE_GH_ACCOUNT=	michitux:plugin_move
65
MOVE_GH_PROJECT=	dokuwiki-plugin-move:plugin_move
66
MOVE_GH_TAGNAME=	f2416147498d9b33e36445820b54e015f1968776:plugin_move
67
68
SEARCHINDEX_DESC=	Rebuild the search index
69
SEARCHINDEX_DIRS=	searchindex
70
SEARCHINDEX_GH_ACCOUNT=	splitbrain:plugin_searchindex
71
SEARCHINDEX_GH_PROJECT=	dokuwiki-plugin-searchindex:plugin_searchindex
72
SEARCHINDEX_GH_TAGNAME=	32e56a59996ea3a10b3a70f0239fc13d58f1174b:plugin_searchindex
73
74
TAG_DESC=		Assign category tags to wiki pages
75
TAG_DIRS=		tag
76
TAG_GH_ACCOUNT=		dokufreaks:plugin_tag
77
TAG_GH_PROJECT=		plugin-tag:plugin_tag
78
TAG_GH_TAGNAME=		43e7b584f35e6242758fdf42b45e96571abb1ef1:plugin_tag
79
80
TRANSLATION_DESC=	Help with translation efforts in a multilingual wiki
81
TRANSLATION_DIRS=	translation
82
TRANSLATION_GH_ACCOUNT=	splitbrain:plugin_translation
83
TRANSLATION_GH_PROJECT=	dokuwiki-plugin-translation:plugin_translation
84
TRANSLATION_GH_TAGNAME=	c3bb052a4dbd63809835e68809b904fafb5e613e:plugin_translation
85
86
UPGRADE_DESC=		Update with a few clicks from the admin interface
87
UPGRADE_DIRS=		upgrade
88
UPGRADE_GH_ACCOUNT=	splitbrain:plugin_upgrade
89
UPGRADE_GH_PROJECT=	dokuwiki-plugin-upgrade:plugin_upgrade
90
UPGRADE_GH_TAGNAME=	dd8327d13a27f455530fc12f7b0cfaeca0b415b3:plugin_upgrade
91
92
post-extract-CATLIST-on:
93
	@${MKDIR} ${WRKSRC}/lib/plugins/catlist/
94
	@${MV} ${WRKSRC_plugin_catlist}/* ${WRKSRC}/lib/plugins/catlist/
95
96
post-extract-CLEANUP-on:
97
	@${MKDIR} ${WRKSRC}/lib/plugins/cleanup/
98
	@${MV} ${WRKSRC_plugin_cleanup}/* ${WRKSRC}/lib/plugins/cleanup/
99
100
post-extract-CUSTOMBUTTONS-on:
101
	@${MKDIR} ${WRKSRC}/lib/plugins/custombuttons/
102
	@${MV} ${WRKSRC_plugin_custombuttons}/* ${WRKSRC}/lib/plugins/custombuttons/
103
104
post-extract-EDITTABLE-on:
105
	@${MKDIR} ${WRKSRC}/lib/plugins/edittable/
106
	@${MV} ${WRKSRC_plugin_edittable}/* ${WRKSRC}/lib/plugins/edittable/
107
108
post-extract-MOVE-on:
109
	@${MKDIR} ${WRKSRC}/lib/plugins/move/
110
	@${MV} ${WRKSRC_plugin_move}/* ${WRKSRC}/lib/plugins/move/
111
112
post-extract-SEARCHINDEX-on:
113
	@${MKDIR} ${WRKSRC}/lib/plugins/searchindex/
114
	@${MV} ${WRKSRC_plugin_searchindex}/* ${WRKSRC}/lib/plugins/searchindex/
115
116
post-extract-TAG-on:
117
	@${MKDIR} ${WRKSRC}/lib/plugins/tag/
118
	@${MV} ${WRKSRC_plugin_tag}/* ${WRKSRC}/lib/plugins/tag/
119
120
post-extract-TRANSLATION-on:
121
	@${MKDIR} ${WRKSRC}/lib/plugins/translation/
122
	@${MV} ${WRKSRC_plugin_translation}/* ${WRKSRC}/lib/plugins/translation/
123
124
post-extract-UPGRADE-on:
125
	@${MKDIR} ${WRKSRC}/lib/plugins/upgrade/
126
	@${MV} ${WRKSRC_plugin_upgrade}/* ${WRKSRC}/lib/plugins/upgrade/
127
128
do-install:
129
	# Prepare.
130
	@${FIND} ${WRKSRC} -type f \( \
131
		-name '*.orig' \
132
		-o -name '*.bak' \
133
		-o -name 'deleted.files' \
134
		-o -name '.gitignore' \) -delete
135
	@${FIND} ${WRKSRC}/conf -type f \( \
136
		-name '*.php' \
137
		-o -name '*.conf' \
138
		-o -name '*.json' \
139
		\) -exec ${MV} {} {}.sample \;
140
	@${FIND} ${WRKSRC}/lib/plugins -type f \( \
141
		-name 'default.php' \
142
		-o -name 'metadata.php' \
143
		\) -exec ${MV} {} {}.sample \;
144
	# Install base files.
145
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
146
147
post-stage:
148
	# Generate plist.
149
	@${SETENV} ${CO_ENV} ${SH} ${SCRIPTSDIR}/check-stagedir.sh makeplist | \
150
		${GREP} -v ^\/ | \
151
		${SED} -e 's|%%WWWDIR%%|www/${PORTNAME}|' \
152
			-e 's|%%PORTEXAMPLES%%||' \
153
			-e 's|%%EXAMPLESDIR%%|share/examples/${PORTNAME}|' \
154
			> ${TMPPLIST}
155
	# Mark config files as samples in plist.
156
	@${REINPLACE_CMD} -E "s|(.*\.sample)$$|@sample \1|" ${TMPPLIST}
157
	# Force perms.
158
	@${ECHO_CMD} "@postexec chown -R root:${WWWGRP} ${WWWDIR}" >> ${TMPPLIST}
159
	@${ECHO_CMD} "@postexec chmod -R =t,u=rwX,g=rX,o= ${WWWDIR}" >> ${TMPPLIST}
160
	@${ECHO_CMD} "@postexec chmod -R =t,u=rwX,g=rwX,o= ${WWWDIR}/conf" >> ${TMPPLIST}
161
	@${ECHO_CMD} "@postexec chmod -R u=rwX,g=rwX,o= ${WWWDIR}/data" >> ${TMPPLIST}
162
163
.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