2013-05-13 19:45:26 +00:00
|
|
|
# Created by: Chin-San Huang <chinsan@mail2000.com.tw>
|
2005-04-10 16:49:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dokuwiki
|
2006-03-20 21:55:38 +00:00
|
|
|
PORTVERSION= ${DIST_VER:S/${PORTNAME}//:S/-//g}
|
2005-04-10 16:49:08 +00:00
|
|
|
CATEGORIES= www
|
2006-03-20 21:55:38 +00:00
|
|
|
MASTER_SITES= http://www.splitbrain.org/_media/projects/dokuwiki/ \
|
2007-06-27 16:52:04 +00:00
|
|
|
LOCAL/chinsan/${PORTNAME}
|
2006-03-20 21:55:38 +00:00
|
|
|
DISTNAME= ${DIST_VER}
|
2005-04-10 16:49:08 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2010-01-03 01:38:01 +00:00
|
|
|
MAINTAINER= delphij@FreeBSD.org
|
2005-04-10 16:49:08 +00:00
|
|
|
COMMENT= A simple and easy to use wiki, no database required
|
|
|
|
|
2013-01-14 03:45:02 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2013-05-13 19:45:26 +00:00
|
|
|
DIST_VER= ${PORTNAME}-2013-05-10
|
2011-01-16 02:49:16 +00:00
|
|
|
USE_PHP= gd mbstring openssl pcre session xml zlib
|
2005-04-10 16:49:08 +00:00
|
|
|
NO_BUILD= YES
|
|
|
|
WANT_PHP_WEB= YES
|
2005-05-20 11:38:34 +00:00
|
|
|
|
2006-06-23 21:09:31 +00:00
|
|
|
DOKUWIKI_DIR?= www/${PORTNAME}
|
2006-03-20 21:55:38 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DIST_VER}
|
2006-06-14 03:27:15 +00:00
|
|
|
PLIST_SUB= DOKUWIKI_DIR=${DOKUWIKI_DIR}
|
2006-11-27 03:18:13 +00:00
|
|
|
TEMP_PLIST= ${WRKDIR}/temp-pkg-plist
|
2012-09-03 07:59:57 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST+= PORTNAME=${PORTNAME} DOKUWIKI_DIR=${DOKUWIKI_DIR}
|
2005-05-20 11:38:34 +00:00
|
|
|
|
2007-07-24 16:15:56 +00:00
|
|
|
REINPLACE_ARGS= -i ''
|
|
|
|
|
2005-04-10 16:49:08 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-27 03:18:13 +00:00
|
|
|
# This target is only meant to be used by the port maintainer.
|
|
|
|
x-generate-plist:
|
|
|
|
@cd ${WRKSRC} && ${FIND} -s . -type f | \
|
|
|
|
${SED} -e 's|^./||;s|^|%%DOKUWIKI_DIR%%/|' > ${TEMP_PLIST} \
|
|
|
|
&& ${FIND} -d * -type d | \
|
|
|
|
${SED} -e 's|^|@dirrm %%DOKUWIKI_DIR%%/|' >> ${TEMP_PLIST} \
|
|
|
|
&& ${ECHO_CMD} "@dirrmtry %%DOKUWIKI_DIR%%" >> ${TEMP_PLIST}
|
2005-04-10 16:49:08 +00:00
|
|
|
|
2007-07-23 10:57:28 +00:00
|
|
|
post-patch:
|
2008-06-16 08:00:25 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' ${WRKSRC}/bin/*.php
|
2010-11-08 18:59:22 +00:00
|
|
|
@${FIND} ${WRKSRC} -name '*.orig' -delete
|
2011-01-28 14:05:35 +00:00
|
|
|
@${RM} ${WRKSRC}/data/deleted.files
|
2007-07-23 10:57:28 +00:00
|
|
|
|
2005-04-10 16:49:08 +00:00
|
|
|
do-install:
|
2005-11-06 22:44:44 +00:00
|
|
|
# Data files
|
2005-07-14 14:36:58 +00:00
|
|
|
-${MKDIR} ${PREFIX}/${DOKUWIKI_DIR}
|
|
|
|
@${CP} -R ${WRKSRC}/ ${PREFIX}/${DOKUWIKI_DIR}
|
2006-03-20 21:55:38 +00:00
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DOKUWIKI_DIR}
|
2005-04-10 16:49:08 +00:00
|
|
|
|
|
|
|
post-install:
|
2012-09-03 07:59:57 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-04-10 16:49:08 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|