/[smecontribs]/rpms/smeserver-postgresql/contribs10/smeserver-postgresql.spec
ViewVC logotype

Annotation of /rpms/smeserver-postgresql/contribs10/smeserver-postgresql.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Mon Dec 12 16:33:54 2022 UTC (17 months, 2 weeks ago) by jpp
Branch: MAIN
CVS Tags: smeserver-postgresql-0_2_0-3_el7_sme
Changes since 1.2: +6 -1 lines
* Mon Dec 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2.0-3.sme
- fix pre-backup event fails error 256 [SME: 12264]

1 michel 1.1 Summary: e-smith specific postgresql configuration and templates.
2     %define name smeserver-postgresql
3     Name: %{name}
4     %define version 0.2.0
5     %define pg_ver 13
6 jpp 1.3 %define release 3
7 michel 1.1 Version: %{version}
8     Release: %{release}%{?dist}
9     License: GPL
10     Group: Networking/Daemons
11     Source: %{name}-%{version}.tar.gz
12 jpp 1.2 Patch0: smeserver-postgresql-0.2.0-preset.patch
13 jpp 1.3 Patch1: smeserver-postgresql-0.2.0-bz12264-backup.patch
14 jpp 1.2
15 michel 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
16     BuildArch: noarch
17     BuildRequires: e-smith-devtools >= 2.6.0-10
18     Requires: e-smith-base >= 5.8.1
19     Requires: e-smith-lib >= 2.6.0-14
20     Requires: postgresql%{pg_ver}
21     Requires: postgresql%{pg_ver}-server
22     Requires: postgresql%{pg_ver}-libs
23     Requires: postgresql%{pg_ver}-contrib
24     AutoReqProv: no
25    
26     %description
27     This package adds necessary startup and configuration items for
28     postgresql.
29    
30     %prep
31     %setup
32 jpp 1.2 %patch0 -p1
33 jpp 1.3 %patch1 -p1
34 michel 1.1
35     %build
36     mkdir -p root/etc/e-smith/pgsql/init
37     perl createlinks
38    
39     mkdir -p root/var/log/postgresql
40     mkdir -p root/home/e-smith/db/pgsql
41     mkdir -p root/etc/e-smith/pgsql/init
42     #ln -s root/var/lib/pgsql/%{pg_ver} root/var/lib/pgsql/cur
43    
44     %install
45     rm -rf $RPM_BUILD_ROOT
46     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
47     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
48     --file /sbin/e-smith/systemd/postgresql-initialize 'attr(0554,root,root)' \
49     --dir '/var/log/postgresql' 'attr(2750,postgres,postgres)' \
50     --dir '/home/e-smith/db/pgsql' 'attr(0750,root,root)' \
51     > %{name}-%{version}-filelist
52     echo "%doc COPYING" >> %{name}-%{version}-filelist
53    
54     %clean
55     rm -rf $RPM_BUILD_ROOT
56    
57     %files -f %{name}-%{version}-filelist
58     %defattr(-,root,root)
59    
60     %changelog
61 jpp 1.3 * Mon Dec 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2.0-3.sme
62     - fix pre-backup event fails error 256 [SME: 12264]
63    
64 jpp 1.2 * Fri Dec 02 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2.0-2.sme
65     - fix preset OUT missing
66    
67 michel 1.1 * Wed Nov 17 2021 Michel Begue <mab974@gmail.com> 0.2.0-1
68     - First import to Sme 10 (postgresql13)
69    
70     * Tue Sep 11 2007 Charlie Brady <charlieb@e-smith.com> 0.0.1-24
71     - Add support for localhost/private/public access settings to
72     determine which network interfaces to bind to.
73    
74     * Thu May 24 2007 Charlie Brady <charlieb@e-smith.com> 0.0.1-23
75     - Determine correct format for network access specs in postgresql.conf
76     at template expansion time (postgresql 7 and 8 need different
77     directives).
78    
79     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
80     - Clean up spec so package can be built by koji/plague
81    
82     * Tue Feb 06 2007 Charlie Brady <charlieb@e-smith.com> 0.0.1-22
83     - Escape braces in full restore template.
84    
85     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
86     - Update to new release naming. No functional changes.
87     - Make Packager generic
88    
89     * Fri Dec 01 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-21
90     - Tighten permissions of dump file so that it is never world
91     readable.
92     - Fix restore scriptlet so that it exits silently if there is no
93     dump to restore from.
94     - Fix taint problem with restore script.
95     - Fix services2adjust symlink names so that postgresl is stopped
96     prior to restore, and restarted during timezone change.
97    
98     * Wed Oct 18 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-20
99     - Expand template for 00_restore_backup pgsql.init script during
100     pre-restore event, so that the dump is restored following next
101     reboot.
102    
103     * Tue Oct 17 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-19
104     - Fix permissions problem with restore from backup.
105    
106     * Mon Sep 25 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-18
107     - Ensure that pre-backup event does not fail if postgresql is disabled.
108     - Apply sigterm patch - included in -17 source, but not applied in build.
109    
110     * Thu Sep 21 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-17
111     - Add control/t script so that SIGINT is used to terminate postgresql
112     (so that existing connections cannot keep the server up indefinitely).
113    
114     * Thu Sep 14 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-16
115     - Fix run script so that conf templates are not run until after
116     initdb.
117    
118     * Thu Sep 7 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-15
119     - Fix permissions of run files (typo).
120    
121     * Tue Aug 29 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-14
122     - Fix comparison operator in tcpip template fragment.
123    
124     * Tue Aug 29 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-13
125     - Fix ownership of config files (typo).
126    
127     * Tue Aug 29 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-12
128     - Run all pgsql.init scripts is user 'postgres'.
129    
130     * Thu Aug 24 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-11
131     - Require passwords for local socket and loopback socket connections
132     except for 'postgres' user connecting via Unix domain socket.
133    
134     * Mon Aug 21 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-10
135     - Add option to accept connections on tcpip socket.
136    
137     * Fri Aug 04 2006 Charlie Brady <charlie_brady@mitel.com> 0.0.1-09
138     - Fix permissions on log/run file, and fix name of pgsql/init
139     directory.
140    
141     * Wed Jun 28 2006 Charlie Brady <charlieb@e-smith.com>
142     - [0.0.1-08]
143     - Deal more correctly with pgsql.init startup race condition.
144    
145     * Wed Jun 28 2006 Charlie Brady <charlieb@e-smith.com>
146     - [0.0.1-07]
147     - Add full database restore feature.
148    
149     * Wed Jun 28 2006 Charlie Brady <charlieb@e-smith.com>
150     - [0.0.1-06]
151     - Move config templates to the correct place.
152     - Fix delete-db action to remove empty subdirectories of
153     /var/lib/pgsql/data.
154    
155     * Wed Jun 28 2006 Charlie Brady <charlieb@e-smith.com>
156     - [0.0.1-05]
157     - Use chpst rather than setuidgid in run script.
158    
159     * Wed Jun 28 2006 Charlie Brady <charlieb@e-smith.com>
160     - [0.0.1-04]
161     - Add minimal templated configuration files.
162    
163     * Wed Jun 28 2006 Charlie Brady <charlieb@e-smith.com>
164     - [0.0.1-03]
165     - Fix broken pqsql.init.
166    
167     * Wed Jun 28 2006 Charlie Brady <charlieb@e-smith.com>
168     - [0.0.1-02]
169     - Add missing /etc/e-smith/pgsql/init directory
170    
171     * Wed May 24 2006 Charlie Brady <charlieb@e-smith.com>
172     - [0.0.1-01]
173     - initial release

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed