Hello community, here is the log from the commit of package postgresql-init for openSUSE:Factory checked in at 2015-10-24 10:25:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/postgresql-init (Old) and /work/SRC/openSUSE:Factory/.postgresql-init.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "postgresql-init" Changes: -------- --- /work/SRC/openSUSE:Factory/postgresql-init/postgresql-init.changes 2015-02-23 13:13:07.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.postgresql-init.new/postgresql-init.changes 2015-10-24 10:25:45.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Oct 12 11:31:13 UTC 2015 - m...@suse.com + +- Move systemd related stuff and user/group creation from + postgresqlXX-server to postgresql-init. + +------------------------------------------------------------------- New: ---- postgresql-tmpfiles.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ postgresql-init.spec ++++++ --- /var/tmp/diff_new_pack.6n9sX0/_old 2015-10-24 10:25:46.000000000 +0200 +++ /var/tmp/diff_new_pack.6n9sX0/_new 2015-10-24 10:25:46.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package postgresql-init # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,11 @@ Source0: postgresql-init Source1: postgresql-sysconfig Source2: postgresql-firewall +Source3: postgresql-tmpfiles.conf +BuildRequires: pwdutils +BuildRequires: systemd +%{?systemd_requires} +Requires(pre): pwdutils Requires(post): %fillup_prereq Requires(postun): %insserv_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -46,16 +51,6 @@ postgresql*-server binary package to allow parallel installation of several server versions. - - -Authors: --------- - Marc G. Fournier <scra...@hub.org> - Tom Lane <t...@sss.pgh.pa.us> - Vadim B. Mikheev <vadi...@yahoo.com> - Bruce Momjian <pg...@candle.pha.pa.us> - Jan Wieck <janwi...@yahoo.com> - %prep %build @@ -70,11 +65,20 @@ install -m755 -d %buildroot%fwdir install -m644 %{S:2} %buildroot%fwdir/%fwname +install -m755 -d %buildroot/%_tmpfilesdir +install -m644 %{S:3} %buildroot%_tmpfilesdir/postgresql.conf + install -m755 -d %buildroot/usr/sbin ln -sf /etc/init.d/postgresql %buildroot/usr/sbin/rcpostgresql +%pre +groupadd -g 26 -o -r postgres >/dev/null 2>/dev/null || : +useradd -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ + -c "PostgreSQL Server" -u 26 postgres 2>/dev/null || : + %post %fillup_only -n postgresql +systemd-tmpfiles --create postgresql.conf test -x /bin/systemctl && /bin/systemctl daemon-reload || : %preun @@ -87,8 +91,10 @@ %files %defattr(-,root,root,-) %config /etc/init.d/postgresql +%dir %fwdir %config %fwdir/%fwname /var/adm/fillup-templates/sysconfig.postgresql /usr/sbin/rcpostgresql +%_tmpfilesdir/postgresql.conf %changelog ++++++ postgresql-tmpfiles.conf ++++++ # For the PostgreSQL server's unix domain socket d /var/run/postgresql 0755 postgres postgres -