diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-01-07 22:53:34 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-01-07 22:53:34 +0000 |
commit | 26a5aff0b8936e68caac2bf1ee8cfcbea1d82dfd (patch) | |
tree | e75806923bf520e6b68772ec082742e8ee3634ab /dev-libs/opencryptoki | |
parent | stable x86, bug 349799 (diff) | |
download | historical-26a5aff0b8936e68caac2bf1ee8cfcbea1d82dfd.tar.gz historical-26a5aff0b8936e68caac2bf1ee8cfcbea1d82dfd.tar.bz2 historical-26a5aff0b8936e68caac2bf1ee8cfcbea1d82dfd.zip |
Move the patches out of the tree in a backports tarball. The backports are maintained in a git repository that more easily syncs up with upstream.
Package-Manager: portage-2.2.0_alpha14/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/opencryptoki')
8 files changed, 30 insertions, 128 deletions
diff --git a/dev-libs/opencryptoki/ChangeLog b/dev-libs/opencryptoki/ChangeLog index e1eef6c9fb4c..75b50ebdf986 100644 --- a/dev-libs/opencryptoki/ChangeLog +++ b/dev-libs/opencryptoki/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-libs/opencryptoki -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/ChangeLog,v 1.9 2010/12/01 03:32:17 flameeyes Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/ChangeLog,v 1.10 2011/01/07 22:53:33 flameeyes Exp $ + + 07 Jan 2011; Diego E. Pettenò <flameeyes@gentoo.org> + -files/opencryptoki-2.2.4.1-tpm_util.c.patch, + -files/opencryptoki-2.2.8-remove_openlog.patch, + -files/opencryptoki-2.2.8-remove_recursive_chmod.patch, + -files/opencryptoki-2.2.8-steal_shmem.patch, opencryptoki-2.3.2.ebuild, + -files/opencryptoki-2.3.2-build.patch: + Move the patches out of the tree in a backports tarball. The backports are + maintained in a git repository that more easily syncs up with upstream. 01 Dec 2010; Diego E. Pettenò <flameeyes@gentoo.org> opencryptoki-2.3.2.ebuild, files/pkcsslotd.init.2: diff --git a/dev-libs/opencryptoki/Manifest b/dev-libs/opencryptoki/Manifest index b8088527bc4f..7c240e57c249 100644 --- a/dev-libs/opencryptoki/Manifest +++ b/dev-libs/opencryptoki/Manifest @@ -1,21 +1,16 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX opencryptoki-2.2.4.1-tpm_util.c.patch 482 RMD160 35c367185c0b02c37a4b507c38373c6eb4bd0aa8 SHA1 2bcfde7b8ca02c57af7903e8cbd65cb45cf5f18a SHA256 1cab3094e34e12ba2418b81d5143abde8f7ebd26b20826e22462e2e1cf603787 -AUX opencryptoki-2.2.8-remove_openlog.patch 411 RMD160 a3a0e3397221708c54bf2df0ec551dc3be119971 SHA1 df329c5753664c995fd6c9cc2082014871449985 SHA256 df9a5d7a4005a8cc59f0c90a013dd76d4b195c1e68b28d5ba5eaa9b0f31a938c -AUX opencryptoki-2.2.8-remove_recursive_chmod.patch 820 RMD160 1d7f294e7a25bf8e7b8b04868224d2d79e7e5eba SHA1 ff0db4c75a0768427dfa96ccbfbe831feb304076 SHA256 fafcb0d0e15ac9b4f7ac29905dd74f688fd72fe9c2b524b34091655ea9309d31 -AUX opencryptoki-2.2.8-steal_shmem.patch 1258 RMD160 8e1c82e7192e9261dffc8ab7a482bd6e23771e47 SHA1 380267d548b027d883e58d057ceb014bdbcffbe9 SHA256 1941537bb5a05b25e3088362bdd5904d3c1b14ebca0b8fe271cfa33bff152080 -AUX opencryptoki-2.3.2-build.patch 1083 RMD160 fdea88f90c5e7128241b8feab35f902c89644d1d SHA1 581e9c071bcd0b6fa312f8b65678f4cee81eebbd SHA256 9f1b95018c7d4fa5d08a74588e2059079b399fb54cb0725924c2529d94fd7cc3 AUX pkcsslotd.init.2 663 RMD160 f572831162024c441589986ce36021fc48aca7ff SHA1 d82db8e526ddc2307200e1767aa2e55184d068c1 SHA256 80c2e13cb0e9255fa3fc13977c4d1c73a10be4740a50959b8d487d328a1e1192 +DIST opencryptoki-2.3.2-backports-1.tar.bz2 5911 RMD160 2d802eddbc79dfd7d96252da42c31ce0b043fbb9 SHA1 6c6888ae31cd45fb533ebf8fe95584f9c382c57b SHA256 dba0be89b326afedb6b53d20f4410487cc050f285d0b1a3c11f20e2c45acb01e DIST opencryptoki-2.3.2.tar.bz2 665134 RMD160 2945879a367b787432189abd74262e60a3b237bb SHA1 c264f0158d516287846000cd1e90830b18ac4e1d SHA256 44fdf74a9eab2586240a69779c5c323e8378e8f2fde21cd4f8bd9186a24c30f7 -DIST opencryptoki-tpm_stdll-sw_fallback-June012006.patch.bz2 3199 RMD160 779cdb6c86c1d3b923f2349d4d3f3ff9bf720c54 SHA1 8835c4ed3a55d48d2b45d3867eedbb7d29ef17d9 SHA256 599b4ce1daea201756bbe1a615b74cc40c8a9a635bc1baffa942fe91f5f82f8b -EBUILD opencryptoki-2.3.2.ebuild 2277 RMD160 6614113d588980c5731d8303e306744391b066db SHA1 861ed8bb4e821266d60c5dd01ad93c4d522b2c0b SHA256 47de0ad4b8dbf35c2cff79f11cecfd5ae4f03d86c773d4636fc260972505fa31 -MISC ChangeLog 2047 RMD160 076cf71e4b2d4c579ec487a887276da929ae5936 SHA1 94b26665833ed7bd8654c70bcef41850734afa2c SHA256 0eef69332c3adc89bce4d7960ee2b4cb55073ce1aa49a300eb1a1868771a96ee +EBUILD opencryptoki-2.3.2.ebuild 2167 RMD160 a0b3f27addf56daa27755664913c1e28429dfc6a SHA1 cfc2bc6ee766632468d00500cfb57273d7746828 SHA256 46a3f3a0eb132b8835de10b4e11c5146d31bbd45ec8c2c7a9728ed87ba97bb1f +MISC ChangeLog 2527 RMD160 6a96d0a6eaf61491c83be7ecb87dd817e8dd1c67 SHA1 0f6149511803ec56ec7692790c11007a6681a4b8 SHA256 b951e0078cce8e8bedefc3c23bac7ab2977d4700d808c9430eb6702701e71d85 MISC metadata.xml 303 RMD160 c584fb11ce80c614b24f441dee3dc359c032c585 SHA1 72be61c516f86101ea2c6fec4d831a36c9371435 SHA256 6f37596c4a13d63dcbfe0b13494aacf994e803dbdf3190d1545f9fd8b355cead -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) -iEYEARECAAYFAkz1wWUACgkQAiZjviIA2Xjm1wCgiS1e2M7sA7TYHGHQZB20V9xU -6SEAoNPuMp12s+6iY823BsW3ZUh0aN/H -=6Gpl +iEYEARECAAYFAk0nmWcACgkQAiZjviIA2XjMNACfWDKppsVTChSwJ72oXm/RVN2L +eewAnjbyn4j9lJ8Us8piYnx7z2UFCkYx +=mJmI -----END PGP SIGNATURE----- diff --git a/dev-libs/opencryptoki/files/opencryptoki-2.2.4.1-tpm_util.c.patch b/dev-libs/opencryptoki/files/opencryptoki-2.2.4.1-tpm_util.c.patch deleted file mode 100644 index d1b7eef7fe38..000000000000 --- a/dev-libs/opencryptoki/files/opencryptoki-2.2.4.1-tpm_util.c.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -upr opencryptoki-2.2.4.1.orig/usr/lib/pkcs11/tpm_stdll/tpm_util.c opencryptoki-2.2.4.1/usr/lib/pkcs11/tpm_stdll/tpm_util.c ---- opencryptoki-2.2.4.1.orig/usr/lib/pkcs11/tpm_stdll/tpm_util.c 2007-02-03 00:19:41.000000000 +0200 -+++ opencryptoki-2.2.4.1/usr/lib/pkcs11/tpm_stdll/tpm_util.c 2007-03-25 20:42:38.926868516 +0300 -@@ -51,6 +51,10 @@ - - #include "tpm_specific.h" - -+#ifndef UINT64 -+#define UINT64 unsigned long long -+#endif -+ - extern TSS_HCONTEXT tspContext; - - UINT32 diff --git a/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_openlog.patch b/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_openlog.patch deleted file mode 100644 index 199db5a649d9..000000000000 --- a/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_openlog.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- opencryptoki-2.2.8.orig/usr/lib/pkcs11/api/apiutil.c 2010-06-04 17:04:48.000000000 -0400 -+++ opencryptoki-2.2.8/usr/lib/pkcs11/api/apiutil.c 2010-06-04 17:06:23.000000000 -0400 -@@ -380,7 +380,6 @@ - - if (!enabled){ - enabled=1; -- openlog("openCryptokiModule",LOG_PID|LOG_NDELAY,LOG_DAEMON); - setlogmask(LOG_UPTO(LOG_DEBUG)); - logit(LOG_DEBUG,"Logging enabled %d enabled",enabled); - } diff --git a/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch b/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch deleted file mode 100644 index c8a22e6bb4bf..000000000000 --- a/dev-libs/opencryptoki/files/opencryptoki-2.2.8-remove_recursive_chmod.patch +++ /dev/null @@ -1,28 +0,0 @@ -Index: opencryptoki-2.3.2/usr/sbin/pkcs_slot/pkcs_slot.in -=================================================================== ---- opencryptoki-2.3.2.orig/usr/sbin/pkcs_slot/pkcs_slot.in -+++ opencryptoki-2.3.2/usr/sbin/pkcs_slot/pkcs_slot.in -@@ -356,12 +356,14 @@ fi - DEVICE=$1 - DEPTH=$2 - -+# Ensure that any directories created are group-accessible -+umask 002 -+ - # Check for the existance of the directories - if [ ! -d @localstatedir@/lib/opencryptoki ] - then - @MKDIR_P@ @localstatedir@/lib/opencryptoki - @CHGRP@ pkcs11 @localstatedir@/lib/opencryptoki -- @CHMOD@ -R g+rwX @localstatedir@/lib/opencryptoki - fi - - -@@ -502,7 +504,6 @@ then - echo "TRUE|0|$SLOT_DESCRIPTION|$MANUFACTURER|TRUE|FALSE|TRUE|0|0|1|1|NONE|$CCA_DLL_FN|$CCA_INIT" >>$CFGFILE - fi - --@CHMOD@ -R g+wrX @localstatedir@/lib/opencryptoki - - - diff --git a/dev-libs/opencryptoki/files/opencryptoki-2.2.8-steal_shmem.patch b/dev-libs/opencryptoki/files/opencryptoki-2.2.8-steal_shmem.patch deleted file mode 100644 index 45e1e7104411..000000000000 --- a/dev-libs/opencryptoki/files/opencryptoki-2.2.8-steal_shmem.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -Naur opencryptoki-2.2.8.orig/usr/sbin/pkcsslotd/shmem.c opencryptoki-2.2.8/usr/sbin/pkcsslotd/shmem.c ---- opencryptoki-2.2.8.orig/usr/sbin/pkcsslotd/shmem.c 2010-06-02 09:18:27.000000000 -0700 -+++ opencryptoki-2.2.8/usr/sbin/pkcsslotd/shmem.c 2010-06-02 11:41:31.000000000 -0700 -@@ -374,10 +374,20 @@ - - - if ( shmid < 0 ) { -- ErrLog(SLOTD_MSG(SHMEMCR, -- "Shared memory creation failed (0x%X)\n"), errno); -- ErrLog(SLOTD_MSG(IPCRM, "perform ipcrm -M 0x%X\n"), tok); -- return FALSE; -+ ErrLog(SLOTD_MSG(SHMEMCR, -+ "Shared memory creation failed (0x%X)\n"), errno); -+ ErrLog(SLOTD_MSG(SHMEMCR, "Reclaiming 0x%X\n"), tok); -+ shmid = shmget( tok, sizeof( Slot_Mgr_Shr_t ), 0 ); -+ DestroySharedMemory(); -+ shmid = shmget( tok, sizeof( Slot_Mgr_Shr_t ), -+ IPC_CREAT | IPC_EXCL | S_IRUSR | -+ S_IRGRP | S_IWUSR | S_IWGRP ); -+ if ( shmid < 0 ) { -+ ErrLog(SLOTD_MSG(SHMEMCR, -+ "Shared memory reclamation failed (0x%X)\n"), errno); -+ ErrLog(SLOTD_MSG(IPCRM, "perform ipcrm -M 0x%X\n"), tok); -+ return FALSE; -+ } - } - - // SAB Set the group ownership of the shared mem segment.. diff --git a/dev-libs/opencryptoki/files/opencryptoki-2.3.2-build.patch b/dev-libs/opencryptoki/files/opencryptoki-2.3.2-build.patch deleted file mode 100644 index c54a02157bf3..000000000000 --- a/dev-libs/opencryptoki/files/opencryptoki-2.3.2-build.patch +++ /dev/null @@ -1,24 +0,0 @@ -Index: opencryptoki-2.3.2/usr/lib/pkcs11/api/Makefile.am -=================================================================== ---- opencryptoki-2.3.2.orig/usr/lib/pkcs11/api/Makefile.am -+++ opencryptoki-2.3.2/usr/lib/pkcs11/api/Makefile.am -@@ -15,17 +15,17 @@ opencryptoki_libopencryptoki_la_CFLAGS = - opencryptoki_libopencryptoki_la_SOURCES = api_interface.c shrd_mem.c apiutil.c - - install-data-hook: -+ $(MKDIR_P) $(DESTDIR)$(libdir)/opencryptoki/stdll -+ $(MKDIR_P) $(DESTDIR)$(libdir)/pkcs11 - cd $(DESTDIR)$(libdir)/opencryptoki && \ - ln -sf libopencryptoki.so PKCS11_API.so - cd $(DESTDIR)$(libdir)/opencryptoki && \ - ln -sf $(sbindir) methods -- $(MKDIR_P) $(DESTDIR)$(libdir)/pkcs11 - cd $(DESTDIR)$(libdir)/pkcs11 && \ - ln -sf $(sbindir) methods - cd $(DESTDIR)$(libdir)/pkcs11 && \ - ln -sf ../opencryptoki/libopencryptoki.so PKCS11_API.so - cd $(DESTDIR)$(libdir)/pkcs11 && \ - ln -sf ../opencryptoki/libopencryptoki.so libopencryptoki.so -- $(MKDIR_P) $(DESTDIR)$(libdir)/opencryptoki/stdll - cd $(DESTDIR)$(libdir)/pkcs11 && \ - ln -sf ../opencryptoki/stdll/ stdll diff --git a/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild b/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild index 20e4cd7348b7..503f7f026511 100644 --- a/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild +++ b/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild @@ -1,15 +1,20 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild,v 1.2 2010/12/01 03:32:17 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/opencryptoki/opencryptoki-2.3.2.ebuild,v 1.3 2011/01/07 22:53:33 flameeyes Exp $ EAPI="2" +# backports are maintained as tags on Diego's repository on gitorious: +# http://gitorious.org/~flameeyes/opencryptoki/flameeyess-opencryptoki +BACKPORTS=1 + inherit autotools eutils multilib DESCRIPTION="PKCS#11 provider for IBM cryptographic hardware" HOMEPAGE="http://sourceforge.net/projects/opencryptoki" SRC_URI="mirror://sourceforge/opencryptoki/${P}.tar.bz2 - mirror://gentoo/opencryptoki-tpm_stdll-sw_fallback-June012006.patch.bz2" + ${BACKPORTS:+ + http://dev.gentoo.org/~flameeyes/${PN}/${P}-backports-${BACKPORTS}.tar.bz2}" LICENSE="CPL-0.5" SLOT="0" @@ -26,14 +31,11 @@ pkg_setup() { } src_prepare() { - # Enable fallback operation mode for imported keys. - # Patch written by Kent Yoder. - epatch "${WORKDIR}/opencryptoki-tpm_stdll-sw_fallback-June012006.patch" - epatch "${FILESDIR}/opencryptoki-2.2.4.1-tpm_util.c.patch" - epatch "${FILESDIR}/opencryptoki-2.2.8-steal_shmem.patch" - epatch "${FILESDIR}/opencryptoki-2.2.8-remove_openlog.patch" - epatch "${FILESDIR}/opencryptoki-2.2.8-remove_recursive_chmod.patch" - epatch "${FILESDIR}/opencryptoki-2.3.2-build.patch" + [[ -n ${BACKPORTS} ]] && \ + EPATCH_MULTI_MSG="Applying backports patches #${BACKPORTS} ..." \ + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ + epatch + eautoreconf } |