blob: 16b743ae13fe0ae26b3236e942b8b73ded5c0d07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
Summary: PgpoolAdmin - web-based pgpool administration
Name: pgpoolAdmin
Version: 1.0.0
Release: 5%{?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/%{name}-%{version}.tar.gz
Source1: %{name}.conf
Requires: php >= 4.4.2
Requires: php-pgsql >= 4.4.2
Requires: webserver
Requires: pgpool-II
Buildarch: noarch
%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 %{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
/bin/chgrp apache /etc/pgpool.conf
/bin/chgrp apache /etc/pcp.conf
/bin/chmod g+w /etc/pgpool.conf /etc/pcp.conf
%postun
/sbin/service httpd reload > /dev/null 2>&1
chgrp root: /etc/pgpool.conf /etc/pcp.conf
%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
%{_pgpoolAdmindir}/templates_c
%{_pgpoolAdmindir}/screen.css
%changelog
* Tue Feb 20 2007 Devrim Gunduz <devrim@commandprompt.com> 1.0.0-5
- Fix for packaging guidelines of web apps.
* Mon Oct 02 2006 Devrim Gunduz <devrim@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@commandprompt.com> 1.0.0-3
- Update patch1
* Tue Sep 26 2006 Devrim Gunduz <devrim@commandprompt.com> 1.0.0-2
- Fix file ownership
- Update patch1
* Tue Sep 26 2006 Devrim Gunduz <devrim@commandprompt.com> 1.0.0-1
- Initial build
|