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