mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
- Add PHP dependencies
- Add OPTIONS - Bump PORTREVISION PR: ports/130673 Submitted by: Cristiano Rolim Pereira <cristianorolim _AT_ hotmail _DOT_ com> (maintainer)
This commit is contained in:
parent
c0233bf2cd
commit
c508d60a8f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226614
@ -7,16 +7,13 @@
|
||||
|
||||
PORTNAME= phplogcon
|
||||
PORTVERSION= 2.5.23
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils www
|
||||
MASTER_SITES= http://download.adiscon.com/phplogcon/
|
||||
|
||||
MAINTAINER= cristianorolim@hotmail.com
|
||||
COMMENT= Web Based Syslog Review
|
||||
|
||||
.if !defined(WITHOUT_PHP_DEPENDS)
|
||||
USE_PHP= YES
|
||||
WANT_PHP_WEB= YES
|
||||
.endif
|
||||
NO_BUILD= YES
|
||||
LOGCONDIR?= www/phplogcon
|
||||
PLIST_SUB+= LOGCONDIR=${LOGCONDIR}
|
||||
@ -25,8 +22,56 @@ pre-everything::
|
||||
@${ECHO_CMD} "# you can customize the installation directory"
|
||||
@${ECHO_CMD} "# by setting LOGCON in /etc/make.conf"
|
||||
|
||||
OPTIONS= PHP_MYSQL "MySQL database support (PHP extension)" Off \
|
||||
PDO_DBLIB "Microsoft SQL Server and Sybase PDO driver" Off \
|
||||
PDO_FIREBIRD "Firebird/Interbase PDO driver" Off \
|
||||
PDO_MYSQL "MySQL Server PDO driver" Off \
|
||||
PDO_OCI "Oracle PDO driver (i386 onnly)" Off \
|
||||
PDO_ODBC "ODBC and DB2 PDO driver" Off \
|
||||
PDO_PGSQL "PostgreSQL PDO driver" Off \
|
||||
PDO_SQLITE "SQLite PDO driver" Off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(WITHOUT_PHP_DEPENDS)
|
||||
USE_PHP= session pdo gd xml
|
||||
WANT_PHP_WEB= YES
|
||||
IGNORE_WITH_PHP=4
|
||||
DEFAULT_PHP_VER=5
|
||||
|
||||
.if defined(WITH_PHP_MYSQL)
|
||||
USE_PHP+= mysql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_DBLIB)
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_dblib.so:${PORTSDIR}/databases/php5-pdo_dblib
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_FIREBIRD)
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_firebird.so:${PORTSDIR}/databases/php5-pdo_firebird
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_MYSQL)
|
||||
USE_PHP+= pdo_mysql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_OCI) && ${ARCH} == "i386"
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_oci.so:${PORTSDIR}/databases/php5-pdo_oci
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_ODBC)
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:${PORTSDIR}/databases/php5-pdo_odbc
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_PGSQL)
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_SQLITE)
|
||||
USE_PHP+= pdo_sqlite
|
||||
.endif
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/${LOGCONDIR}
|
||||
${CP} -Rp ${WRKSRC}/src/ ${PREFIX}/${LOGCONDIR}/
|
||||
|
@ -7,16 +7,13 @@
|
||||
|
||||
PORTNAME= phplogcon
|
||||
PORTVERSION= 2.5.23
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils www
|
||||
MASTER_SITES= http://download.adiscon.com/phplogcon/
|
||||
|
||||
MAINTAINER= cristianorolim@hotmail.com
|
||||
COMMENT= Web Based Syslog Review
|
||||
|
||||
.if !defined(WITHOUT_PHP_DEPENDS)
|
||||
USE_PHP= YES
|
||||
WANT_PHP_WEB= YES
|
||||
.endif
|
||||
NO_BUILD= YES
|
||||
LOGCONDIR?= www/phplogcon
|
||||
PLIST_SUB+= LOGCONDIR=${LOGCONDIR}
|
||||
@ -25,8 +22,56 @@ pre-everything::
|
||||
@${ECHO_CMD} "# you can customize the installation directory"
|
||||
@${ECHO_CMD} "# by setting LOGCON in /etc/make.conf"
|
||||
|
||||
OPTIONS= PHP_MYSQL "MySQL database support (PHP extension)" Off \
|
||||
PDO_DBLIB "Microsoft SQL Server and Sybase PDO driver" Off \
|
||||
PDO_FIREBIRD "Firebird/Interbase PDO driver" Off \
|
||||
PDO_MYSQL "MySQL Server PDO driver" Off \
|
||||
PDO_OCI "Oracle PDO driver (i386 onnly)" Off \
|
||||
PDO_ODBC "ODBC and DB2 PDO driver" Off \
|
||||
PDO_PGSQL "PostgreSQL PDO driver" Off \
|
||||
PDO_SQLITE "SQLite PDO driver" Off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(WITHOUT_PHP_DEPENDS)
|
||||
USE_PHP= session pdo gd xml
|
||||
WANT_PHP_WEB= YES
|
||||
IGNORE_WITH_PHP=4
|
||||
DEFAULT_PHP_VER=5
|
||||
|
||||
.if defined(WITH_PHP_MYSQL)
|
||||
USE_PHP+= mysql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_DBLIB)
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_dblib.so:${PORTSDIR}/databases/php5-pdo_dblib
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_FIREBIRD)
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_firebird.so:${PORTSDIR}/databases/php5-pdo_firebird
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_MYSQL)
|
||||
USE_PHP+= pdo_mysql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_OCI) && ${ARCH} == "i386"
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_oci.so:${PORTSDIR}/databases/php5-pdo_oci
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_ODBC)
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:${PORTSDIR}/databases/php5-pdo_odbc
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_PGSQL)
|
||||
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PDO_SQLITE)
|
||||
USE_PHP+= pdo_sqlite
|
||||
.endif
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/${LOGCONDIR}
|
||||
${CP} -Rp ${WRKSRC}/src/ ${PREFIX}/${LOGCONDIR}/
|
||||
|
Loading…
Reference in New Issue
Block a user