2005-07-14 11:48:43 +00:00
|
|
|
# New ports collection makefile for: xaraya
|
|
|
|
# Date created: 2005-07-10
|
|
|
|
# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Try to specify WITH_PGSQL to use pgsql php extension. Mysql
|
|
|
|
# extension would be used by default.
|
|
|
|
|
|
|
|
PORTNAME= xaraya
|
2006-09-01 04:57:46 +00:00
|
|
|
PORTVERSION= 1.1.2
|
2005-07-14 11:48:43 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2006-08-17 19:09:41 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-base
|
2005-07-14 11:48:43 +00:00
|
|
|
|
2006-04-14 18:14:59 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-07-14 11:48:43 +00:00
|
|
|
COMMENT= Framework to create fully dynamic Content Mangement Solutions
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PHP= pgsql
|
|
|
|
.else
|
|
|
|
USE_PHP= mysql
|
|
|
|
.endif
|
|
|
|
NO_BUILD= yes
|
2006-08-17 19:09:41 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2005-07-14 11:48:43 +00:00
|
|
|
|
|
|
|
# May user to override this
|
|
|
|
XARAYADIR?= www/xaraya
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${RM} -f ${TMPPLIST}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/${XARAYADIR}
|
|
|
|
${CP} -r ${WRKSRC}/html/* ${PREFIX}/${XARAYADIR}
|
|
|
|
.if !defined(NOTOOLS)
|
2006-08-17 19:09:41 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${CP} -r ${WRKSRC}/tools/* ${EXAMPLESDIR}
|
2005-07-14 11:48:43 +00:00
|
|
|
.endif
|
|
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${XARAYADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${CP} -r ${WRKSRC}/docs/* ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Create plist
|
|
|
|
post-install:
|
|
|
|
@${FIND} ${PREFIX}/${XARAYADIR} ! -type d -and ! -name install.php \
|
|
|
|
-and ! -name upgrade.php | ${SED} -e \
|
|
|
|
's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PREFIX}/${XARAYADIR} -type f -and '(' -name install.php \
|
|
|
|
-or -name upgrade.php ')' | ${SED} -e \
|
|
|
|
's,^${PREFIX}/\(.*\),@unexec rm -f %D/\1 >/dev/null 2>\&1 || true,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PREFIX}/${XARAYADIR} -type d -and -path "*var*" | \
|
2006-01-23 07:04:10 +00:00
|
|
|
${SED} -e 's,^${PREFIX}/\(.*\),@unexec rmdir %D/\1 >/dev/null 2>\&1 || true,' | \
|
2005-07-14 11:48:43 +00:00
|
|
|
${SORT} -r >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PREFIX}/${XARAYADIR} -type d -and ! -path "*var*" | \
|
|
|
|
${SED} -e 's,^${PREFIX}/,@dirrm ,' | \
|
|
|
|
${SORT} -r >> ${TMPPLIST}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${FIND} ${DOCSDIR} ! -type d | ${SED} -e \
|
|
|
|
's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${DOCSDIR} -type d | ${SED} -e \
|
|
|
|
's,^${PREFIX}/,@dirrm ,' | \
|
|
|
|
${SORT} -r >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
.if !defined(NOTOOLS)
|
2006-08-17 19:09:41 +00:00
|
|
|
@${FIND} ${EXAMPLESDIR} ! -type d | ${SED} -e \
|
2005-07-14 11:48:43 +00:00
|
|
|
's,^${PREFIX}/,,' >> ${TMPPLIST}
|
2006-08-17 19:09:41 +00:00
|
|
|
@${FIND} ${EXAMPLESDIR} -type d | ${SED} -e \
|
2005-07-14 11:48:43 +00:00
|
|
|
's,^${PREFIX}/,@dirrm ,' | \
|
|
|
|
${SORT} -r >> ${TMPPLIST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|