View | Details | Raw Unified | Return to bug 99255
Collapse All | Expand All

(-)/usr/home/chinsan/project/dokuwiki/Makefile (-15 / +5 lines)
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>
(-)/usr/home/chinsan/project/dokuwiki/pkg-message (-1 / +7 lines)
Lines 1-6 Link Here
1
=================================================================
1
=================================================================
2
          	**** NOTE ****
2
          	**** NOTE ****
3
  Remember to edit the following file:
3
1) Please add the following to your apache config, and restart.
4
    [1;32m#
5
    # Directives to allow use of dokuwki
6
    #
7
    Alias /%%PORTNAME%% "%%PREFIX%%/%%DOKUWIKI_DIR%%/"[m
8
9
2) Remember to edit the following file:
4
    [1;36m%%PREFIX%%/%%DOKUWIKI_DIR%%/conf/local.php[m
10
    [1;36m%%PREFIX%%/%%DOKUWIKI_DIR%%/conf/local.php[m
5
11
6
  For FULL configuration instructions see
12
  For FULL configuration instructions see
(-)/usr/home/chinsan/project/dokuwiki/pkg-plist (+1 lines)
Lines 19-24 Link Here
19
%%DOKUWIKI_DIR%%/conf/wordblock.conf
19
%%DOKUWIKI_DIR%%/conf/wordblock.conf
20
%%DOKUWIKI_DIR%%/conf/words.aspell.dist
20
%%DOKUWIKI_DIR%%/conf/words.aspell.dist
21
%%DOKUWIKI_DIR%%/data/.htaccess
21
%%DOKUWIKI_DIR%%/data/.htaccess
22
%%DOKUWIKI_DIR%%/data/changes.log
22
%%DOKUWIKI_DIR%%/data/attic/_dummy
23
%%DOKUWIKI_DIR%%/data/attic/_dummy
23
%%DOKUWIKI_DIR%%/data/cache/_dummy
24
%%DOKUWIKI_DIR%%/data/cache/_dummy
24
%%DOKUWIKI_DIR%%/data/locks/_dummy
25
%%DOKUWIKI_DIR%%/data/locks/_dummy

Return to bug 99255