2013-09-20 18:13:47 +02:00
|
|
|
# Created by: Matthieu BOUTHORS
|
2009-05-17 12:14:08 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pgtune
|
2011-08-08 14:55:47 +02:00
|
|
|
PORTVERSION= 0.9.3
|
2014-05-08 19:06:35 +02:00
|
|
|
PORTREVISION= 1
|
2009-05-17 12:14:08 +02:00
|
|
|
CATEGORIES= databases
|
2011-08-08 14:55:47 +02:00
|
|
|
MASTER_SITES= http://pgfoundry.org/frs/download.php/2449/ \
|
2013-04-26 06:03:22 +02:00
|
|
|
https://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/
|
2009-05-17 12:14:08 +02:00
|
|
|
|
2011-08-08 14:55:47 +02:00
|
|
|
MAINTAINER= gjb@FreeBSD.org
|
2009-05-17 12:14:08 +02:00
|
|
|
COMMENT= Postgresql.conf tuning tips based on hardware and load type
|
|
|
|
|
2014-10-19 10:50:17 +02:00
|
|
|
USES= python shebangfix
|
2009-05-17 12:14:08 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2014-05-08 19:06:35 +02:00
|
|
|
SHEBANG_FILES= ${PORTNAME}
|
|
|
|
python_OLD_CMD= ${PREFIX}/bin/python
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${REINPLACE_CMD} -e 's|${python_OLD_CMD}|${PYTHON_CMD}|' \
|
|
|
|
${WRKSRC}/${PORTNAME}
|
|
|
|
|
2009-05-17 12:14:08 +02:00
|
|
|
do-install:
|
2014-02-27 14:50:17 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pgtune ${STAGEDIR}${PREFIX}/bin
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/pgtune/settings
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pg_settings* \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pgtune/settings
|
2009-05-17 12:14:08 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|