0ac3a69555
- Remove USE_PHP=hash which is available in default php installation of all versions of php * security/pear-Horde_Crypt_Blowfish: Remove OPTION MHASH - Remove USE_PHP=json which is available in default php installation of all versions of php * devel/pear-PHPTAL: Remove OPTION JSON * www/ilias: Remove OPTION SCORM2004 - Remove USE_PHP=mssql which is no longer available in php from php80 and later and has been replaced with sqlsrv module which is Windows only * www/codeigniter: Remove OPTION MSSQL * www/moodle311: Remove OPTION MSSQL * www/moodle39: Remove OPTION MSSQL * www/moodle40: Remove OPTION MSSQL * www/moodle41: Remove OPTION MSSQL - Remove USE_PHP=openssl which is available in default php installation of all versions of php * databases/phpmyadmin: Remove OPTION OPENSSL * databases/phpmyadmin5: Remove OPTION OPENSSL * security/pear-Horde_Crypt_Blowfish: Remove OPTION OPENSSL * www/nextcloud: Remove OPTION SSL * www/owncloud: Remove OPTION SSL - Remove USE_PHP=pcre which is available in default php installation of all versions of php * sysutils/racktables: Remove OPTION PCRE - Remove USE_PHP=postgresql which should be USE_PHP=pgsql and update following ports * www/typo3-11 * www/typo3-12 - Remove USE_PHP=pdf which is no longer available as php module * databases/phpmyadmin: Remove OPTION PDF - Remove USE_PHP=spl which is available in default php installation of all versions of php - Remove USE_PHP=sqlsrv which was never imported into FreeBSD as that is Windows only php module * www/typo3-11: Remove OPTION SQLSRV * www/typo3-12: Remove OPTION SQLSRV - Bump where DEFAULT OPTIONS are affected Sponsored by: Bounce Experts Approved by: portmgr(blanket)
73 lines
2.1 KiB
Makefile
73 lines
2.1 KiB
Makefile
PORTNAME= pandora_console
|
|
CATEGORIES= net-mgmt
|
|
|
|
MAINTAINER= koichiro@rworks.jp
|
|
COMMENT= Pandora FMS console
|
|
WWW= https://pandorafms.com/
|
|
|
|
LICENSE= ${PANDORA_LICENSE}
|
|
LICENSE_FILE= ${PANDORA_LICENSE_FILE}
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/twopi:graphics/graphviz
|
|
|
|
USES= apache:run php:web shebangfix
|
|
SHEBANG_FILES= include/languages/extract_newlines.sh \
|
|
include/languages/util-all \
|
|
include/languages/util-bzr-update \
|
|
include/languages/util-compile-mo \
|
|
include/languages/util-create-po \
|
|
include/languages/util-create-template \
|
|
include/languages/util-generate-tarball \
|
|
include/languages/util-update-po \
|
|
pandora_console_upgrade
|
|
|
|
OPTIONS_DEFINE= DOCS PGSQL
|
|
DOCS_DESC= Install AUTHORS and ChangeLog
|
|
PGSQL_DESC= Use PostgreSQL backend (experimental)
|
|
|
|
USE_PHP= curl filter gd gettext ldap mbstring mysqli \
|
|
snmp session xml zip zlib
|
|
|
|
SUB_FILES+= pandora_console.conf pkg-message newsyslog.conf
|
|
SUB_LIST+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
PGSQL_USE= PHP=pgsql
|
|
|
|
.include "${.CURDIR}/../pandorafms_server/bsd.pandora.mk"
|
|
|
|
PORTREVISION= 3
|
|
|
|
PANDORA_INSTALLER_ARGS+= --destdir ${STAGEDIR}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e "\|PANDORA_HOME=|s|=[^;]*|=${WWWDIR}|g" \
|
|
${WRKSRC}/pandora_console_install
|
|
@${REINPLACE_CMD} \
|
|
-e "s|/usr/bin|${LOCALBASE}/bin|g" \
|
|
${WRKSRC}/pandoradb.data*.sql
|
|
@${REINPLACE_CMD} \
|
|
-e 's|/bin/bash|/bin/sh|g' \
|
|
${WRKSRC}/extras/check_other_languages.sh
|
|
|
|
post-install:
|
|
@cd ${STAGEDIR}${WWWDIR} \
|
|
&& ${RM} -r pandora_console_[il]* DEBIAN/ *.spec \
|
|
attachment/downloads/.gitignore ${PORTDOCS} \
|
|
Dockerfile docker_entrypoint.sh \
|
|
*.sql.bak extras/check_other_languages.sh.bak
|
|
@cd ${STAGEDIR}${WWWDIR} && ${MV} install.php install_old.php
|
|
@(d=${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes; ${MKDIR} $$d; \
|
|
${INSTALL_DATA} ${WRKDIR}/pandora_console.conf \
|
|
$$d/pandora_console.conf.sample)
|
|
@(d=${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d; ${MKDIR} $$d; \
|
|
${INSTALL_DATA} ${WRKDIR}/newsyslog.conf \
|
|
$$d/pandora_console.conf)
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for x in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|