diff options
author | brook <brook@pkgsrc.org> | 2011-03-05 17:54:35 +0000 |
---|---|---|
committer | brook <brook@pkgsrc.org> | 2011-03-05 17:54:35 +0000 |
commit | afc1673925bbdedf03a2ce223cfafc262bbdcabc (patch) | |
tree | 9453e057f5bdfc73a2a749394aaeeb2e79e40164 | |
parent | 23339d664a4a3a1f13d1b21f55af0fbb3429197a (diff) | |
download | pkgsrc-afc1673925bbdedf03a2ce223cfafc262bbdcabc.tar.gz |
Initial import of the uuid v1.0.2 package from pgfoundry.org.
The ``uuid'' PostgreSQL package implements creation of Universally
Unique Identifiers (UUIDs), also referred to as Globally Unique
Identifiers (GUIDs). Although PostgreSQL supports storing UUIDs as a
native datatype, it does not provide any mechanism for creating them.
This package wraps openssl-supplied md5 and sha1 functions to create
UUIDs within PostgreSQL.
-rw-r--r-- | databases/postgresql-uuid/DESCR | 6 | ||||
-rw-r--r-- | databases/postgresql-uuid/Makefile.common | 35 | ||||
-rw-r--r-- | databases/postgresql-uuid/PLIST | 4 | ||||
-rw-r--r-- | databases/postgresql-uuid/distinfo | 7 | ||||
-rw-r--r-- | databases/postgresql-uuid/patches/patch-Makefile | 17 | ||||
-rw-r--r-- | databases/postgresql-uuid/patches/patch-uuid.c | 32 | ||||
-rw-r--r-- | databases/postgresql83-uuid/Makefile | 6 | ||||
-rw-r--r-- | databases/postgresql84-uuid/Makefile | 6 | ||||
-rw-r--r-- | databases/postgresql90-uuid/Makefile | 6 | ||||
-rw-r--r-- | licenses/ag-license | 22 |
10 files changed, 141 insertions, 0 deletions
diff --git a/databases/postgresql-uuid/DESCR b/databases/postgresql-uuid/DESCR new file mode 100644 index 00000000000..29f92d086d4 --- /dev/null +++ b/databases/postgresql-uuid/DESCR @@ -0,0 +1,6 @@ +The ``uuid'' PostgreSQL package implements creation of Universally +Unique Identifiers (UUIDs), also referred to as Globally Unique +Identifiers (GUIDs). Although PostgreSQL supports storing UUIDs as a +native datatype, it does not provide any mechanism for creating them. +This package wraps openssl-supplied md5 and sha1 functions to create +UUIDs within PostgreSQL. diff --git a/databases/postgresql-uuid/Makefile.common b/databases/postgresql-uuid/Makefile.common new file mode 100644 index 00000000000..6662de229a6 --- /dev/null +++ b/databases/postgresql-uuid/Makefile.common @@ -0,0 +1,35 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2011/03/05 17:54:35 brook Exp $ +# +# used by databases/postgresql83-uuid +# used by databases/postgresql84-uuid +# used by databases/postgresql90-uuid + +DISTNAME= uuid-freebsd-1.0.2 +PKGNAME= postgresql${PGSQL_VERSION}-uuid +CATEGORIES= databases +MASTER_SITES= http://pgfoundry.org/frs/download.php/2605/ +EXTRACT_SUFX= .tgz + +MAINTAINER= brook@nmsu.edu +HOMEPAGE= http://pgfoundry.org/projects/uuid-freebsd/ +COMMENT= UUID creation functions for PostgreSQL +LICENSE= ag-license + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= gmake + +DESCR_SRC= ../../databases/postgresql-uuid/DESCR +DISTINFO_FILE= ${.CURDIR}/../../databases/postgresql-uuid/distinfo +PATCHDIR= ../../databases/postgresql-uuid/patches +PLIST_SRC= ../../databases/postgresql-uuid/PLIST + +post-extract: + ${MV} ${WRKSRC}/uuid-freebsd.c ${WRKSRC}/uuid.c + ${MV} ${WRKSRC}/uninstall_uuid-freebsd.sql \ + ${WRKSRC}/uninstall_uuid.sql + ${MV} ${WRKSRC}/uuid-freebsd.sql.in ${WRKSRC}/uuid.sql.in + +.include "../../databases/postgresql${PGSQL_VERSION}-client/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/postgresql-uuid/PLIST b/databases/postgresql-uuid/PLIST new file mode 100644 index 00000000000..7e9f8be7cf2 --- /dev/null +++ b/databases/postgresql-uuid/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/03/05 17:54:35 brook Exp $ +lib/postgresql/uuid.so +share/postgresql/contrib/uninstall_uuid.sql +share/postgresql/contrib/uuid.sql diff --git a/databases/postgresql-uuid/distinfo b/databases/postgresql-uuid/distinfo new file mode 100644 index 00000000000..5fdab4a0f15 --- /dev/null +++ b/databases/postgresql-uuid/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/03/05 17:54:35 brook Exp $ + +SHA1 (uuid-freebsd-1.0.2.tgz) = c472fc8b3a2ca7c325db1f2e6a289566260ce494 +RMD160 (uuid-freebsd-1.0.2.tgz) = 90264bf8258f165b038c14d1eed3485121fcc2a6 +Size (uuid-freebsd-1.0.2.tgz) = 3055 bytes +SHA1 (patch-Makefile) = 2ec9a8318c521e507ed839141474efdee0aef580 +SHA1 (patch-uuid.c) = 59fe4b25bc310b3a3b190569ffbbf7d86516ccd3 diff --git a/databases/postgresql-uuid/patches/patch-Makefile b/databases/postgresql-uuid/patches/patch-Makefile new file mode 100644 index 00000000000..405c8b9979a --- /dev/null +++ b/databases/postgresql-uuid/patches/patch-Makefile @@ -0,0 +1,17 @@ +$NetBSD: patch-Makefile,v 1.1.1.1 2011/03/05 17:54:35 brook Exp $ + +--- Makefile.orig 2009-03-15 10:02:47.000000000 -0600 ++++ Makefile 2011-02-12 10:59:40.000000000 -0700 +@@ -1,9 +1,7 @@ + +-MODULE_big = uuid-freebsd +-OBJS = uuid-freebsd.o +-DATA_built = uuid-freebsd.sql +-DATA = uninstall_uuid-freebsd.sql +-SHLIB_LINK = -lmd ++MODULES = uuid ++DATA_built = uuid.sql ++DATA = uninstall_uuid.sql + + PG_CONFIG = pg_config + PGXS := $(shell $(PG_CONFIG) --pgxs) diff --git a/databases/postgresql-uuid/patches/patch-uuid.c b/databases/postgresql-uuid/patches/patch-uuid.c new file mode 100644 index 00000000000..355525950a3 --- /dev/null +++ b/databases/postgresql-uuid/patches/patch-uuid.c @@ -0,0 +1,32 @@ +$NetBSD: patch-uuid.c,v 1.1.1.1 2011/03/05 17:54:35 brook Exp $ + +--- uuid.c.orig 2010-03-14 03:04:29.000000000 -0600 ++++ uuid.c 2011-02-12 10:51:10.000000000 -0700 +@@ -40,7 +40,7 @@ + #undef uuid_hash + + #include <md5.h> +-#include <sha.h> ++#include <sha1.h> + + PG_MODULE_MAGIC; + +@@ -158,13 +158,13 @@ + + case 5: /* namespace-based SHA1 uuids */ + { +- SHA_CTX ctx; ++ SHA1_CTX ctx; + unsigned char buf[20]; + +- SHA1_Init(&ctx); +- SHA1_Update(&ctx, ns, 16); +- SHA1_Update(&ctx, (unsigned char *)ptr, len); +- SHA1_Final(buf, &ctx); ++ SHA1Init(&ctx); ++ SHA1Update(&ctx, ns, 16); ++ SHA1Update(&ctx, (unsigned char *)ptr, len); ++ SHA1Final(buf, &ctx); + + sprintf(strbuf, + "%02x%02x%02x%02x-" diff --git a/databases/postgresql83-uuid/Makefile b/databases/postgresql83-uuid/Makefile new file mode 100644 index 00000000000..9cd473c2ebc --- /dev/null +++ b/databases/postgresql83-uuid/Makefile @@ -0,0 +1,6 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/03/05 17:54:35 brook Exp $ +# + +PGSQL_VERSION= 83 + +.include "../../databases/postgresql-uuid/Makefile.common" diff --git a/databases/postgresql84-uuid/Makefile b/databases/postgresql84-uuid/Makefile new file mode 100644 index 00000000000..4761bc438e6 --- /dev/null +++ b/databases/postgresql84-uuid/Makefile @@ -0,0 +1,6 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/03/05 17:54:35 brook Exp $ +# + +PGSQL_VERSION= 84 + +.include "../../databases/postgresql-uuid/Makefile.common" diff --git a/databases/postgresql90-uuid/Makefile b/databases/postgresql90-uuid/Makefile new file mode 100644 index 00000000000..771eda1fb2e --- /dev/null +++ b/databases/postgresql90-uuid/Makefile @@ -0,0 +1,6 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/03/05 17:54:35 brook Exp $ +# + +PGSQL_VERSION= 90 + +.include "../../databases/postgresql-uuid/Makefile.common" diff --git a/licenses/ag-license b/licenses/ag-license new file mode 100644 index 00000000000..9a873f12f76 --- /dev/null +++ b/licenses/ag-license @@ -0,0 +1,22 @@ +Copyright (c) 2009 Andrew Gierth + +Some parts originated from contrib/uuid-ossp, which is +Copyright (c) 2007-2008 PostgreSQL Global Development Group + +Permission to use, copy, modify, and distribute this software for +any purpose with or without fee is hereby granted, provided that +the above copyright notice and this permission notice appear in all +copies. + +THIS SOFTWARE IS PROVIDED BY AUTHOR 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 AUTHOR 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. |