Date: Fri, 16 Sep 2011 02:20:09 GMT From: F <fumifumi@abacustech.jp> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/160748: [PATCH] www/limesurvey: Add knobs to reduce dependencies. Message-ID: <201109160220.p8G2K9Ns034855@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/160748; it has been noted by GNATS. From: F <fumifumi@abacustech.jp> To: FreeBSD-gnats-submit@FreeBSD.org Cc: cvs-src@yandex.ru, janos.mohacsi@bsd.hu Subject: Re: ports/160748: [PATCH] www/limesurvey: Add knobs to reduce dependencies. Date: Fri, 16 Sep 2011 11:15:49 +0900 (JST) ----Next_Part(Fri_Sep_16_11_15_49_2011_851)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, >> +.if defined(WITH_PGSQL) >> +IGNORE_WITH_PGSQL= 73 74 80 > ^^^^^^^^ > We don't have this versions in the tree anymore, > so please remove this unnecessary check. I see, thanks, Ruslan. Please replace by this one. Regards, --- F ----Next_Part(Fri_Sep_16_11_15_49_2011_851)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Description: limesurvey-knobs-for-1.91.patch Content-Disposition: inline; filename="limesurvey-knobs-for-1.91.patch" diff -ruN --exclude=CVS /usr/ports/www/limesurvey/Makefile /usr/ports/www/limesurvey-knobs/Makefile --- /usr/ports/www/limesurvey/Makefile 2011-06-12 16:08:38.000000000 +0900 +++ /usr/ports/www/limesurvey-knobs/Makefile 2011-09-16 10:38:58.000000000 +0900 @@ -14,9 +14,40 @@ MAINTAINER= janos.mohacsi@bsd.hu COMMENT= A PHP-based survey building and runing system -USE_PHP= ctype dom gd iconv json ldap mbstring mysql pcre \ - simplexml session xmlwriter zip -USE_MYSQL= server +LICENSE= GPLv2 + +# http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey +OPTIONS= PGSQL "Use PostgreSQL (instead of MySQL)" off \ + GD "Install PHP gd extention" on \ + LDAP "Install PHP LDAP extention" off \ + ZIP "Install PHP zip extention" off +# ZLIB "Install PHP zlib extention" off # For ComfortUpdate + +.include <bsd.port.options.mk> + +# http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey#Make_sure_you_can_use_LimeSurvey_on_your_website +.if defined(WITH_PGSQL) +USE_PGSQL= yes +USE_PHP= pgsql +.else +IGNORE_WITH_MYSQL= 323 40 +# server is not neccesery on this host. +#USE_MYSQL= server +USE_MYSQL= client +USE_PHP= mysql +.endif +.if defined(WITH_GD) +USE_PHP+= gd +.endif +.if defined(WITH_LDAP) +USE_PHP+= ldap +.endif +.if defined(WITH_ZIP) +USE_PHP+= zip +.endif +USE_PHP+= ctype dom iconv json mbstring pcre \ + simplexml session xmlwriter +WANT_PHP_WEB=yes WWWDOCROOT?= www PHPSURVEYORURL?= ${PORTNAME} @@ -30,13 +61,25 @@ PHPSURVEYORDIR= ${WWWDOCROOT}/${PHPSURVEYORURL} do-install: - ${MKDIR} ${WWWDIR} - @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} - ${MKDIR} ${WWWDIR}/tmp - ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} - ${CHMOD} 755 ${WWWDIR}/tmp - ${CHMOD} 755 ${WWWDIR}/templates - ${CHMOD} 755 ${WWWDIR}/upload + ${MKDIR} "${WWWDIR}" +.if defined(WITH_PGSQL) + ${SED} -E \ + -e 's/^(\$$databasetype[[:space:]]*=[[:space:]]*'"')mysql('"'.*)$$/\1postgres\2/' \ + -e 's/^(\$$databaseuser[[:space:]]*=[[:space:]]*'"')root('"'.*)$$/\1pgsql\2/' \ + "${WRKSRC}"/config.php >"${WRKSRC}"/config.php-dist + ${RM} "${WRKSRC}"/config.php +.else + ${MV} "${WRKSRC}"/config.php "${WRKSRC}"/config.php-dist +.endif + ${TEST} -e "${WWWDIR}"/config.php || ${CP} -p "${WRKSRC}"/config.php-dist "${WRKSRC}"/config.php + @cd "${WRKSRC}" && ${COPYTREE_SHARE} . "${WWWDIR}" + ${MKDIR} "${WWWDIR}"/tmp + ${CHOWN} -R "${WWWOWN}:${WWWGRP}" "${WWWDIR}" + ${CHMOD} 755 "${WWWDIR}"/tmp + ${CHMOD} 755 "${WWWDIR}"/templates + ${CHMOD} 755 "${WWWDIR}"/upload + ${CHOWN} -R 0 "${WWWDIR}"/admin + ${CHMOD} -R go-w "${WWWDIR}"/admin post-install: @${CAT} ${PKGMESSAGE} ----Next_Part(Fri_Sep_16_11_15_49_2011_851)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109160220.p8G2K9Ns034855>