freebsd-ports/www/phpsurveyor/Makefile
Pav Lucistnik 88d2070990 PHP Surveyor is a set of PHP scripts that interact with MySQL to develop
surveys, publish surveys and collect responses to surveys. Once a survey
has been created it can be published as an online survey (displayed as
single questions, group by group or all in one page) or you can use a
dataentry system for administration of paper-based versions of the survey.
PHP Surveyor can produced 'branching' surveys (set conditions on whether
individual questions will display), can vary the look and feel of your
survey through a templating system, and can provide basic statistical
analysis of your survey results.

PR:		ports/79521
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu>
2005-04-05 20:25:59 +00:00

61 lines
1.4 KiB
Makefile

# New ports collection makefile for: phpsurveyor
# Date created: 21 March 2005
# Whom: janos.mohacsi@bsd.hu
#
# $FreeBSD$
#
PORTNAME= phpsurveyor
PORTVERSION= 0.98
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-0_98_final
MAINTAINER= janos.mohacsi@bsd.hu
COMMENT= A PHP-based survey building and runing system
USE_PHP= mysql session
WRKSRC= ${WRKDIR}
USE_ZIP= yes
#User-configurable variables
WWWDOCROOT?= www/data
PHPSURVEYORURL?= phpsurveyor
WWWOWN?= www
WWWGRP?= www
#
# End of user-configurable variables.
# Set/override/append to variables from bsd.port.mk:
#
NO_BUILD= yes
USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST_SUB+= PHPSURVEYORDIR=${PHPSURVEYORDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
# Set custom variables:
#
PHPSURVEYORDIR= ${WWWDOCROOT}/${PHPSURVEYORURL}
post-configure:
@ ${SED} \
-e 's#%%PREFIX%%#${PREFIX}#g' \
-e 's#%%PHPSURVEYORURL%%#${PHPSURVEYORURL}#g' \
-e 's#%%PHPSURVEYORDIR%%#${PHPSURVEYORDIR}#g' \
pkg-message > ${PKGMESSAGE}
do-install:
${MKDIR} -m 0755 ${PREFIX}/${PHPSURVEYORDIR}
cd ${WRKSRC} && ${FIND} * \( -name tmp -a -prune \) -o -print \
| ${TAR} cTf - - | ${TAR} xUCf ${PREFIX}/${PHPSURVEYORDIR} -
${MKDIR} ${PREFIX}/${PHPSURVEYORDIR}/tmp
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPSURVEYORDIR}
${CHMOD} 755 ${PREFIX}/${PHPSURVEYORDIR}/tmp
post-install:
.if !defined(BATCH)
@ ${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>