Patch4: postgresql-disable_horology_test.patch
Patch5: postgresql-heimdal.patch
Patch6: postgresql-link.patch
+Patch7: socket-dir-fixes.patch
URL: http://www.postgresql.org/
BuildRequires: autoconf >= 2.69
BuildRequires: automake
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
# force rebuild of bison/flex files
find src -name \*.l -o -name \*.y | xargs touch
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
- $RPM_BUILD_ROOT/var/{lib/pgsql,log} \
+ $RPM_BUILD_ROOT/var/{lib/pgsql,log,run/postgresql} \
$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
$RPM_BUILD_ROOT%{_mandir}
%dir %{_libdir}/postgresql
%dir %{_datadir}/postgresql
%attr(700,postgres,postgres) %dir /var/lib/pgsql
+%attr(700,postgres,postgres) %dir /var/run/postgresql
%files dirs
%defattr(644,root,root,755)