Files
ports/databases/pgfouine/Makefile
T
sthen 9d623ec305 explicitly set MODPHP_VERSION=7.4 for PHP ports unless they're known
or strongly suspected to support at least 8.0. (7.4 is currently on security
support only, and that finishes in November, so I intend to switch the "ports
default" version to 8.0).

some of these ports _may_ work with 8.0 already, some have pull requests or
support in newer upstream code (not always in a release), others definitely
need 7.4.
2022-03-22 18:20:52 +00:00

47 lines
1.6 KiB
Makefile

COMMENT = PostgreSQL log analyzer
V = 1.2
DISTNAME = pgfouine-$V
CATEGORIES = databases
REVISION = 11
MAINTAINER = Pierre-Emmanuel Andre <pea@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
# XXX likely to be broken with php>=5; version in PORTROACH site may work
PORTROACH = site:https://github.com/milo/pgFouine/archive/
MASTER_SITES = https://ftp.postgresql.org/pub/projects/pgFoundry/pgfouine/pgFouine/pgFouine$V/
NO_BUILD = Yes
NO_TEST = Yes
PKG_ARCH = *
MODULES = lang/php
MODPHP_VERSION = 7.4
RUN_DEPENDS = lang/php/${MODPHP_VERSION},-gd
pre-configure:
@sed -i -e 's,/usr/bin/php,${MODPHP_BIN},g;' \
-e 's,!!PREFIX!!,${PREFIX},g' \
${WRKSRC}/pgfouine.php ${WRKSRC}/pgfouine_vacuum.php
@find ${WRKSRC} -type d -name CVS -prune -exec rm -fr {} +
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pgfouine.php ${PREFIX}/bin/pgfouine
${INSTALL_SCRIPT} ${WRKSRC}/pgfouine_vacuum.php ${PREFIX}/bin/pgfouine_vacuum
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pgfouine
${INSTALL_DATA_DIR} ${PREFIX}/share/pgfouine/include
${INSTALL_DATA} ${WRKSRC}/version.php ${PREFIX}/share/pgfouine/
@cd ${WRKSRC}/include && \
find . -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/pgfouine/include/{} \;
@cd ${WRKSRC}/include && \
find . ! -type d -exec ${INSTALL_DATA} {} ${PREFIX}/share/pgfouine/include/{} \;
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/pgfouine/
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/pgfouine/
${INSTALL_DATA} ${WRKSRC}/THANKS ${PREFIX}/share/doc/pgfouine/
${INSTALL_DATA} ${WRKSRC}/rpm-specific/sources/pgfouine-tutorial.txt \
${PREFIX}/share/doc/pgfouine/pgfouine-tutorial.txt
.include <bsd.port.mk>