]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- usermod for homedir ok to be called from trigger
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 19 Mar 2008 14:24:07 +0000 (14:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- adapter (yea i know those could be symlinks)

Changed files:
    postgresql.spec -> 1.404

postgresql.spec

index a28112a6069914e4595fd467acaa027b565f0121..f1009b64c5fd8ffa9776c31a228a58b0e66d4407 100644 (file)
@@ -64,14 +64,15 @@ Requires(pre):      /bin/id
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
-Requires(pre): /usr/sbin/usermod
+Requires(triggerpostun):       /bin/id
+Requires(triggerpostun):       /usr/sbin/usermod
 Requires:      %{name}-clients = %{version}-%{release}
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      rc-scripts
 Requires:      tzdata
+Obsoletes:     postgresql-module-tsearch2
 Obsoletes:     postgresql-server
 Obsoletes:     postgresql-test
-Obsoletes:     postgresql-module-tsearch2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pgmoduledir    %{_libdir}/postgresql
@@ -892,6 +893,7 @@ fi
 %groupadd -g 88 -r postgres
 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
 
+%triggerpostun -- %{name} < 7.2-2
 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
        /usr/sbin/usermod -d /home/services/postgres postgres
 fi
@@ -1108,9 +1110,9 @@ fi
 %files contrib
 %defattr(644,root,root,755)
 %doc contrib/README
-%{_bindir}/oid2name
-%{_bindir}/pgbench
-%{_bindir}/vacuumlo
+%attr(755,root,root) %{_bindir}/oid2name
+%attr(755,root,root) %{_bindir}/pgbench
+%attr(755,root,root) %{_bindir}/vacuumlo
 %attr(755,root,root) %{_pgmoduledir}/_int.so
 %attr(755,root,root) %{_pgmoduledir}/adminpack.so
 %attr(755,root,root) %{_pgmoduledir}/btree_gist.so
This page took 0.993277 seconds and 4 git commands to generate.