rpms/postgresql-pgpoolAdmin/EL-5 postgresql-pgpoolAdmin-conf.patch, NONE, 1.1 postgresql-pgpoolAdmin.conf, NONE, 1.1 postgresql-pgpoolAdmin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Devrim GÜNDÜZ (devrim) fedora-extras-commits at redhat.com
Sat Jun 16 06:16:15 UTC 2007


Author: devrim

Update of /cvs/extras/rpms/postgresql-pgpoolAdmin/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20012/EL-5

Modified Files:
	.cvsignore sources 
Added Files:
	postgresql-pgpoolAdmin-conf.patch postgresql-pgpoolAdmin.conf 
	postgresql-pgpoolAdmin.spec 
Log Message:
Spec file, patches and sources file for pgpoolAdmin for all remaining branches.


postgresql-pgpoolAdmin-conf.patch:

--- NEW FILE postgresql-pgpoolAdmin-conf.patch ---
--- pgpoolAdmin-1.0.0/conf/pgmgt.conf.php.old	2006-09-26 08:42:27.000000000 +0300
+++ pgpoolAdmin-1.0.0/conf/pgmgt.conf.php	2006-09-26 08:43:00.000000000 +0300
@@ -1,14 +1,14 @@
 <?php
-define('_PGPOOL2_LANG', 'ja');
-define('_PGPOOL2_CONFIG_FILE', '/usr/local/etc/pgpool.conf');
-define('_PGPOOL2_PASSWORD_FILE', '/usr/local/etc/pcp.conf');
-define('_PGPOOL2_COMMAND', '/usr/local/bin/pgpool');
+define('_PGPOOL2_LANG', 'en');
+define('_PGPOOL2_CONFIG_FILE', '/etc/pgpool.conf');
+define('_PGPOOL2_PASSWORD_FILE', '/etc/pcp.conf');
+define('_PGPOOL2_COMMAND', '/usr/bin/pgpool');
 define('_PGPOOL2_CMD_OPTION_C', '0');
 define('_PGPOOL2_CMD_OPTION_D', '0');
 define('_PGPOOL2_CMD_OPTION_M', 's');
 define('_PGPOOL2_CMD_OPTION_N', '0');
 define('_PGPOOL2_LOG_FILE', '/tmp/pgpool.log');
-define('_PGPOOL2_PCP_DIR', '/usr/local/bin');
+define('_PGPOOL2_PCP_DIR', '/usr/bin');
 define('_PGPOOL2_PCP_HOSTNAME', 'localhost');
 define('_PGPOOL2_PCP_TIMEOUT', '');
 define('_PGPOOL2_STATUS_REFRESH_TIME', '0');
--- pgpoolAdmin/install/defaultParameter.php.old	2006-09-26 12:48:09.000000000 +0300
+++ pgpoolAdmin/install/defaultParameter.php	2006-09-26 12:48:31.000000000 +0300
@@ -23,17 +23,17 @@
  * @version    CVS: $Id: defaultParameter.php,v 1.1.1.1 2006/08/21 02:15:41 y-asaba Exp $
  */
 
-define("_PGPOOL2_CONFIG_FILE", "/usr/local/etc/pgpool.conf");
-define("_PGPOOL2_PASSWORD_FILE", "/usr/local/etc/pcp.conf");
-define("_PGPOOL2_COMMAND", "/usr/local/bin/pgpool");
+define("_PGPOOL2_CONFIG_FILE", "/etc/pgpool.conf");
+define("_PGPOOL2_PASSWORD_FILE", "/etc/pcp.conf");
+define("_PGPOOL2_COMMAND", "/usr/bin/pgpool");
 define("_PGPOOL2_CMD_OPTION_C", "0");
 define("_PGPOOL2_CMD_OPTION_D", "0");
 define("_PGPOOL2_CMD_OPTION_M", "s");
 define("_PGPOOL2_CMD_OPTION_N", "0");
 define("_PGPOOL2_LOG_FILE", "/tmp/pgpool.log");
-define("_PGPOOL2_PCP_DIR", "/usr/local/bin");
+define("_PGPOOL2_PCP_DIR", "/usr/bin");
 define("_PGPOOL2_PCP_HOSTNAME", "localhost");
 define("_PGPOOL2_PCP_TIMEOUT", "10");
 define("_PGPOOL2_STATUS_REFRESH_TIME", "0");
 
-?>
\ No newline at end of file
+?>


--- NEW FILE postgresql-pgpoolAdmin.conf ---
#
# This configuration file maps the pgpoolAdmin directory into the URL space. 
# By default this application is only accessible from the local host.
#

