Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+6
View File
@@ -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.
+34
View File
@@ -0,0 +1,34 @@
# $NetBSD: Makefile.common,v 1.6 2013/02/06 23:21:55 jperkin 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-1.0.2
PKGREVISION= 1
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= isc
USE_TOOLS+= gmake
DESCR_SRC= ${.CURDIR}/../../databases/postgresql-uuid/DESCR
DISTINFO_FILE= ${.CURDIR}/../../databases/postgresql-uuid/distinfo
PATCHDIR= ${.CURDIR}/../../databases/postgresql-uuid/patches
PLIST_SRC= ${.CURDIR}/../../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"
+4
View File
@@ -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
+7
View File
@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.3 2011/03/08 15:08:27 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) = edbda592fe086bfc523147d80a0bce7421e4fd10
SHA1 (patch-uuid.c) = 957cd42d900886c70ca0bfc1642ad97ac074148c
@@ -0,0 +1,20 @@
$NetBSD: patch-Makefile,v 1.2 2011/03/08 15:08:27 brook Exp $
Use more generic names for the installed files and ensure that rpath
information is correctly included within the shared library.
--- 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)
@@ -0,0 +1,34 @@
$NetBSD: patch-uuid.c,v 1.2 2011/03/08 03:20:16 brook Exp $
Use the openssl SHA1 API instead of the FreeBSD API.
--- 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-"