[csw-devel] SF.net SVN: gar:[12254] csw/mgar/pkg/postgresql/branches/postgresql-8.3
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sat Jan 8 14:54:35 CET 2011
Revision: 12254
http://gar.svn.sourceforge.net/gar/?rev=12254&view=rev
Author: wahwah
Date: 2011-01-08 13:54:35 +0000 (Sat, 08 Jan 2011)
Log Message:
-----------
postgresql-8.3: Backport of the build description
Backported 9.0 stuff into 8.3.
Modified Paths:
--------------
csw/mgar/pkg/postgresql/branches/postgresql-8.3/Makefile
csw/mgar/pkg/postgresql/branches/postgresql-8.3/checksums
Added Paths:
-----------
csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-83.postinstall
Removed Paths:
-------------
csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-90.postinstall
Modified: csw/mgar/pkg/postgresql/branches/postgresql-8.3/Makefile
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-8.3/Makefile 2011-01-08 11:00:28 UTC (rev 12253)
+++ csw/mgar/pkg/postgresql/branches/postgresql-8.3/Makefile 2011-01-08 13:54:35 UTC (rev 12254)
@@ -16,16 +16,14 @@
# example of it. (gmake repackage may produce the right output)
NAME = postgresql
-BASE_VERSION = 9.0
+BASE_VERSION = 8.3
# How to make one automatically?
-VERSION_NODOT = 9_0
-BASE_VERSION_G = 90
-PATCHLEVEL = 0
+VERSION_NODOT = 8_3
+BASE_VERSION_G = 83
+PATCHLEVEL = 13
VERSION = $(BASE_VERSION).$(PATCHLEVEL)
CATEGORIES = apps
-SHELL = /opt/csw/bin/bash
-
# Useful when making a series of builds on the same day
# GARFLAVOR ?= DBG
@@ -76,14 +74,14 @@
SPKG_DESC_CSWpostgresql = An advanced open source database
SPKG_DESC_CSWpostgresql-$(BASE_VERSION_G)-doc = PostgreSQL $(BASE_VERSION).x Documentation
-RUNTIME_DEP_PKGS_CSWpostgresql-90 += CSWlibxslt
-RUNTIME_DEP_PKGS_CSWpostgresql-90 += CSWlibgnugetopt
-RUNTIME_DEP_PKGS_CSWpostgresql-90 += CSWzlib
-RUNTIME_DEP_PKGS_CSWpostgresql-90 += CSWlibxml2
-RUNTIME_DEP_PKGS_CSWpostgresql-90 += CSWreadline
-RUNTIME_DEP_PKGS_CSWpostgresql-90 += CSWkrb5lib
-RUNTIME_DEP_PKGS_CSWpostgresql-90 += CSWosslrt
-RUNTIME_DEP_PKGS_CSWpostgresql-90 += CSWlibpq5
+RUNTIME_DEP_PKGS_CSWpostgresql-$(BASE_VERSION_G) += CSWlibxslt
+RUNTIME_DEP_PKGS_CSWpostgresql-$(BASE_VERSION_G) += CSWlibgnugetopt
+RUNTIME_DEP_PKGS_CSWpostgresql-$(BASE_VERSION_G) += CSWzlib
+RUNTIME_DEP_PKGS_CSWpostgresql-$(BASE_VERSION_G) += CSWlibxml2
+RUNTIME_DEP_PKGS_CSWpostgresql-$(BASE_VERSION_G) += CSWreadline
+RUNTIME_DEP_PKGS_CSWpostgresql-$(BASE_VERSION_G) += CSWkrb5lib
+RUNTIME_DEP_PKGS_CSWpostgresql-$(BASE_VERSION_G) += CSWosslrt
+RUNTIME_DEP_PKGS_CSWpostgresql-$(BASE_VERSION_G) += CSWlibpq5
ARCHALL_CSWpostgresql = 1
ARCHALL_CSWpostgresql-$(BASE_VERSION_G)-doc = 1
@@ -202,7 +200,6 @@
PACKAGES += CSWlibpq5
CATALOGNAME_CSWlibpq5 = libpq5
-PKGFILES_CSWlibpq5 += $(call baseisadirs,$(prefix)/lib,libpq\.so\.5\.3)
PKGFILES_CSWlibpq5 += $(call baseisadirs,$(prefix)/lib,libpq\.so\.5(\.\d+)*)
SPKG_DESC_CSWlibpq5 += PostgreSQL C client library (built from $(BASE_VERSION).x sources), libpq.so.5
RUNTIME_DEP_PKGS_CSWlibpq5 += CSWosslrt
@@ -210,7 +207,6 @@
PACKAGES += CSWlibecpg6
CATALOGNAME_CSWlibecpg6 = libecpg6
-PKGFILES_CSWlibecpg6 += $(call baseisadirs,$(prefix)/lib,libecpg\.so\.6\.0)
PKGFILES_CSWlibecpg6 += $(call baseisadirs,$(prefix)/lib,libecpg\.so\.6(\.\d+)*)
SPKG_DESC_CSWlibecpg6 += Embedded PostgreSQL for C library (built from $(BASE_VERSION).x sources), libecpg.so.6
RUNTIME_DEP_PKGS_CSWlibecpg6 += CSWlibpgtypes3
@@ -218,7 +214,6 @@
PACKAGES += CSWlibecpg-compat3
CATALOGNAME_CSWlibecpg-compat3 = libecpg_compat3
-PKGFILES_CSWlibecpg-compat3 += $(call baseisadirs,$(prefix)/lib,libecpg_compat\.so\.3\.2)
PKGFILES_CSWlibecpg-compat3 += $(call baseisadirs,$(prefix)/lib,libecpg_compat\.so\.3(\.\d+)*)
SPKG_DESC_CSWlibecpg-compat3 += Older version of run-time library for ECPG programs (built from $(BASE_VERSION).x sources), libecpg_compat.so.3
RUNTIME_DEP_PKGS_CSWlibecpg-compat3 += CSWlibecpg6
@@ -258,36 +253,34 @@
CATALOGNAME_CSWpostgresql-$(BASE_VERSION_G) = postgresql_$(BASE_VERSION_G)
SPKG_DESC_CSWpostgresql-$(BASE_VERSION_G) = PostgreSQL, version $(BASE_VERSION).x
+# Private shared libraries have sonames, which triggers this error.
+CHECKPKG_OVERRIDES_CSWpostgresql-$(BASE_VERSION_G) += soname-not-part-of-filename
+
# Legacy libraries
PACKAGES += CSWlibpq3
CATALOGNAME_CSWlibpq3 = libpq3
-PKGFILES_CSWlibpq3 += $(call baseisadirs,$(prefix)/lib,libpq\.so\.3\.2)
PKGFILES_CSWlibpq3 += $(call baseisadirs,$(prefix)/lib,libpq\.so\.3(\.\d+)*)
SPKG_DESC_CSWlibpq3 += PostgreSQL C client library, libpq.so.3
RUNTIME_DEP_PKGS_CSWlibpq3 += CSWosslrt
PACKAGES += CSWlibpq4
CATALOGNAME_CSWlibpq4 = libpq4
-PKGFILES_CSWlibpq4 += $(call baseisadirs,$(prefix)/lib,libpq\.so\.4\.1)
PKGFILES_CSWlibpq4 += $(call baseisadirs,$(prefix)/lib,libpq\.so\.4(\.\d+)*)
SPKG_DESC_CSWlibpq4 += PostgreSQL C client library, libpq.so.4
RUNTIME_DEP_PKGS_CSWlibpq4 += CSWosslrt
PACKAGES += CSWlibpgtypes1
CATALOGNAME_CSWlibpgtypes1 = libpgtypes1
-PKGFILES_CSWlibpgtypes1 += $(call baseisadirs,$(prefix)/lib,libpgtypes\.so\.1\.2)
PKGFILES_CSWlibpgtypes1 += $(call baseisadirs,$(prefix)/lib,libpgtypes\.so\.1(\.\d+)*)
SPKG_DESC_CSWlibpgtypes1 += Used by programs built with ecpg (Embedded PostgreSQL for C), libpgtypes.so.1
PACKAGES += CSWlibpgtypes2
CATALOGNAME_CSWlibpgtypes2 = libpgtypes2
-PKGFILES_CSWlibpgtypes2 += $(call baseisadirs,$(prefix)/lib,libpgtypes\.so\.2\.2)
PKGFILES_CSWlibpgtypes2 += $(call baseisadirs,$(prefix)/lib,libpgtypes\.so\.2(\.\d+)*)
SPKG_DESC_CSWlibpgtypes2 += Used by programs built with ecpg (Embedded PostgreSQL for C), libpgtypes.so.2
PACKAGES += CSWlibecpg4
CATALOGNAME_CSWlibecpg4 = libecpg4
-PKGFILES_CSWlibecpg4 += $(call baseisadirs,$(prefix)/lib,libecpg\.so\.4\.2)
PKGFILES_CSWlibecpg4 += $(call baseisadirs,$(prefix)/lib,libecpg\.so\.4(\.\d+)*)
SPKG_DESC_CSWlibecpg4 += Embedded PostgreSQL for C library, libecpg.so.4
RUNTIME_DEP_PKGS_CSWlibecpg4 += CSWlibpgtypes1
@@ -296,7 +289,6 @@
PACKAGES += CSWlibecpg5
CATALOGNAME_CSWlibecpg5 = libecpg5
-PKGFILES_CSWlibecpg5 += $(call baseisadirs,$(prefix)/lib,libecpg\.so\.5\.2)
PKGFILES_CSWlibecpg5 += $(call baseisadirs,$(prefix)/lib,libecpg\.so\.5(\.\d+)*)
SPKG_DESC_CSWlibecpg5 += Embedded PostgreSQL for C library, libecpg.so.5
RUNTIME_DEP_PKGS_CSWlibecpg5 += CSWlibpgtypes2
@@ -304,7 +296,6 @@
PACKAGES += CSWlibecpg-compat2
CATALOGNAME_CSWlibecpg-compat2 = libecpg_compat2
-PKGFILES_CSWlibecpg-compat2 += $(call baseisadirs,$(prefix)/lib,libecpg_compat\.so\.2\.2)
PKGFILES_CSWlibecpg-compat2 += $(call baseisadirs,$(prefix)/lib,libecpg_compat\.so\.2(\.\d+)*)
SPKG_DESC_CSWlibecpg-compat2 += Older version of run-time library for ECPG programs, libecpg_compat.so.2
RUNTIME_DEP_PKGS_CSWlibecpg-compat2 += CSWlibpgtypes2
Modified: csw/mgar/pkg/postgresql/branches/postgresql-8.3/checksums
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-8.3/checksums 2011-01-08 11:00:28 UTC (rev 12253)
+++ csw/mgar/pkg/postgresql/branches/postgresql-8.3/checksums 2011-01-08 13:54:35 UTC (rev 12254)
@@ -1 +1 @@
-14c2122cc322e69ab2ab702ed7714bbe postgresql-9.0.0.tar.bz2
+56e8796510afb6a268d512f0ca262ddf postgresql-8.3.13.tar.bz2
Copied: csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-83.postinstall (from rev 12252, csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-90.postinstall)
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-83.postinstall (rev 0)
+++ csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-83.postinstall 2011-01-08 13:54:35 UTC (rev 12254)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# vim:set ft=sh:
+#
+# $Id$
+#
+# Initialize the database cluster if it hasn't been initialized before.
+
+# Read in the user configuration file
+[ -s /opt/csw/etc/postgresql.conf ] && . /opt/csw/etc/postgresql.conf
+[ -s @sysconfdir@/postgresql.conf ] && . @sysconfdir@/postgresql.conf
+
+PGDATA=@PGDATA@
+PGINIT=@bindir@/initdb
+
+initialize_cluster() {
+ chown postgres "${PGDATA}"
+ chmod 0700 "${PGDATA}"
+ echo "Initializing PostgreSQL database..."
+ su postgres -c "\"${PGINIT}\" -D \"${PGDATA}\" -E utf-8"
+}
+
+if [ `ls -l ${PGDATA} 2>/dev/null | wc -l` -eq 1 ]; then
+ initialize_cluster
+else
+ echo "The database cluster seems to be initialized already."
+fi
+
+if [ -x /usr/sbin/svcadm ]; then
+ fmri="cswpostgres_ at VERSION_NODOT@"
+ echo "Enabling the ${fmri} service in SMF"
+ svcadm clear "${fmri}"
+ svcadm enable "${fmri}"
+else
+ initscript="/etc/opt/csw/init.d/cswpostgres_ at VERSION_NODOT@"
+ echo "Issuing ${initscript} start"
+ "${initscript}" start
+fi
+
+exit 0
Deleted: csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-90.postinstall
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-90.postinstall 2011-01-08 11:00:28 UTC (rev 12253)
+++ csw/mgar/pkg/postgresql/branches/postgresql-8.3/files/CSWpostgresql-90.postinstall 2011-01-08 13:54:35 UTC (rev 12254)
@@ -1,39 +0,0 @@
-#!/bin/sh
-# vim:set ft=sh:
-#
-# $Id$
-#
-# Initialize the database cluster if it hasn't been initialized before.
-
-# Read in the user configuration file
-[ -s /opt/csw/etc/postgresql.conf ] && . /opt/csw/etc/postgresql.conf
-[ -s @sysconfdir@/postgresql.conf ] && . @sysconfdir@/postgresql.conf
-
-PGDATA=@PGDATA@
-PGINIT=@bindir@/initdb
-
-initialize_cluster() {
- chown postgres "${PGDATA}"
- chmod 0700 "${PGDATA}"
- echo "Initializing PostgreSQL database..."
- su postgres -c "\"${PGINIT}\" -D \"${PGDATA}\" -E utf-8"
-}
-
-if [ `ls -l ${PGDATA} 2>/dev/null | wc -l` -eq 1 ]; then
- initialize_cluster
-else
- echo "The database cluster seems to be initialized already."
-fi
-
-if [ -x /usr/sbin/svcadm ]; then
- fmri="cswpostgres_ at VERSION_NODOT@"
- echo "Enabling the ${fmri} service in SMF"
- svcadm clear "${fmri}"
- svcadm enable "${fmri}"
-else
- initscript="/etc/opt/csw/init.d/cswpostgres_ at VERSION_NODOT@"
- echo "Issuing ${initscript} start"
- "${initscript}" start
-fi
-
-exit 0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list