1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

- Register CONFLICTS.

- Remove hardcoded variables (test, www:www).

PR:		ports/89694
Submitted by:	maintainer
This commit is contained in:
Florent Thoumie 2005-11-29 11:47:56 +00:00
parent 73608e088f
commit fcfdbaa630
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=149883
2 changed files with 10 additions and 4 deletions

View File

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

View File

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