opnsense-ports/databases/pgtune/Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

30 lines
782 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= python shebangfix
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>