From: <haw...@us...> - 2009-02-02 16:47:14
|
Revision: 226 http://pgsqlformac.svn.sourceforge.net/pgsqlformac/?rev=226&view=rev Author: hawkmoon Date: 2009-02-02 16:47:09 +0000 (Mon, 02 Feb 2009) Log Message: ----------- Modified Paths: -------------- trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/02postgresql-contents.xml trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/02postgresql.xml trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/index.xml trunk/Installers/PostgreSQL for Mac/postflight trunk/Installers/PostgreSQL for Mac/postinstall trunk/Installers/PostgreSQL for Mac/postupgrade Added Paths: ----------- trunk/Installers/PostgreSQL for Mac/InstallationCheck trunk/Installers/PostgreSQL for Mac/background.tif trunk/Installers/PostgreSQL for Mac/preflight Added: trunk/Installers/PostgreSQL for Mac/InstallationCheck =================================================================== --- trunk/Installers/PostgreSQL for Mac/InstallationCheck (rev 0) +++ trunk/Installers/PostgreSQL for Mac/InstallationCheck 2009-02-02 16:47:09 UTC (rev 226) @@ -0,0 +1,102 @@ +#!/bin/sh + +# InstallationCheck Script +# determines if the system can be installed. +# there are three checks that need to be made. +# 1. Is PostgreSQL already installed +# 2. Is PostgreSQL already running. +# 3. Does the system meet minimum requirements + +isPostgreSQLInstalled='-NO-' +isPostgreSQLStartupItem='-NO-' +isInLibray='-NO-' +isInUsr='-NO-' +isInUsrLocal='-NO-' +isInOpt='-NO-' +isPostgresUserPresent='-NO-' +isPostgresGroupPresent='-NO-' +isPostgresRunning='-NO-' + +# should the script fail, it will return different error codes. +# 0 : success +# 32 : warning +# 48 - 63 : warning with reason from InstallationCheck.strings in the package. +# the index of the String is the result - 32. +# 64 : error, do not install +# 112 - 127 : error, do not install with reason from InstallationCheck.strings in the package. +# the index of the String is the result - 96. + +# Is PostgreSQL installed +# - check for a PostgreSQL for Mac installation +# - check for an installation of Postgres in standard unix style paths + +if test -f /Library/PostgreSQL8/bin/postgres; then + isPostgreSQLInstalled='-YES-' + isInLibray='-YES-' + echo "1" +elif test -f /opt/bin/postgres; then + isPostgreSQLInstalled='-YES-' + isInOpt='-YES-' + echo "2" +elif test -f /usr/bin/postgres; then + isPostgreSQLInstalled='-YES-' + isInUsr='-YES-' + echo "3" +elif test -f /usr/local/bin/postgres; then + isPostgreSQLInstalled='-YES-' + isInUsrLocal='-YES-' + echo "4" +fi + +# Is PostgreSQL running +# - check for Postmaster + +processId="" +if [ "$isPostgreSQLInstalled" = "-YES-" ]; then + processId=`ps auxw | grep '^postgres' |grep 'bin/postgres' | awk -F" " '{print $2}'` + # echo "Process ID: $x" + if /bin/test "$processId"; then + isPostgresRunning='-YES-' + fi +fi + +# Check the Minimum System Requirements +# - Mac OS X 10.4.x +# - CPU Arch is PPC, PPC64, x86, or X86_64 +# - Memory is >= 512mb + +#uname -p # processor +#uname -r # version + +#/Library/PostgreSQL8/bin/psql --version +# psql (PostgreSQL) 8.3.5 + + +# Known Warnings: +# 48 - PostgreSQL installation exists and is current +# 49 - PostgreSQL installation exists but is not a PostgreSQL for Mac install +# 50 - Postgres user exists, but was not created by a PostgreSQL for Mac +# installer +# 51 - Postgres group exists, but was not created by a PostgreSQL for Mac +# installer +# 52 - PostgreSQL is running but is not controllable via a StartupItem. +# 53 - PostgreSQL is a major version change, make sure to perform a backup +# installation, as the installer will overwrite the current data directory + +# Known Errors: +# 112 - Mac OS X Version is too low +# 113 - Unknown CPU Type +# 114 - Insufficie memory + +if [ "$isPostgreSQLInstalled" = "-YES-" ]; then + echo "PostgreSQL Is Installed" + + if [ "$isInLibray" = "-YES-" ]; then + echo "... in /Library/PostgreSQL" + fi + + if ["$processId" != ""]; then + echo "... existing PostgreSQL process was running" + fi + +fi Modified: trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/02postgresql-contents.xml =================================================================== --- trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/02postgresql-contents.xml 2009-01-14 05:02:50 UTC (rev 225) +++ trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/02postgresql-contents.xml 2009-02-02 16:47:09 UTC (rev 226) @@ -1 +1 @@ -<pkg-contents spec="1.12"><f n="PostgreSQL" o="root" g="wheel" p="16877" pt="/Users/arsatori/Projects/PostgreSQL/svn/trunk/StartupItem/PostgreSQL" m="true" t="file"><f n=".svn" o="root" g="wheel" p="16893" x="true"><f n="all-wcprops" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893" x="true"><f n="PostgreSQL.svn-base" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><f n="StartupParameters.plist.svn-base" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893" x="true"><f n="PostgreSQL.svn-base" o="root" g="wheel" p="33277" x="true"><mod>mode</mod></f><f n="StartupParameters.plist.svn-base" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893" x="true"><f n="prop-base" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="PostgreSQL" o="root" g="wheel" p="33260"/><f n="Resources" o="root" g="wheel" p="16804"><f n=".svn" o="root" g="wheel" p="16893" x="true"><f n="all-wcprops" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204" x="true"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893" x="true"><f n="prop-base" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893" x="true"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="Dutch.lproj" o="root" g="wheel" p="16893"><f n=".svn" o="root" g="wheel" p="16893"><f n="all-wcprops" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893"><f n="prop-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="Localizable.strings" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="English.lproj" o="root" g="wheel" p="16893"><f n=".svn" o="root" g="wheel" p="16893"><f n="all-wcprops" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893"><f n="prop-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="Localizable.strings" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="French.lproj" o="root" g="wheel" p="16893"><f n=".svn" o="root" g="wheel" p="16893"><f n="all-wcprops" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893"><f n="prop-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="Localizable.strings" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="German.lproj" o="root" g="wheel" p="16893"><f n=".svn" o="root" g="wheel" p="16893"><f n="all-wcprops" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893"><f n="prop-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="Localizable.strings" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="Italian.lproj" o="root" g="wheel" p="16893"><f n=".svn" o="root" g="wheel" p="16893"><f n="all-wcprops" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893"><f n="prop-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="Localizable.strings" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="Japanese.lproj" o="root" g="wheel" p="16893"><f n=".svn" o="root" g="wheel" p="16893"><f n="all-wcprops" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893"><f n="prop-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="Localizable.strings" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="Spanish.lproj" o="root" g="wheel" p="16893"><f n=".svn" o="root" g="wheel" p="16893"><f n="all-wcprops" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="entries" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="format" o="root" g="wheel" p="33204"><mod>mode</mod></f><f n="prop-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><f n="Localizable.strings.svn-base" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f><f n="tmp" o="root" g="wheel" p="16893"><f n="prop-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="props" o="root" g="wheel" p="16893"><mod>mode</mod></f><f n="text-base" o="root" g="wheel" p="16893"><mod>mode</mod></f><mod>mode</mod></f><mod>mode</mod></f><f n="Localizable.strings" o="root" g="wheel" p="33204"><mod>mode</mod></f><mod>mode</mod></f></f><f n="StartupParameters.plist" o="root" g="wheel" p="33188"/></f></pkg-contents> \ No newline at end of file +<pkg-contents spec="1.12"/> \ No newline at end of file Modified: trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/02postgresql.xml =================================================================== --- trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/02postgresql.xml 2009-01-14 05:02:50 UTC (rev 225) +++ trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/02postgresql.xml 2009-02-02 16:47:09 UTC (rev 226) @@ -1 +1 @@ -<pkgref spec="1.12" uuid="A6D3C252-8A0E-40F3-8D65-9EE2D626B073"><config><identifier>com.druware.postgresqlformac.postgresqlForMac.postgresql.pkg</identifier><version>8.3.5</version><description></description><post-install type="none"/><requireAuthorization/><installFrom mod="true" includeRoot="true">/Users/arsatori/Projects/PostgreSQL/svn/trunk/StartupItem/PostgreSQL</installFrom><installTo mod="true">/Library/StartupItems/</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>parent</mod><mod>version</mod><mod>installTo.path</mod><mod>includeRoot</mod><mod>installTo</mod></config><contents><file-list>02postgresql-contents.xml</file-list><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref> \ No newline at end of file +<pkgref spec="1.12" uuid="A6D3C252-8A0E-40F3-8D65-9EE2D626B073"><config><identifier>com.druware.postgresqlformac.postgresqlForMac.postgresql.pkg</identifier><version>8.3.5</version><description></description><post-install type="none"/><requireAuthorization/><installFrom mod="true" includeRoot="true">/Users/arsatori/Projects/PostgreSQL/svn/trunk/StartupItem/PostgreSQL</installFrom><installTo mod="true">/Library/StartupItems/</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>parent</mod><mod>version</mod><mod>installTo.path</mod><mod>includeRoot</mod><mod>installTo</mod></config></pkgref> \ No newline at end of file Modified: trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/index.xml =================================================================== --- trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/index.xml 2009-01-14 05:02:50 UTC (rev 225) +++ trunk/Installers/PostgreSQL for Mac/PostgreSQL for Mac.pmdoc/index.xml 2009-02-02 16:47:09 UTC (rev 226) @@ -1,4 +1,4 @@ -<pkmkdoc spec="1.12"><properties><title>PostgreSQL for Mac</title><build>/Volumes/KINGSTON/PostgreSQL for Mac.mpkg</build><organization>com.druware.postgresqlformac</organization><userSees ui="both"/><min-target os="2"/><domain system="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><description>Installs a full PostgreSQL Database server environment on Mac OS X.</description><contents><choice title="Database Server" id="choice0" description="The core of the PostgreSQL for Mac deployment, this is the PostgreSQL Database engine, packaged and installed to the /Library/PostgreSQL location." starts_selected="true" starts_enabled="false" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.postgresql8.pkg"/><pkgref id="com.druware.postgresqlformac.postgresqlForMac.postgresqlServer.pkg"/><choice title="StartUp Item" id="choice1" starts_selected="true" starts_enabled="false" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.postgresql.pkg"/></choice><choice title="Server Applications" id="choice5" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.queryToolForPostgres.pkg"/><pkgref id="com.druware.postgresqlformac.postgresqlForMac.createDatabase.pkg"/><pkgref id="com.druware.postgresqlformac.postgresqlForMac.createUser.pkg"/></choice></choice><choice title="Database Access Toolkits" id="choice3" starts_selected="true" starts_enabled="true" starts_hidden="false"><choice title="Java (JDBC3)" id="choice6" description="Recommended JDBC Driver for Java 1.5." starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.postgresql83603jdbc3.pkg"/></choice><choice title="PGSQLKit Framework" id="choice11" description="PGSQLKit Framework for development and deployment of linked applications " starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.pgsqlkit.pkg"/></choice></choice></contents><resources bg-scale="tofit" bg-align="bottomleft"><locale lang="en"><resource relative="true" type="background">../PostgreSQL/Resources/background.tif</resource><resource mime-type="text/rtf" kind="embedded" type="license"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf350 +<pkmkdoc spec="1.12"><properties><title>PostgreSQL for Mac</title><build>/Volumes/KINGSTON/PostgreSQL for Mac.mpkg</build><organization>com.druware.postgresqlformac</organization><userSees ui="both"/><min-target os="2"/><domain system="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><description>Installs a full PostgreSQL Database server environment on Mac OS X.</description><contents><choice title="Database Server" id="choice0" description="The core of the PostgreSQL for Mac deployment, this is the PostgreSQL Database engine, packaged and installed to the /Library/PostgreSQL location." starts_selected="true" starts_enabled="false" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.postgresql8.pkg"/><pkgref id="com.druware.postgresqlformac.postgresqlForMac.postgresqlServer.pkg"/><choice title="StartUp Item" id="choice1" starts_selected="true" starts_enabled="false" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.postgresql.pkg"/></choice><choice title="Server Applications" id="choice5" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.queryToolForPostgres.pkg"/><pkgref id="com.druware.postgresqlformac.postgresqlForMac.createDatabase.pkg"/><pkgref id="com.druware.postgresqlformac.postgresqlForMac.createUser.pkg"/></choice></choice><choice title="Database Access Toolkits" id="choice3" starts_selected="true" starts_enabled="true" starts_hidden="false"><choice title="Java (JDBC3)" id="choice6" description="Recommended JDBC Driver for Java 1.5." starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.postgresql83603jdbc3.pkg"/></choice><choice title="PGSQLKit Framework" id="choice11" description="PGSQLKit Framework for development and deployment of linked applications " starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.druware.postgresqlformac.postgresqlForMac.pgsqlkit.pkg"/></choice></choice></contents><resources bg-scale="tofit" bg-align="bottomleft"><locale lang="en"><resource relative="true" type="background">../PostgreSQL/Resources/background.tif</resource><resource mime-type="text/rtf" kind="embedded" type="license"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430 {\fonttbl\f0\fnil\fcharset0 Verdana;\f1\fmodern\fcharset0 Courier;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural @@ -21,7 +21,7 @@ 3. Neither the name of the PostgreSQL Global Development Group nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ \ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\ -}]]></resource><resource mime-type="text/rtf" kind="embedded" type="readme"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf350 +}]]></resource><resource mime-type="text/rtf" kind="embedded" type="readme"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430 {\fonttbl\f0\fnil\fcharset0 LucidaGrande;} {\colortbl;\red255\green255\blue255;\red102\green102\blue102;} \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural @@ -36,7 +36,7 @@ \ The various graphical tools for Mac OS X are \cf2 Copyright \'a9 2004 \'96 2008 Druware Software Designs\cf0 .\ \ -The StartupItem is slightly modified from the one that Marc Liyange created, along with his original efforts at getting PostgreSQL running on Mac OS X.}]]></resource><resource mime-type="text/rtf" kind="embedded" type="welcome"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf350 +The StartupItem is slightly modified from the one that Marc Liyange created, along with his original efforts at getting PostgreSQL running on Mac OS X.}]]></resource><resource mime-type="text/rtf" kind="embedded" type="welcome"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430 {\fonttbl\f0\fnil\fcharset0 LucidaGrande;} {\colortbl;\red255\green255\blue255;\red128\green0\blue0;} \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural Added: trunk/Installers/PostgreSQL for Mac/background.tif =================================================================== (Binary files differ) Property changes on: trunk/Installers/PostgreSQL for Mac/background.tif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/Installers/PostgreSQL for Mac/postflight =================================================================== --- trunk/Installers/PostgreSQL for Mac/postflight 2009-01-14 05:02:50 UTC (rev 225) +++ trunk/Installers/PostgreSQL for Mac/postflight 2009-02-02 16:47:09 UTC (rev 226) @@ -2,9 +2,21 @@ set -e echo ...running postflight -echo ...log permissions -sudo chown -R postgres:admin /Library/PostgreSQL8/log +# Set the permissions on the directories +echo ...log +if test ! -d /Library/PostgreSQL8/log; then + mkdir /Library/PostgreSQL8/log +fi +sudo touch /Library/PostgreSQL8/log/PostgreSQL8.log +if test ! -f /Library/Logs/PostgreSQL8.log; then + ln -s /Library/PostgreSQL8/log/PostgreSQL8.log /Library/Logs/PostgreSQL8.log +fi + +echo ...permissions +chown -R root:admin /Library/PostgreSQL8 +chown -R postgres:admin /Library/PostgreSQL8/log + echo ...data if test ! -d /Library/PostgreSQL8/data; then echo ...no data folder found Modified: trunk/Installers/PostgreSQL for Mac/postinstall =================================================================== --- trunk/Installers/PostgreSQL for Mac/postinstall 2009-01-14 05:02:50 UTC (rev 225) +++ trunk/Installers/PostgreSQL for Mac/postinstall 2009-02-02 16:47:09 UTC (rev 226) @@ -69,17 +69,6 @@ set -e -# Set the permissions on the directories - -echo ...log -if test ! -d /Library/PostgreSQL8/log; then - mkdir /Library/PostgreSQL8/log -fi -sudo touch /Library/PostgreSQL8/log/PostgreSQL8.log -if test ! -f /Library/Logs/PostgreSQL8.log; then - ln -s /Library/PostgreSQL8/log/PostgreSQL8.log /Library/Logs/PostgreSQL8.log -fi - echo completed postinstall Modified: trunk/Installers/PostgreSQL for Mac/postupgrade =================================================================== --- trunk/Installers/PostgreSQL for Mac/postupgrade 2009-01-14 05:02:50 UTC (rev 225) +++ trunk/Installers/PostgreSQL for Mac/postupgrade 2009-02-02 16:47:09 UTC (rev 226) @@ -66,20 +66,5 @@ echo password on the newly created account. \(sudo passwd postgres\) -# Set the permissions on the directories - -echo ...log -if test ! -d /Library/PostgreSQL8/log; then - mkdir /Library/PostgreSQL8/log -fi -sudo touch /Library/PostgreSQL8/log/PostgreSQL8.log -if test ! -f /Library/Logs/PostgreSQL8.log; then - ln -s /Library/PostgreSQL8/log/PostgreSQL8.log /Library/Logs/PostgreSQL8.log -fi - -echo ...permissions -chown -R root:admin /Library/PostgreSQL8 -chown -R postgres:admin /Library/PostgreSQL8/log - echo completed postupgrade Added: trunk/Installers/PostgreSQL for Mac/preflight =================================================================== --- trunk/Installers/PostgreSQL for Mac/preflight (rev 0) +++ trunk/Installers/PostgreSQL for Mac/preflight 2009-02-02 16:47:09 UTC (rev 226) @@ -0,0 +1,70 @@ +#!/bin/sh +echo ...running preflight + +# first let's make sure the the postgres user does +# not currently exist + +# Leopard/Tiger - this no longer works on Panther + +echo Checking for Postgres group... +PG_GID=`/usr/bin/dscl . read /groups/postgres PrimaryGroupID | grep "PrimaryGroupID:.[0-9]" | sed 's/.*: //' | sed 's/ //'` +if test $PG_GID; then + echo ...found Postgres with GID of $PG_GID +else + echo ...Postgres group not found + + # loop through the '400's' until we find an available gid + X=401 + until test $PG_GID; do + TEST_GID=`/usr/bin/dscl . search /groups PrimaryGroupID $X | grep $X ` + + if test $TEST_GID; then + echo ...Group ID $X is not available + else + echo ...Group ID $X is available, + PG_GID=$X + fi + X=`expr $X + 1` + done + + sudo /usr/bin/dscl . -create /groups/postgres PrimaryGroupID $PG_GID + echo ...Group postgres created with GID $PG_GID +fi + +echo Checking for Postgres user... +PG_UID_NOT_FOUND=0 +PG_UID=`/usr/bin/dscl . -read /users/postgres | grep "^UniqueID:.[0-9]" | sed 's/.*: //' | sed 's/ //'` +if test $PG_UID; then + echo ...found user postgres with UID of $PG_UID +else + echo ...user postgres not found + PG_UID_NOT_FOUND=1 + + # loop through the '400's' until we find an available gid + X=401 + until test $PG_UID; do + TEST_UID=`/usr/bin/dscl . -search /users UniqueID $X | grep $X ` + + if test $TEST_UID; then + echo ...Unique ID $X is not available + else + echo ...Unique ID $X is available, + PG_UID=$X + fi + X=`expr $X + 1` + done + + sudo /usr/bin/dscl . -create /users/postgres UniqueID $PG_UID + sudo /usr/bin/dscl . -append /users/postgres PrimaryGroupID $PG_GID + sudo /usr/bin/dscl . -append /users/postgres UserShell /bin/bash + sudo /usr/bin/dscl . -append /users/postgres RealName "PostgreSQL Server" +# sudo /usr/bin/dscl . -append /users/postgres NFSHomeDirectory /var/empty + sudo /usr/bin/dscl . -append /users/postgres NFSHomeDirectory /Library/PostgreSQL8 + + echo ...User postgres created with UID $PG_UID +fi + +echo completed preflight + + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |