- Register CONFLICTS.
- Remove hardcoded variables (test, www:www). PR: ports/89694 Submitted by: maintainer
This commit is contained in:
parent
73608e088f
commit
fcfdbaa630
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=149883
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= phpwiki
|
||||
PORTVERSION= 1.2.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= phpwiki
|
||||
@ -14,6 +15,8 @@ MASTER_SITE_SUBDIR= phpwiki
|
||||
MAINTAINER= babak@farrokhi.net
|
||||
COMMENT= A PHP WikiWikiWeb
|
||||
|
||||
CONFLICTS= phpwiki-1.3*
|
||||
|
||||
.if !defined(WITHOUT_PHP_DEPENDS)
|
||||
USE_PHP= ctype pcre posix session tokenizer xml zlib
|
||||
.endif
|
||||
@ -38,14 +41,14 @@ do-configure:
|
||||
do-install:
|
||||
-${MKDIR} ${PREFIX}/${PHPWIKI}/lib
|
||||
-${MKDIR} ${PREFIX}/${PHPWIKI}/pages
|
||||
@${CHOWN} www:www ${PREFIX}/${PHPWIKI}/pages
|
||||
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPWIKI}/pages
|
||||
@${CHMOD} 755 ${PREFIX}/${PHPWIKI}/pages
|
||||
@(cd ${WRKSRC} && ${CP} ${ROOTFILES} ${PREFIX}/${PHPWIKI}/ )
|
||||
.for i in ${ROOTDIRS}
|
||||
@(cd ${WRKSRC} && ${CP} -R ${i} ${PREFIX}/${PHPWIKI}/ )
|
||||
.endfor
|
||||
.for i in ${USERFILES}
|
||||
@if test ! -f ${PREFIX}/${PHPWIKI}/${i} ; then \
|
||||
@if ${TEST} ! -f ${PREFIX}/${PHPWIKI}/${i} ; then \
|
||||
${CP} ${PREFIX}/${PHPWIKI}/${i}-dist \
|
||||
${PREFIX}/${PHPWIKI}/${i}; \
|
||||
fi
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= phpwiki
|
||||
PORTVERSION= 1.2.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= phpwiki
|
||||
@ -14,6 +15,8 @@ MASTER_SITE_SUBDIR= phpwiki
|
||||
MAINTAINER= babak@farrokhi.net
|
||||
COMMENT= A PHP WikiWikiWeb
|
||||
|
||||
CONFLICTS= phpwiki-1.3*
|
||||
|
||||
.if !defined(WITHOUT_PHP_DEPENDS)
|
||||
USE_PHP= ctype pcre posix session tokenizer xml zlib
|
||||
.endif
|
||||
@ -38,14 +41,14 @@ do-configure:
|
||||
do-install:
|
||||
-${MKDIR} ${PREFIX}/${PHPWIKI}/lib
|
||||
-${MKDIR} ${PREFIX}/${PHPWIKI}/pages
|
||||
@${CHOWN} www:www ${PREFIX}/${PHPWIKI}/pages
|
||||
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPWIKI}/pages
|
||||
@${CHMOD} 755 ${PREFIX}/${PHPWIKI}/pages
|
||||
@(cd ${WRKSRC} && ${CP} ${ROOTFILES} ${PREFIX}/${PHPWIKI}/ )
|
||||
.for i in ${ROOTDIRS}
|
||||
@(cd ${WRKSRC} && ${CP} -R ${i} ${PREFIX}/${PHPWIKI}/ )
|
||||
.endfor
|
||||
.for i in ${USERFILES}
|
||||
@if test ! -f ${PREFIX}/${PHPWIKI}/${i} ; then \
|
||||
@if ${TEST} ! -f ${PREFIX}/${PHPWIKI}/${i} ; then \
|
||||
${CP} ${PREFIX}/${PHPWIKI}/${i}-dist \
|
||||
${PREFIX}/${PHPWIKI}/${i}; \
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user