mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
dddefc3588
This was not caught by testing because the behaviour of bsd.options.mk has been fixed-- it didn't used to enforce this for OPTIONS_MULTI
58 lines
1.2 KiB
Makefile
58 lines
1.2 KiB
Makefile
# Ports collection Makefile for: vfront
|
|
# Date created: 11th April 2012
|
|
# Whom: crees
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= vfront
|
|
DISTVERSION= 0.96c
|
|
CATEGORIES= databases www
|
|
MASTER_SITES= SF/vfront/vfront/vfront-${DISTVERSION}
|
|
|
|
MAINTAINER= crees@FreeBSD.org
|
|
COMMENT= Simple frontend for database data entry
|
|
|
|
LICENSE= GPLv2
|
|
|
|
NO_BUILD= yes
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
USE_PHP= yes
|
|
|
|
OPTIONS_MULTI= database
|
|
OPTIONS_MULTI_database= MYSQL PGSQL
|
|
OPTIONS_DEFAULT= MYSQL PGSQL
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_PHP+= mysqli
|
|
USE_MYSQL= yes
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
USE_PHP+= pgsql
|
|
USE_PGSQL= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -i '' -e \
|
|
's/\(AUTHORIZATION \\*"\)postgres\(\\*"\)/\1pgsql\2/' \
|
|
${WRKSRC}/_install/vfront.postgres.sql \
|
|
${WRKSRC}/_install/vfront.postgres.sql.php
|
|
|
|
pre-install:
|
|
(cd ${WRKSRC} && \
|
|
${FIND} * -type f | ${SED} 's,^,%%WWWDIR%%/,' > ${PLIST} && \
|
|
${FIND} * -type d | ${SORT} -r | \
|
|
${SED} 's,^,@dirrmtry %%WWWDIR%%/,' >> ${PLIST})
|
|
@${ECHO_CMD} '@dirrmtry %%WWWDIR%%' >> ${PLIST}
|
|
|
|
do-install:
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${WWWDIR})
|
|
${CHOWN} -R ${WWWOWN} ${WWWDIR}
|
|
${CHMOD} 700 ${WWWDIR}/conf
|
|
|
|
.include <bsd.port.mk>
|