* TPM token, contrary to other tokens, wasn't symlink PKCS11_TPM.so
    to the library upon make install.
  * Also added uninstall hooks for consistency

Signed-off-by: Klaus Heinrich Kiwi <[email protected]>
---
 usr/lib/pkcs11/tpm_stdll/Makefile.am |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/usr/lib/pkcs11/tpm_stdll/Makefile.am 
b/usr/lib/pkcs11/tpm_stdll/Makefile.am
index 40ddb95..02b231d 100644
--- a/usr/lib/pkcs11/tpm_stdll/Makefile.am
+++ b/usr/lib/pkcs11/tpm_stdll/Makefile.am
@@ -56,3 +56,10 @@ noinst_HEADERS = h_extern.h tok_spec_struct.h defs.h \
 
 install-data-hook:
        $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/tpm
+       cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
+               ln -sf libpkcs11_tpm.so PKCS11_TPM.so
+
+uninstall-hook:
+       if test -d $(DESTDIR)$(libdir)/opencryptoki/stdll; then \
+               cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
+               rm -rf PKCS11_TPM.so; fi
-- 
1.7.3.4


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to