06e20cb110
version. (as of 6 Dec 2020, 7.3 went into "security fixes only" mode).
36 lines
1008 B
Makefile
36 lines
1008 B
Makefile
# $OpenBSD: Makefile,v 1.10 2021/02/24 16:48:59 sthen Exp $
|
|
|
|
COMMENT = graphical report tool for PostgreSQL
|
|
|
|
DISTNAME = pg_stats_reporter-3.2.1
|
|
REVISION = 3
|
|
CATEGORIES = databases www
|
|
|
|
HOMEPAGE = http://pgstatsinfo.sourceforge.net/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pgstatsinfo/}
|
|
NO_BUILD = Yes
|
|
NO_TEST = Yes
|
|
|
|
PREFIX = ${VARBASE}/www
|
|
INSTDIR = ${PREFIX}/pg_stats_reporter_lib/
|
|
|
|
SUBST_VARS += INSTDIR MODPHP_BIN
|
|
MODULES = lang/php
|
|
RUN_DEPENDS = lang/php/${MODPHP_VERSION},-pgsql \
|
|
lang/php/${MODPHP_VERSION},-intl
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${INSTDIR}
|
|
${SUBST_CMD} -c -m 755 ${WRKSRC}/bin/pg_stats_reporter ${WRKINST}/usr/local/bin/pg_stats_reporter
|
|
cp -pR ${WRKSRC}/html/ ${PREFIX}/htdocs/
|
|
mv ${PREFIX}/htdocs/pg_stats_reporter/{pg_stats_reporter,index}.php
|
|
cp -pR ${WRKSRC}/pg_stats_reporter_lib ${PREFIX}
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR} ${PREFIX}/htdocs/pg_stats_reporter/
|
|
chown www:www ${INSTDIR}/{cache,compiled}
|
|
|
|
.include <bsd.port.mk>
|