Index: head/databases/pgtune/Makefile =================================================================== --- head/databases/pgtune/Makefile (revision 440966) +++ head/databases/pgtune/Makefile (revision 440967) @@ -1,24 +1,28 @@ # Created by: Matthieu BOUTHORS # $FreeBSD$ PORTNAME= pgtune PORTVERSION= 0.9.3 -PORTREVISION= 1 +PORTREVISION= 2 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 +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + +USES= python:2,run shebangfix SHEBANG_FILES= ${PORTNAME} NO_BUILD= yes +NO_ARCH= yes 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 Index: head/databases/pgtune/files/patch-pgtune =================================================================== --- head/databases/pgtune/files/patch-pgtune (revision 440966) +++ head/databases/pgtune/files/patch-pgtune (revision 440967) @@ -1,17 +1,11 @@ ---- pgtune.orig 2009-10-28 21:16:39.000000000 -0400 -+++ pgtune 2011-08-01 15:32:10.000000000 -0400 -@@ -1,4 +1,4 @@ --#!/usr/bin/python -+#!/usr/local/bin/python - """ - pgtune - -@@ -277,7 +277,7 @@ +--- pgtune.orig 2009-10-29 01:16:39 UTC ++++ pgtune +@@ -277,7 +277,7 @@ class pg_settings(object): if platform.architecture()[0]=="64bit": platformBits=64 # TODO Support handling versions other than 8.4 # TODO Allow passing in platform bit size - settingDumpFile=os.path.join(settings_dir,"pg_settings-8.4-"+str(platformBits)) + settingDumpFile="/usr/local/share/pgtune/settings/pg_settings-8.4-"+str(platformBits) settingColumns=["name","setting","unit","category","short_desc", "extra_desc","context","vartype","min_val","max_val","enumvals", "boot_val"]