mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
def3ec08f6
problems: - Add USES=shebangfix - Replace USE_PYTHON=yes with USE_PYTHON=2+ - Fix shebang line to use python2.N - Bump PORTREVISION Reported by: pathiaki2@yahoo.com (via ports@) Redports ID: https://redports.org/buildarchive/20140508164000-29103/ Sponsored by: The FreeBSD Foundation
32 lines
790 B
Makefile
32 lines
790 B
Makefile
# Created by: Matthieu BOUTHORS
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pgtune
|
|
PORTVERSION= 0.9.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://pgfoundry.org/frs/download.php/2449/ \
|
|
https://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/
|
|
|
|
MAINTAINER= gjb@FreeBSD.org
|
|
COMMENT= Postgresql.conf tuning tips based on hardware and load type
|
|
|
|
USES= shebangfix
|
|
USE_PYTHON= 2+
|
|
NO_BUILD= yes
|
|
|
|
SHEBANG_FILES= ${PORTNAME}
|
|
python_OLD_CMD= ${PREFIX}/bin/python
|
|
|
|
pre-install:
|
|
@${REINPLACE_CMD} -e 's|${python_OLD_CMD}|${PYTHON_CMD}|' \
|
|
${WRKSRC}/${PORTNAME}
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pgtune ${STAGEDIR}${PREFIX}/bin
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/pgtune/settings
|
|
${INSTALL_DATA} ${WRKSRC}/pg_settings* \
|
|
${STAGEDIR}${PREFIX}/share/pgtune/settings
|
|
|
|
.include <bsd.port.mk>
|