SF.net SVN: gar:[22311] csw/mgar/pkg
guengel at users.sourceforge.net
guengel at users.sourceforge.net
Sat Oct 26 15:34:58 CEST 2013
Revision: 22311
http://gar.svn.sourceforge.net/gar/?rev=22311&view=rev
Author: guengel
Date: 2013-10-26 13:34:56 +0000 (Sat, 26 Oct 2013)
Log Message:
-----------
pg-ip4r/trunk: Initial commit.
Added Paths:
-----------
csw/mgar/pkg/pg-ip4r/
csw/mgar/pkg/pg-ip4r/Makefile
csw/mgar/pkg/pg-ip4r/branches/
csw/mgar/pkg/pg-ip4r/tags/
csw/mgar/pkg/pg-ip4r/trunk/
csw/mgar/pkg/pg-ip4r/trunk/Makefile
csw/mgar/pkg/pg-ip4r/trunk/checksums
csw/mgar/pkg/pg-ip4r/trunk/files/
csw/mgar/pkg/pg-ip4r/trunk/files/README.CSW
Added: csw/mgar/pkg/pg-ip4r/Makefile
===================================================================
--- csw/mgar/pkg/pg-ip4r/Makefile (rev 0)
+++ csw/mgar/pkg/pg-ip4r/Makefile 2013-10-26 13:34:56 UTC (rev 22311)
@@ -0,0 +1,2 @@
+%:
+ $(MAKE) -C trunk $*
Property changes on: csw/mgar/pkg/pg-ip4r/Makefile
___________________________________________________________________
Added: svn:keywords
+ Date Revision Author HeadURL Id
Added: svn:eol-style
+ native
Property changes on: csw/mgar/pkg/pg-ip4r/trunk
___________________________________________________________________
Added: svn:ignore
+ work
Added: csw/mgar/pkg/pg-ip4r/trunk/Makefile
===================================================================
--- csw/mgar/pkg/pg-ip4r/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/pg-ip4r/trunk/Makefile 2013-10-26 13:34:56 UTC (rev 22311)
@@ -0,0 +1,149 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = pg-ip4r
+VERSION = 1.05
+GARTYPE = v2
+GARCOMPILER = SOS12U3
+
+DESCRIPTION = Advanced cidr type for PostgreSQL
+define BLURB
+ ip4 and ip4r are types that contain a single IPv4 address and a range of
+ IPv4 addresses respectively. They can be used as a more flexible, indexable
+ version of the cidr type.
+endef
+
+# We do not donwload ip4r from pgfoundry.org, since they use fusionforge:
+# the fusionforge download script requires an id for getting a file, e.g.
+#
+# http://pgfoundry.org/frs/download.php/3380/ip4r-2.0.tgz
+#
+# now the id is 3380. Everything after that id is ignored
+#
+# http://pgfoundry.org/frs/download.php/3380/foobar.tgz
+#
+# downloads the same file as the first example.
+#
+# If mgar tries to download ip4r-1.05.tar.gz and
+#
+# http://pgfoundry.org/frs/download.php/3380
+#
+# is in master sites, it will succeed and download the wrong file.
+#
+# Therefore, ip4r-XY has to be downloaded manually and placed in the
+# proper place.
+MASTER_SITES = http://ftp.postgresql.org/pub/source/v8.3.23/
+MASTER_SITES += http://ftp.postgresql.org/pub/source/v8.4.18/
+MASTER_SITES += http://ftp.postgresql.org/pub/source/v9.0.14/
+MASTER_SITES += http://ftp.postgresql.org/pub/source/v9.1.10/
+MASTER_SITES += http://ftp.postgresql.org/pub/source/v9.2.5/
+MASTER_SITES += http://ftp.postgresql.org/pub/source/v9.3.1/
+DISTFILES = README.CSW
+DISTFILES += postgresql-8.3.23.tar.gz
+DISTFILES += postgresql-8.4.18.tar.gz
+DISTFILES += postgresql-9.0.14.tar.gz
+DISTFILES += postgresql-9.1.10.tar.gz
+DISTFILES += postgresql-9.2.5.tar.gz
+DISTFILES += postgresql-9.3.1.tar.gz
+# This is only required for Postgres 8.3, since version 2.0 source
+# references to numeric_div_trun() which is not available in 8.3
+DISTFILES += ip4r-1.05.tar.gz
+# This is used for Postgres 8.4-9.0, which do not feature extension
+# packaging mechanism
+DISTFILES += ip4r-2.0.tgz
+# This is used for Postgres 9.1+, which feature extension packaging
+# mechanism
+DISTFILES += ip4r-extension-2.0.tgz
+
+EXTRA_MODULATORS = PGVERSION
+MODULATIONS_PGVERSION = 83 84 90 91 92 93
+
+# Variables for PGVERSION modulations
+PG_SOURCE_NAME_83 = postgresql-8.3.23
+PG_BASEVERSION_DOT_83 = 8.3
+IP4R_SOURCE_NAME_83 = ip4r-1.05
+CONFIGURE_ARGS_83 = --with-docdir=$(docdir)/postgresql/$(PGVERSION)
+
+PG_SOURCE_NAME_84 = postgresql-8.4.18
+PG_BASEVERSION_DOT_84 = 8.4
+IP4R_SOURCE_NAME_84 = ip4r-2.0
+CONFIGURE_ARGS_84 = --docdir=$(docdir)/postgresql/$(PGVERSION)
+
+PG_SOURCE_NAME_90 = postgresql-9.0.14
+PG_BASEVERSION_DOT_90 = 9.0
+IP4R_SOURCE_NAME_90 = ip4r-2.0
+CONFIGURE_ARGS_90 = --docdir=$(docdir)/postgresql/$(PGVERSION)
+
+PG_SOURCE_NAME_91 = postgresql-9.1.10
+PG_BASEVERSION_DOT_91 = 9.1
+IP4R_SOURCE_NAME_91 = ip4r-extension-2.0
+CONFIGURE_ARGS_91 = --docdir=$(docdir)/postgresql/$(PGVERSION)
+
+PG_SOURCE_NAME_92 = postgresql-9.2.5
+PG_BASEVERSION_DOT_92 = 9.2
+IP4R_SOURCE_NAME_92 = ip4r-extension-2.0
+CONFIGURE_ARGS_92 = --docdir=$(docdir)/postgresql/$(PGVERSION)
+
+PG_SOURCE_NAME_93 = postgresql-9.3.1
+PG_BASEVERSION_DOT_93 = 9.3
+IP4R_SOURCE_NAME_93 = ip4r-extension-2.0
+CONFIGURE_ARGS_93 = --docdir=$(docdir)/postgresql/$(PGVERSION)
+
+MERGE_SCRIPTS_$(MODULATION) = copy-relocate
+
+
+PACKAGES = $(foreach v,$(MODULATIONS_PGVERSION),CSWpg$(v)-ip4r)
+$(foreach v,$(MODULATIONS_PGVERSION),\
+ $(eval SPKG_DESC_CSWpg$(v)-ip4r = Indexable version of the cidr type for PostgreSQL $(PG_BASEVERSION_DOT_$(v)))\
+ $(eval PKGFILES_CSWpg$(v)-ip4r = .*/postgresql/$(v)/.*)\
+)
+
+BUILD64 = 1
+
+# We define NO_PGXS=1 so that pg_config is not called. This is the main reason we do it the hard way.
+BUILD_ARGS = NO_PGXS=1
+INSTALL_ARGS = NO_PGXS=1
+
+CONFIGURE_SCRIPTS = ip4r
+BUILD_SCRIPTS = ip4r
+INSTALL_SCRIPTS = ip4r
+# Deliberately no check
+TEST_SCRIPTS =
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --datadir=$(datadir)/postgresql/$(PGVERSION)
+CONFIGURE_ARGS += --with-gssapi
+CONFIGURE_ARGS += --with-pam
+CONFIGURE_ARGS += --with-openssl
+CONFIGURE_ARGS += --with-libxml
+CONFIGURE_ARGS += --with-libxslt
+CONFIGURE_ARGS += --without-krb5
+CONFIGURE_ARGS += --without-bonjour
+CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(PGVERSION))
+
+include gar/category.mk
+
+pre-configure-modulated:
+ cp -R $(WORKDIR)/$(IP4R_SOURCE_NAME_$(PGVERSION)) $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/contrib/ip4r
+# Copy errcodes.h into src/include/utils/. Used to make builds for 9.1+ work
+ -cp $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/src/backend/utils/errcodes.h $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/src/include/utils/
+ @echo " ===> Adjusting pkglibdir in $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/src/Makefile.global.in"
+ @if [ -r $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/src/Makefile.global.in ] ; then \
+ gsed -i -r -e 's|^(pkglibdir[[:space:]]*=[[:space:]]*)\$$\(libdir\).*$$|\1$$(libdir)/postgresql/$(PGVERSION)|' $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/src/Makefile.global.in ; \
+ else \
+ echo "$(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/src/Makefile.global.in not found. Aborting" ; \
+ exit 1 ; \
+ fi
+ @$(MAKECOOKIE)
+
+configure-ip4r:
+ cd $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/ && env $(CONFIGURE_ENV) ./configure $(CONFIGURE_ARGS)
+ @$(MAKECOOKIE)
+
+build-ip4r:
+ cd $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/contrib/ip4r && env $(BUILD_ENV) gmake $(BUILD_ARGS)
+ @$(MAKECOOKIE)
+
+install-ip4r:
+ cd $(WORKDIR)/$(PG_SOURCE_NAME_$(PGVERSION))/contrib/ip4r && env $(INSTALL_ENV) gmake install $(INSTALL_ARGS)
+ @$(MAKECOOKIE)
Property changes on: csw/mgar/pkg/pg-ip4r/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: csw/mgar/pkg/pg-ip4r/trunk/checksums
===================================================================
--- csw/mgar/pkg/pg-ip4r/trunk/checksums (rev 0)
+++ csw/mgar/pkg/pg-ip4r/trunk/checksums 2013-10-26 13:34:56 UTC (rev 22311)
@@ -0,0 +1,9 @@
+be4c4b0fbf91eac6b3bc2330d065f4cd ip4r-1.05.tar.gz
+d9de4c712a354bfc77d7383d2a04215c ip4r-2.0.tgz
+a17d5b5314eba314ef9d255cf16e48bd ip4r-extension-2.0.tgz
+822360229618e4e5965182ac01cc6ca3 postgresql-8.3.23.tar.gz
+2fa850ea2e83e390efceedb60eaf6537 postgresql-8.4.18.tar.gz
+a1a5c6e975e269cff3dac144b9c3ad0e postgresql-9.0.14.tar.gz
+0bc70c103de99b8f12e9086eb96c44c8 postgresql-9.1.10.tar.gz
+48854ef39a96a22a3aff964817594a28 postgresql-9.2.5.tar.gz
+58edfab25d6bb243ff2c8bf2d2df34d3 postgresql-9.3.1.tar.gz
Added: csw/mgar/pkg/pg-ip4r/trunk/files/README.CSW
===================================================================
--- csw/mgar/pkg/pg-ip4r/trunk/files/README.CSW (rev 0)
+++ csw/mgar/pkg/pg-ip4r/trunk/files/README.CSW 2013-10-26 13:34:56 UTC (rev 22311)
@@ -0,0 +1,47 @@
+README
+======
+
+You find the README.ip4r included in the source distribution in
+/opt/csw/share/doc/postgresql/<VERSION>/contrib/.
+
+
+Installation
+============
+
+See also README.ip4r.
+
+
+PostgreSQL Version < 9.1
+------------------------
+
+psql-<XY> -U postgres -f /opt/csw/share/postgresql/<XY>/contrib/ip4r.sql <DB>
+
+ * <XY> is the PostgreSQL version without dot:
+
+ 8.3.Z -> 83
+ 8.4.Z -> 84
+ 9.0.Z -> 90
+
+ * <DB> is the name of the database.
+
+It is not strictly necessary to use the `postgres' user when calling
+psql-<XY>. Any user with administrator privileges on the database
+should do.
+
+
+PostgreSQL Version >= 9.1
+-------------------------
+
+psql-<XY> -U postgres -c 'CREATE EXTENSION ip4r' <DB>
+
+ * <XY> is the PostgreSQL version without dot:
+
+ 9.1.Z -> 91
+ 9.2.Z -> 92
+ 9.3.Z -> 93
+
+ * <DB> is the name of the database.
+
+It is not strictly necessary to use the `postgres' user when calling
+psql-<XY>. Any user with administrator privileges on the database
+should do.
\ No newline at end of file
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