openbsd-ports/databases/pgfouine/Makefile

53 lines
1.7 KiB
Makefile
Raw Normal View History

2011-11-16 10:56:36 -05:00
# $OpenBSD: Makefile,v 1.9 2011/11/16 15:56:37 robert Exp $
COMMENT = PostgreSQL log analyzer
2010-04-28 14:07:56 -04:00
DISTNAME = pgfouine-1.2
CATEGORIES = databases
2011-11-16 10:56:36 -05:00
REVISION = 3
2011-07-08 14:46:16 -04:00
HOMEPAGE = http://pgfouine.projects.postgresql.org/
2009-07-24 07:47:01 -04:00
MAINTAINER = Pierre-Emmanuel Andre <pea@openbsd.org>
# GPLv2
PERMIT_PACKAGE_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
2010-04-28 14:07:56 -04:00
MASTER_SITES = http://pgfoundry.org/frs/download.php/2575/ \
http://pgfouine.projects.postgresql.org/releases/
NO_BUILD = Yes
NO_REGRESS = Yes
PKG_ARCH = *
2011-07-08 14:46:16 -04:00
MODULES = lang/php
RUN_DEPENDS = lang/php/${MODPHP_VERSION},-gd
pre-configure:
2011-07-08 14:46:16 -04:00
@perl -pi -e 's,/usr/bin/php,${MODPHP_BIN},g;' \
-e 's,!!PREFIX!!,${PREFIX},g' \
${WRKSRC}/pgfouine.php ${WRKSRC}/pgfouine_vacuum.php
2010-04-28 14:07:56 -04:00
@find ${WRKSRC} -type d -name CVS | xargs 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>