# Created by: Pierre-Emmanuel Andre # $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 OPTIONS_DEFINE= DOCS 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} -r {} \; do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pgfouine.php ${STAGEDIR}${PREFIX}/bin/pgfouine ${INSTALL_SCRIPT} ${WRKSRC}/pgfouine_vacuum.php ${STAGEDIR}${PREFIX}/bin/pgfouine_vacuum ${MKDIR} ${STAGEDIR}${DATADIR}/include ${INSTALL_DATA} ${WRKSRC}/version.php ${STAGEDIR}${DATADIR} @cd ${WRKSRC}/include && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/include/ ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/THANKS ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/rpm-specific/sources/pgfouine-tutorial.txt ${STAGEDIR}${DOCSDIR} .include