/[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.2 - (hide annotations) (download)
Fri Dec 2 05:31:47 2022 UTC (23 months, 3 weeks ago) by jpp
Branch: MAIN
CVS Tags: smeserver-postgresql-0_2_0-2_el7_sme
Changes since 1.1: +7 -1 lines
* Fri Dec 02 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2.0-2.sme
- fix preset OUT missing

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

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