mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
11c7c9cfc0
PR: ports/144459 Approved by: maintainer (timeout)
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# New ports collection makefile for: pgfouine
|
|
# Date created: 01 May 2008
|
|
# Whom: Pierre-Emmanuel Andre <pea@raveland.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pgfouine
|
|
PORTVERSION= 1.2
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://pgfoundry.org/frs/download.php/2575/ \
|
|
http://pgfouine.projects.postgresql.org/releases/
|
|
|
|
MAINTAINER= pea@raveland.org
|
|
COMMENT= PostgreSQL log analyzer
|
|
|
|
NO_BUILD = Yes
|
|
USE_PHP= gd pcre
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e 's,/usr/bin/php,${LOCALBASE}/bin/php,g;' \
|
|
-e 's,!!PREFIX!!,${PREFIX},g' \
|
|
${WRKSRC}/pgfouine.php ${WRKSRC}/pgfouine_vacuum.php
|
|
${FIND} -d ${WRKSRC} -type d -name 'CVS' -exec ${RM} -rf {} \;
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pgfouine.php ${PREFIX}/bin/pgfouine
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pgfouine_vacuum.php ${PREFIX}/bin/pgfouine_vacuum
|
|
${MKDIR} ${DATADIR}/include
|
|
${INSTALL_DATA} ${WRKSRC}/version.php ${DATADIR}
|
|
@cd ${WRKSRC}/include && ${COPYTREE_SHARE} \* ${DATADIR}/include/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/THANKS ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/rpm-specific/sources/pgfouine-tutorial.txt ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|