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> |