[csw-devel] SF.net SVN: gar:[15991] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Oct 25 20:30:19 CEST 2011


Revision: 15991
          http://gar.svn.sourceforge.net/gar/?rev=15991&view=rev
Author:   dmichelsen
Date:     2011-10-25 18:30:19 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
p11-kit/trunk: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/p11-kit/
    csw/mgar/pkg/p11-kit/Makefile
    csw/mgar/pkg/p11-kit/branches/
    csw/mgar/pkg/p11-kit/tags/
    csw/mgar/pkg/p11-kit/trunk/
    csw/mgar/pkg/p11-kit/trunk/Makefile
    csw/mgar/pkg/p11-kit/trunk/checksums
    csw/mgar/pkg/p11-kit/trunk/files/
    csw/mgar/pkg/p11-kit/trunk/files/0001-Hack-around-missing-__argv.patch

Added: csw/mgar/pkg/p11-kit/Makefile
===================================================================
--- csw/mgar/pkg/p11-kit/Makefile	                        (rev 0)
+++ csw/mgar/pkg/p11-kit/Makefile	2011-10-25 18:30:19 UTC (rev 15991)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/p11-kit/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/p11-kit/trunk/Makefile
===================================================================
--- csw/mgar/pkg/p11-kit/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/p11-kit/trunk/Makefile	2011-10-25 18:30:19 UTC (rev 15991)
@@ -0,0 +1,50 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = p11-kit
+VERSION = 0.8
+GARTYPE = v2
+CATEGORIES = lib
+
+DESCRIPTION = Load and enumerate PKCS#11 modules
+define BLURB
+endef
+
+MASTER_SITES = http://p11-glue.freedesktop.org/releases/
+DISTFILES  = $(DISTNAME).tar.gz
+
+PATCHFILES += 0001-Hack-around-missing-__argv.patch
+
+VENDOR_URL = http://p11-glue.freedesktop.org/p11-kit.html
+
+PACKAGES += CSWlibp11kit0
+SPKG_DESC_CSWlibp11kit0 = Load and enumerate PKCS#11 modules, libp11-kit.so.0
+PKGFILES_CSWlibp11kit0 += $(call pkgfiles_lib,libp11-kit.so.0)
+PKGFILES_CSWlibp11kit0 += $(sysconfdir)/.*
+RUNTIME_DEP_PKGS_CSWlibp11kit0 += CSWlibintl8
+
+PACKAGES += CSWlibp11kit-dev
+SPKG_DESC_CSWlibp11kit-dev = Development files for libp11-kit.so.0
+# PKGFILES is catchall
+RUNTIME_DEP_PKGS_CSWlibp11kit-dev += CSWlibintl8
+RUNTIME_DEP_PKGS_CSWlibp11kit-dev += CSWlibp11kit0 
+
+EXTRA_CPPFLAGS = -features=extensions -D__PRETTY_FUNCTION__=__func__
+EXTRA_LINKER_FLAGS += -lintl
+
+# For fabs(3m)
+EXTRA_LINKER_FLAGS += -lm
+
+# For nanosleep(3rt)
+EXTRA_LINKER_FLAGS += -lrt
+
+BUILD64 = 1
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+EXTRA_PAX_ARGS = -s ,pkcs11.conf.example,pkcs11.conf,
+
+PRESERVECONF += $(sysconfdir)/pkcs11.conf
+
+include gar/category.mk
+


Property changes on: csw/mgar/pkg/p11-kit/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/p11-kit/trunk/checksums
===================================================================
--- csw/mgar/pkg/p11-kit/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/p11-kit/trunk/checksums	2011-10-25 18:30:19 UTC (rev 15991)
@@ -0,0 +1 @@
+0928ab06acbdeda48645df4791f4d28d  p11-kit-0.8.tar.gz

Added: csw/mgar/pkg/p11-kit/trunk/files/0001-Hack-around-missing-__argv.patch
===================================================================
--- csw/mgar/pkg/p11-kit/trunk/files/0001-Hack-around-missing-__argv.patch	                        (rev 0)
+++ csw/mgar/pkg/p11-kit/trunk/files/0001-Hack-around-missing-__argv.patch	2011-10-25 18:30:19 UTC (rev 15991)
@@ -0,0 +1,52 @@
+From 8dbe61abe2af6ce7633337a2d1005b8ddfcf5610 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Tue, 25 Oct 2011 17:55:17 +0200
+Subject: [PATCH] Hack around missing __argv
+
+---
+ tools/compat.c |   14 +++++++++-----
+ 1 files changed, 9 insertions(+), 5 deletions(-)
+
+diff --git a/tools/compat.c b/tools/compat.c
+index 93ba77c..a708ac5 100644
+--- a/tools/compat.c
++++ b/tools/compat.c
+@@ -42,6 +42,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdarg.h>
++#include <errno.h>
+ 
+ static const char *
+ calc_prog_name (void)
+@@ -51,19 +52,22 @@ calc_prog_name (void)
+ 
+ 	if(!prepared)
+ 	{
+-		const char* beg = strrchr(__argv[0], '\\');
+-		const char* temp = strrchr(__argv[0], '/');
++		strcpy( prognamebuf, "" );
++/*
++		const char* beg = strrchr(argv[0], '\\');
++		const char* temp = strrchr(argv[0], '/');
+ 		beg = (beg > temp) ? beg : temp;
+-		beg = (beg) ? beg + 1 : __argv[0];
++		beg = (beg) ? beg + 1 : argv[0];
+ 
+-		temp = strrchr(__argv[0], '.');
+-		temp = (temp > beg) ? temp : __argv[0] + strlen(__argv[0]);
++		temp = strrchr(argv[0], '.');
++		temp = (temp > beg) ? temp : argv[0] + strlen(argv[0]);
+ 
+ 		if((temp - beg) > 255)
+ 			temp = beg + 255;
+ 
+ 		strncpy(prognamebuf, beg, temp - beg);
+ 		prognamebuf[temp - beg] = 0;
++*/
+ 		prepared = 1;
+ 	}
+ 
+-- 
+1.7.6.1
+

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