Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= poweradmin |
8 |
PORTNAME= poweradmin |
9 |
PORTVERSION= 2.1.3 |
9 |
PORTVERSION= 2.1.4 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= dns www |
10 |
CATEGORIES= dns www |
12 |
MASTER_SITES= https://www.poweradmin.org/download/ |
11 |
MASTER_SITES= https://www.poweradmin.org/download/ |
13 |
EXTRACT_SUFX= .tgz |
12 |
EXTRACT_SUFX= .tgz |
Lines 20-26
Link Here
|
20 |
NO_BUILD= yes |
19 |
NO_BUILD= yes |
21 |
PEARDIR= ${PREFIX}/share/pear |
20 |
PEARDIR= ${PREFIX}/share/pear |
22 |
|
21 |
|
23 |
OPTIONS= POSTGRESQL "Use PostgreSQL database instead of MySQL" off |
22 |
OPTIONS= MYSQL "Use Mysql database support" on \ |
|
|
23 |
PGSQL "Use Pgsql database support" off |
24 |
|
24 |
|
25 |
SUB_FILES= pkg-message |
25 |
SUB_FILES= pkg-message |
26 |
|
26 |
|
Lines 31-42
Link Here
|
31 |
|
31 |
|
32 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
33 |
|
33 |
|
34 |
.if defined(WITH_POSTGRESQL) |
34 |
.if defined(WITH_MYSQL) |
35 |
RUN_DEPENDS+= ${PEARDIR}/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql |
|
|
36 |
.else |
37 |
RUN_DEPENDS+= ${PEARDIR}/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql |
35 |
RUN_DEPENDS+= ${PEARDIR}/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql |
38 |
.endif |
36 |
.endif |
39 |
|
37 |
|
|
|
38 |
.if defined(WITH_PGSQL) |
39 |
RUN_DEPENDS+= ${PEARDIR}/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql |
40 |
.endif |
41 |
|
40 |
post-extract: |
42 |
post-extract: |
41 |
@cd ${WRKSRC} && ${RM} -rf "install" |
43 |
@cd ${WRKSRC} && ${RM} -rf "install" |
42 |
|
44 |
|
Lines 65-71
Link Here
|
65 |
|
67 |
|
66 |
install-conf: install-app |
68 |
install-conf: install-app |
67 |
cd ${WWWDIR}/${CFGDIR} ; \ |
69 |
cd ${WWWDIR}/${CFGDIR} ; \ |
68 |
${CHMOD} 0640 config-me.inc.php ; \ |
70 |
${CHMOD} 0644 config-me.inc.php ; \ |
69 |
if ${TEST} ! -f ${CFGFILE} ; then \ |
71 |
if ${TEST} ! -f ${CFGFILE} ; then \ |
70 |
${CP} -p config-me.inc.php ${CFGFILE} ; \ |
72 |
${CP} -p config-me.inc.php ${CFGFILE} ; \ |
71 |
fi |
73 |
fi |