Reinhard Max 2015-09-30 07:30:44 +00:00 committed by Git OBS Bridge
parent 03694168dc
commit 2aa0a9657e
2 changed files with 9 additions and 2 deletions

6
postgresql-bashprofile Normal file
View File

@ -0,0 +1,6 @@
# Get PGDATA from /etc/sysconfig/postgresql
if test -f /etc/sysconfig/postgresql; then
eval eval $(sed -n '/^POSTGRES_DATADIR=/s//PGDATA=/p' /etc/sysconfig/postgresql)
export PGDATA
fi

View File

@ -157,6 +157,7 @@ and triggers.
echo "This is a dummy package to provide a dependency on the default PostgreSQL version." > README
%install
mkdir -p %buildroot/var/lib/pgsql/
sed 's,@LIBDIR@,%_libdir,g' %{SOURCE} > \
%buildroot/var/lib/pgsql/.bash_profile
@ -165,8 +166,8 @@ sed 's,@LIBDIR@,%_libdir,g' %{SOURCE} > \
%doc README
%files server
%defattr(-,root,root,-)
%doc README
%attr(-,root,root,-) README
%attr(750, postgres, postgres) %dir /var/lib/pgsql
%attr(640,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile
%files docs