Alias /pgpoolAdmin /usr/share/pgpoolAdmin

<Location /pgpoolAdmin>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
    # Allow from .example.com
</Location>



--- NEW FILE postgresql-pgpoolAdmin.spec ---
%define short_name	pgpoolAdmin

Summary:	PgpoolAdmin - web-based pgpool administration
Name:		postgresql-pgpoolAdmin
Version:	1.0.0
Release:	6%{?dist}
License:	BSD
Group:		Applications/Databases
URL:		http://pgpool.projects.postgresql.org
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Source0:	http://pgfoundry.org/frs/download.php/980/%{short_name}-%{version}.tar.gz
Source1:	%{name}.conf

Requires:	php >= 4.4.2
Requires:	php-pgsql >= 4.4.2
Requires:	webserver
Requires:	postgresql-pgpool-II

Buildarch:	noarch
BuildRequires:	httpd

%define		_pgpoolAdmindir	%{_datadir}/%{name}

Patch1:		%{name}-conf.patch

%description
The pgpool Administration Tool is management tool of pgpool-II. It is 
possible to monitor, start, stop pgpool and change settings of pgpool-II.

%prep
%setup -q -n %{short_name}-%{version}
%patch1 -p1
%build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{_pgpoolAdmindir}
install -d %{buildroot}%{_pgpoolAdmindir}/conf
install -d %{buildroot}%{_sysconfdir}/%{name}
install -m 644 *.php %{buildroot}%{_pgpoolAdmindir}
cp -a  doc/ images/ install/ lang/ libs/ templates/ templates_c/ screen.css %{buildroot}%{_pgpoolAdmindir}
install -m 755 conf/* %{buildroot}%{_sysconfdir}/%{name}/
ln -s ../../../..%{_sysconfdir}/%{name}/pgmgt.conf.php %{buildroot}%{_pgpoolAdmindir}/conf/pgmgt.conf.php

if [ -d %{_sysconfdir}/httpd/conf.d/ ]
then
	install -d %{buildroot}%{_sysconfdir}/httpd/conf.d/
	install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
fi

%post
	/sbin/service httpd reload > /dev/null 2>&1
%postun 
	/sbin/service httpd reload > /dev/null 2>&1

%clean
rm -rf %{buildroot}

%files
%defattr(0644,nobody,nobody,0755)
%doc README README.euc_jp
%dir %{_pgpoolAdmindir}
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/*
%attr(644,root,root) %{_pgpoolAdmindir}/*.php
%{_pgpoolAdmindir}/conf
%{_pgpoolAdmindir}/doc
%{_pgpoolAdmindir}/images
%{_pgpoolAdmindir}/install
%{_pgpoolAdmindir}/lang
%{_pgpoolAdmindir}/libs
%{_pgpoolAdmindir}/templates
%attr(755,root,apache) %{_pgpoolAdmindir}/templates_c
%{_pgpoolAdmindir}/screen.css

%changelog
* Sat Jun 2 2007 Devrim Gunduz <devrim at commandprompt.com> 1.0.0-6
- Fixes for bugzilla review #229323

* Tue Feb 20 2007 Devrim Gunduz <devrim at commandprompt.com> 1.0.0-5
- Fixes for packaging guidelines of web apps.
- Fix ownership problems

* Mon Oct 02 2006 Devrim Gunduz <devrim at commandprompt.com> 1.0.0-4
- chgrp and chmod pgpool-II conf files so that apache can write it. 
- Change file ownership from apache to nobody.

* Tue Sep 26 2006 Devrim Gunduz <devrim at commandprompt.com> 1.0.0-3
- Update patch1

* Tue Sep 26 2006 Devrim Gunduz <devrim at commandprompt.com> 1.0.0-2
- Fix file ownership
- Update patch1

* Tue Sep 26 2006 Devrim Gunduz <devrim at commandprompt.com> 1.0.0-1
- Initial build 


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/postgresql-pgpoolAdmin/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	16 Jun 2007 03:45:02 -0000	1.1
+++ .cvsignore	16 Jun 2007 06:15:39 -0000	1.2
@@ -0,0 +1 @@
+pgpoolAdmin-1.0.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/postgresql-pgpoolAdmin/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	16 Jun 2007 03:45:02 -0000	1.1
+++ sources	16 Jun 2007 06:15:39 -0000	1.2
@@ -0,0 +1 @@
+1a4a69e5fd7941008319d565b1957207  pgpoolAdmin-1.0.0.tar.gz




More information about the fedora-extras-commits mailing list