Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= dokuwiki |
8 |
PORTNAME= dokuwiki |
9 |
PORTVERSION= ${DIST_VER:S/${PORTNAME}//:S/-//g} |
9 |
PORTVERSION= ${DIST_VER:S/${PORTNAME}//:S/-//g} |
10 |
PORTREVISION= 3 |
10 |
PORTREVISION= 4 |
11 |
CATEGORIES= www |
11 |
CATEGORIES= www |
12 |
MASTER_SITES= http://www.splitbrain.org/_media/projects/dokuwiki/ \ |
12 |
MASTER_SITES= http://www.splitbrain.org/_media/projects/dokuwiki/ \ |
13 |
http://dev.splitbrain.org/browse/snapshots/ |
13 |
http://dev.splitbrain.org/browse/snapshots/ |
Lines 18-35
Link Here
|
18 |
COMMENT= A simple and easy to use wiki, no database required |
18 |
COMMENT= A simple and easy to use wiki, no database required |
19 |
|
19 |
|
20 |
DIST_VER= ${PORTNAME}-2006-03-09 |
20 |
DIST_VER= ${PORTNAME}-2006-03-09 |
21 |
USE_PHP= gd pcre session xml zlib |
21 |
USE_PHP= gd mbstring pcre session xml zlib |
22 |
NO_BUILD= YES |
22 |
NO_BUILD= YES |
23 |
WANT_PHP_WEB= YES |
23 |
WANT_PHP_WEB= YES |
24 |
|
24 |
|
25 |
WWWDOCROOT?= www/data |
25 |
DOKUWIKI_DIR?= www/${PORTNAME} |
26 |
DOKUWIKI_URL?= ${PORTNAME} |
|
|
27 |
DOKUWIKI_DIR?= www/${DOKUWIKI_URL} |
28 |
WRKSRC= ${WRKDIR}/${DIST_VER} |
26 |
WRKSRC= ${WRKDIR}/${DIST_VER} |
29 |
PLIST_SUB= DOKUWIKI_DIR=${DOKUWIKI_DIR} |
27 |
PLIST_SUB= DOKUWIKI_DIR=${DOKUWIKI_DIR} |
30 |
|
28 |
|
31 |
.if defined(BATCH) |
29 |
.if defined(BATCH) |
32 |
WIKI_LANG?=en |
30 |
WIKI_LANG?= en |
33 |
.endif |
31 |
.endif |
34 |
|
32 |
|
35 |
.include <bsd.port.pre.mk> |
33 |
.include <bsd.port.pre.mk> |
Lines 79-92
Link Here
|
79 |
@${ECHO_MSG} '*******************************************************' |
77 |
@${ECHO_MSG} '*******************************************************' |
80 |
.endif |
78 |
.endif |
81 |
|
79 |
|
82 |
pre-fetch: |
|
|
83 |
.if ${DOKUWIKI_DIR} == ${WWWDOCROOT}/${DOKUWIKI_URL} |
84 |
@${ECHO_MSG} "" |
85 |
@${ECHO_MSG} "You can define DOKUWIKI_DIR to override default '${DOKUWIKI_DIR}'" |
86 |
@${ECHO_MSG} "installed under ${PREFIX}" |
87 |
@${ECHO_MSG} "" |
88 |
.endif |
89 |
|
90 |
pre-patch: |
80 |
pre-patch: |
91 |
.if defined(WIKI_LANG) |
81 |
.if defined(WIKI_LANG) |
92 |
@${REINPLACE_CMD} -e 's|lang\(.*\)'en'|lang\1'${WIKI_LANG}'|g' \ |
82 |
@${REINPLACE_CMD} -e 's|lang\(.*\)'en'|lang\1'${WIKI_LANG}'|g' \ |
Lines 104-110
Link Here
|
104 |
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKI_DIR} |
94 |
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKI_DIR} |
105 |
|
95 |
|
106 |
post-install: |
96 |
post-install: |
107 |
@${SED} -e 's|%%PREFIX%%|${PREFIX}|' \ |
97 |
@${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%PORTNAME%%|${PORTNAME}|' \ |
108 |
-e 's|%%DOKUWIKI_DIR%%|${DOKUWIKI_DIR}|' ${PKGMESSAGE} |
98 |
-e 's|%%DOKUWIKI_DIR%%|${DOKUWIKI_DIR}|' ${PKGMESSAGE} |
109 |
|
99 |
|
110 |
.include <bsd.port.post.mk> |
100 |
.include <bsd.port.post.mk> |