OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 18-Dec-2006 10:24:48 Branch: HEAD Handle: 2006121809244800 Modified files: openpkg-src/postgresql82 postgresql82.spec Log: ODBC support works with both UnixODBC and iODBC so use 'ODBC' in comments only; add missing driver uninstallation; use a name for correct referencing Summary: Revision Changes Path 1.9 +7 -3 openpkg-src/postgresql82/postgresql82.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/postgresql82/postgresql82.spec ============================================================================ $ cvs diff -u -r1.8 -r1.9 postgresql82.spec --- openpkg-src/postgresql82/postgresql82.spec 15 Dec 2006 18:57:48 -0000 1.8 +++ openpkg-src/postgresql82/postgresql82.spec 18 Dec 2006 09:24:48 -0000 1.9 @@ -49,7 +49,7 @@ Group: Database License: GPL Version: %{V_postgresql_base}.%{V_postgresql_pl} -Release: 20061215 +Release: 20061218 # package options %option with_server yes @@ -697,13 +697,13 @@ echo " \$ psql" ) | %{l_rpmtool} msg -b -t notice - # optionally link into unixODBC + # optionally link into ODBC %if "%{with_odbc}" == "yes" ( echo "[PostgreSQL]" echo "Description = PostgreSQL ODBC driver" echo "Driver = $RPM_INSTALL_PREFIX/lib/psqlodbc.so" echo "Threading = 2" - ) | $RPM_INSTALL_PREFIX/bin/odbcinst -i -d -r + ) | $RPM_INSTALL_PREFIX/bin/odbcinst -i -d -r -n "PostgreSQL" %endif fi if [ $1 -eq 2 ]; then @@ -739,6 +739,10 @@ [ $1 -eq 0 ] || exit 0 %{l_rc} postgresql stop 2>/dev/null rm -f $RPM_INSTALL_PREFIX/var/postgresql/run/* >/dev/null 2>&1 || true + # optionally unlink from ODBC +%if "%{with_odbc}" == "yes" + $RPM_INSTALL_PREFIX/bin/odbcinst -u -d -n "PostgreSQL" +%endif exit 0 %endif @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org