Lines 17-32
COMMENT= A PHP-based survey building and runing system
Link Here
|
17 |
LICENSE= GPLv2 |
17 |
LICENSE= GPLv2 |
18 |
|
18 |
|
19 |
# http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey |
19 |
# http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey |
20 |
OPTIONS= PGSQL "Use PostgreSQL (instead of MySQL)" off \ |
20 |
OPTIONS_DEFINE= PGSQL GD LDAP ZIP |
21 |
GD "Install PHP gd extention" on \ |
21 |
OPTIONS_DEFAULT= GD |
22 |
LDAP "Install PHP LDAP extention" off \ |
22 |
|
23 |
ZIP "Install PHP zip extention" off |
23 |
PGSQL_DESC= Use PostgreSQL (instead of MySQL) |
24 |
# ZLIB "Install PHP zlib extention" off # For ComfortUpdate |
24 |
GD_DESC= Install PHP gd extension |
|
|
25 |
LDAP_DESC= Install PHP LDAP extension |
26 |
ZIP_DESC= Install PHP zip extension |
25 |
|
27 |
|
26 |
.include <bsd.port.options.mk> |
28 |
.include <bsd.port.options.mk> |
27 |
|
29 |
|
28 |
# http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey#Make_sure_you_can_use_LimeSurvey_on_your_website |
30 |
# http://docs.limesurvey.org/Installation&structure=English+Instructions+for+LimeSurvey#Make_sure_you_can_use_LimeSurvey_on_your_website |
29 |
.if defined(WITH_PGSQL) |
31 |
.if ${PORT_OPTIONS:MPGSQL} |
30 |
USE_PGSQL= yes |
32 |
USE_PGSQL= yes |
31 |
USE_PHP= pgsql |
33 |
USE_PHP= pgsql |
32 |
.else |
34 |
.else |
Lines 35-47
USE_PHP= pgsql
Link Here
|
35 |
USE_MYSQL= client |
37 |
USE_MYSQL= client |
36 |
USE_PHP= mysql |
38 |
USE_PHP= mysql |
37 |
.endif |
39 |
.endif |
38 |
.if defined(WITH_GD) |
40 |
.if ${PORT_OPTIONS:MGD} |
39 |
USE_PHP+= gd |
41 |
USE_PHP+= gd |
40 |
.endif |
42 |
.endif |
41 |
.if defined(WITH_LDAP) |
43 |
.if ${PORT_OPTIONS:MLDAP} |
42 |
USE_PHP+= ldap |
44 |
USE_PHP+= ldap |
43 |
.endif |
45 |
.endif |
44 |
.if defined(WITH_ZIP) |
46 |
.if ${PORT_OPTIONS:MZIP} |
45 |
USE_PHP+= zip |
47 |
USE_PHP+= zip |
46 |
.endif |
48 |
.endif |
47 |
USE_PHP+= ctype dom iconv json mbstring pcre \ |
49 |
USE_PHP+= ctype dom iconv json mbstring pcre \ |
Lines 61-67
PHPSURVEYORDIR= ${WWWDOCROOT}/${PHPSURVEYORURL}
Link Here
|
61 |
|
63 |
|
62 |
do-install: |
64 |
do-install: |
63 |
${MKDIR} "${WWWDIR}" |
65 |
${MKDIR} "${WWWDIR}" |
64 |
.if defined(WITH_PGSQL) |
66 |
.if ${PORT_OPTIONS:MPGSQL} |
65 |
${SED} -E \ |
67 |
${SED} -E \ |
66 |
-e 's/^(\$$databasetype[[:space:]]*=[[:space:]]*'"')mysql('"'.*)$$/\1postgres\2/' \ |
68 |
-e 's/^(\$$databasetype[[:space:]]*=[[:space:]]*'"')mysql('"'.*)$$/\1postgres\2/' \ |
67 |
-e 's/^(\$$databaseuser[[:space:]]*=[[:space:]]*'"')root('"'.*)$$/\1pgsql\2/' \ |
69 |
-e 's/^(\$$databaseuser[[:space:]]*=[[:space:]]*'"')root('"'.*)$$/\1pgsql\2/' \ |