blob: 7fd2a89260f05a4c16764e4695f6f6c084a7ea22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Created by: 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
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} -rf {} \;
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 <bsd.port.mk>
|