[pgtune] initial import of pgtune-0.9.3-2.fc16.src.rpm

Miroslav Suchý msuchy at fedoraproject.org
Tue Mar 6 08:24:08 UTC 2012


commit 41e1ef6b037cfd440090659de74b41603d0b1ff9
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Tue Mar 6 09:16:09 2012 +0100

    initial import of pgtune-0.9.3-2.fc16.src.rpm

 .gitignore               |    1 +
 pgtune-settingsdir.patch |   11 +++++++++
 pgtune.8.asciidoc        |   57 ++++++++++++++++++++++++++++++++++++++++++++++
 pgtune.spec              |   56 +++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 5 files changed, 126 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2a4bb07 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pgtune-0.9.3.tar.gz
diff --git a/pgtune-settingsdir.patch b/pgtune-settingsdir.patch
new file mode 100644
index 0000000..98406c8
--- /dev/null
+++ b/pgtune-settingsdir.patch
@@ -0,0 +1,11 @@
+--- pgtune.old	2009-10-29 00:49:32.000000000 +0200
++++ pgtune	2009-10-29 00:49:51.000000000 +0200
+@@ -414,7 +414,7 @@
+   parser.add_option('-D','--debug',action="store_true",dest="debug",
+     default="False",help="Enable debugging mode")
+ 
+-  parser.add_option('-S','--settings',dest="settings_dir",default=None, 
++  parser.add_option('-S','--settings',dest="settings_dir",default="/usr/share/pgtune", 
+     help="Directory where settings data files are located at.  Defaults to the directory where the script is being run from")
+ 
+   options,args=parser.parse_args()
diff --git a/pgtune.8.asciidoc b/pgtune.8.asciidoc
new file mode 100644
index 0000000..8238e94
--- /dev/null
+++ b/pgtune.8.asciidoc
@@ -0,0 +1,57 @@
+pgtune(8)
+========
+
+NAME
+----
+pgtune - PostgreSQL Config Tuner
+
+SYNOPSIS
+--------
+
+ pgtune -i $PGDATA/postgresql.conf -o $PGDATA/postgresql.conf.pgtune
+
+DESCRIPTION
+-----------
+
+Pgtune takes the wimpy default postgresql.conf and expands the database 
+server to be as powerful as the hardware it's being deployed on.
+
+pgtune works by taking an existing postgresql.conf file as an input,
+making changes to it based on the amount of RAM in your server and
+suggested workload, and output a new file.
+
+OPTIONS
+-------
+-i, --input-config::
+Specifies the current postgresql.conf file.
+
+-o, --input-config::
+Specifies the file name for the new postgresql.conf file.
+
+-M, --memory::
+Use this parameter to specify total system memory. If
+not specified, pgtune will attempt to detect memory size.
+
+-T, --type::
+Specifies database type. Valid options are: DW, OLTP, Web, Mixed, Desktop
+
+-c, --connections::
+Specifies number of maximum connections expected.
+If not specified, it depends on database type.
+
+-D, --debug::
+Enables debugging mode.
+
+-S, --settings::
+Directory where settings data files are located at.
+Defaults to the directory where the script is being run from.  The
+RPM package includes a patch to use the correct location these
+files were installed into.
+
+SEE ALSO
+--------
+postgres(1)
+
+AUTHORS
+-------
+This man page is written by Miroslav Suchy for Fedora.
diff --git a/pgtune.spec b/pgtune.spec
new file mode 100644
index 0000000..278009c
--- /dev/null
+++ b/pgtune.spec
@@ -0,0 +1,56 @@
+Summary:	PostgreSQL Config Tuner
+Name:		pgtune
+Version:	0.9.3
+Release:	2%{?dist}
+License:	BSD
+Group:		Applications/Databases
+URL:		http://pgfoundry.org/projects/pgtune
+Source0:	http://pgfoundry.org/frs/download.php/2449/%{name}-%{version}.tar.gz
+Source1:    pgtune.8.asciidoc
+Patch0:		pgtune-settingsdir.patch
+Requires:	postgresql-server
+BuildRequires: asciidoc
+BuildRequires: libxslt
+Buildarch:	noarch
+
+%description
+pgtune takes the wimpy default postgresql.conf and expands the database server 
+to be as powerful as the hardware it's being deployed on.
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch0 -p0
+cp %{SOURCE1} .
+
+%build
+a2x -d manpage -f manpage pgtune.8.asciidoc
+
+%install
+install -d %{buildroot}%{_bindir}
+install -d %{buildroot}%{_datadir}/%{name}
+
+install -m 755 pgtune %{buildroot}%{_bindir}
+install -m 644 -p pg_settings* %{buildroot}%{_datadir}/%{name}
+
+mkdir -p %{buildroot}/%{_mandir}/man8
+install -m 644 pgtune.8 %{buildroot}/%{_mandir}/man8
+
+%clean
+
+%files
+%doc TODO COPYRIGHT
+%doc %{_mandir}/man8/pgtune.8*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+%attr(755,root,root) %{_bindir}/pgtune
+
+%changelog
+* Mon Feb 27 2012 Miroslav Suchy <msuchy at redhat.com> 0.9.3-2
+- package for Fedora
+- add man page
+
+* Wed Oct 28 2009 Devrim Gunduz <devrim at commandprompt.com> 0.9.1-1
+- Initial packaging for PostgreSQL RPM Repository
+
+* Wed Oct 28 2009 Greg Smith <gsmith at gregsmith.com> 0.9.2-1
+- Added copyright file, doesn't install sample postgresql.conf file.
diff --git a/sources b/sources
index e69de29..30ed47a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a765e0fc120bad2828167004b277f2d0  pgtune-0.9.3.tar.gz


More information about the scm-commits mailing list